Lines Matching +full:big +full:- +full:endian
1 // SPDX-License-Identifier: LGPL-2.1
7 #include "event-parse.h"
8 #include "event-parse-local.h"
9 #include "event-utils.h"
12 * tep_get_event - returns the event with the given index
21 if (tep && tep->events && index < tep->nr_events) in tep_get_event()
22 return tep->events[index]; in tep_get_event()
28 * tep_get_first_event - returns the first event in the events array
40 * tep_get_events_count - get the number of defined events
49 return tep->nr_events; in tep_get_events_count()
54 * tep_set_flag - set event parser flag
64 tep->flags |= flag; in tep_set_flag()
68 * tep_clear_flag - clear event parser flag
77 tep->flags &= ~flag; in tep_clear_flag()
81 * tep_test_flag - check the state of event parser flag
91 return tep->flags & flag; in tep_test_flag()
99 if (!tep || tep->host_bigendian == tep->file_bigendian) in data2host2()
112 if (!tep || tep->host_bigendian == tep->file_bigendian) in data2host4()
128 if (!tep || tep->host_bigendian == tep->file_bigendian) in data2host8()
144 * tep_get_header_page_size - get size of the header page
153 return tep->header_page_size_size; in tep_get_header_page_size()
158 * tep_get_header_timestamp_size - get size of the timestamp in the header page
167 return tep->header_page_ts_size; in tep_get_header_timestamp_size()
172 * tep_get_cpus - get the number of CPUs
181 return tep->cpus; in tep_get_cpus()
186 * tep_set_cpus - set the number of CPUs
194 tep->cpus = cpus; in tep_set_cpus()
198 * tep_get_long_size - get the size of a long integer on the traced machine
207 return tep->long_size; in tep_get_long_size()
212 * tep_set_long_size - set the size of a long integer on the traced machine
221 tep->long_size = long_size; in tep_set_long_size()
225 * tep_get_page_size - get the size of a memory page on the traced machine
234 return tep->page_size; in tep_get_page_size()
239 * tep_set_page_size - set the size of a memory page on the traced machine
248 tep->page_size = _page_size; in tep_set_page_size()
252 * tep_is_file_bigendian - return the endian of the file
255 * This returns true if the file is in big endian order
261 return (tep->file_bigendian == TEP_BIG_ENDIAN); in tep_is_file_bigendian()
266 * tep_set_file_bigendian - set if the file is in big endian order
268 * @endian: non zero, if the file is in big endian order
270 * This sets if the file is in big endian order
272 void tep_set_file_bigendian(struct tep_handle *tep, enum tep_endian endian) in tep_set_file_bigendian() argument
275 tep->file_bigendian = endian; in tep_set_file_bigendian()
279 * tep_is_local_bigendian - return the endian of the saved local machine
282 * This returns true if the saved local machine in @tep is big endian.
288 return (tep->host_bigendian == TEP_BIG_ENDIAN); in tep_is_local_bigendian()
293 * tep_set_local_bigendian - set the stored local machine endian order
295 * @endian: non zero, if the local host has big endian order
297 * This sets the endian order for the local machine.
299 void tep_set_local_bigendian(struct tep_handle *tep, enum tep_endian endian) in tep_set_local_bigendian() argument
302 tep->host_bigendian = endian; in tep_set_local_bigendian()
306 * tep_is_old_format - get if an old kernel is used
316 return tep->old_format; in tep_is_old_format()
321 * tep_set_test_filters - set a flag to test a filter string
332 tep->test_filters = test_filters; in tep_set_test_filters()