1LIBTRACEEVENT(3)             libtraceevent Manual             LIBTRACEEVENT(3)
2
3
4

NAME

6       tep_is_file_bigendian, tep_set_file_bigendian - Get / set the
7       endianness of the raw data being accessed by the tep handler.
8

SYNOPSIS

10       #include <event-parse.h>
11
12       enum tep_endian {
13               TEP_LITTLE_ENDIAN = 0,
14               TEP_BIG_ENDIAN
15       };
16
17       bool tep_is_file_bigendian(struct tep_handle *tep);
18       void tep_set_file_bigendian(struct tep_handle *tep, enum tep_endian endian);
19

DESCRIPTION

21       The tep_is_file_bigendian() function gets the endianness of the raw
22       data, being accessed by the tep handler. The tep argument is trace
23       event parser context.
24
25       The tep_set_file_bigendian() function sets the endianness of raw data
26       being accessed by the tep handler. The tep argument is trace event
27       parser context.
28
29           The endian argument is the endianness:
30                   TEP_LITTLE_ENDIAN - the raw data is in little endian format,
31                   TEP_BIG_ENDIAN - the raw data is in big endian format.
32

RETURN VALUE

34       The tep_is_file_bigendian() function returns true if the data is in
35       bigendian format, false otherwise.
36

EXAMPLE

38           #include <event-parse.h>
39           ...
40           struct tep_handle *tep = tep_alloc();
41           ...
42                   tep_set_file_bigendian(tep, TEP_LITTLE_ENDIAN);
43           ...
44                   if (tep_is_file_bigendian(tep)) {
45                           /* The raw data is in big endian */
46                   } else {
47                           /* The raw data is in little endian */
48                   }
49

FILES

51           event-parse.h
52                   Header file to include in order to have access to the library APIs.
53           -ltraceevent
54                   Linker switch to add when building a program that uses the library.
55

SEE ALSO

57       libtraceevent(3), trace-cmd(1)
58

AUTHOR

60           Steven Rostedt <rostedt@goodmis.org[1]>, author of libtraceevent.
61           Tzvetomir Stoyanov <tz.stoyanov@gmail.com[2]>, author of this man page.
62

REPORTING BUGS

64       Report bugs to <linux-trace-devel@vger.kernel.org[3]>
65

LICENSE

67       libtraceevent is Free Software licensed under the GNU LGPL 2.1
68

RESOURCES

70       https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
71

NOTES

73        1. rostedt@goodmis.org
74           mailto:rostedt@goodmis.org
75
76        2. tz.stoyanov@gmail.com
77           mailto:tz.stoyanov@gmail.com
78
79        3. linux-trace-devel@vger.kernel.org
80           mailto:linux-trace-devel@vger.kernel.org
81
82
83
84libtraceevent 1.1.1               02/08/2021                  LIBTRACEEVENT(3)
Impressum