6 tep_is_file_bigendian, tep_set_file_bigendian - Get / set the endianness of the
7 raw data being accessed by the tep handler.
13 *#include <event-parse.h>*
16 TEP_LITTLE_ENDIAN = 0,
20 bool *tep_is_file_bigendian*(struct tep_handle pass:[*]_tep_);
21 void *tep_set_file_bigendian*(struct tep_handle pass:[*]_tep_, enum tep_endian _endian_);
26 The _tep_is_file_bigendian()_ function gets the endianness of the raw data,
27 being accessed by the tep handler. The _tep_ argument is trace event parser
30 The _tep_set_file_bigendian()_ function sets the endianness of raw data being
31 accessed by the tep handler. The _tep_ argument is trace event parser context.
34 The _endian_ argument is the endianness:
35 _TEP_LITTLE_ENDIAN_ - the raw data is in little endian format,
36 _TEP_BIG_ENDIAN_ - the raw data is in big endian format.
40 The _tep_is_file_bigendian()_ function returns true if the data is in bigendian
41 format, false otherwise.
47 #include <event-parse.h>
49 struct tep_handle *tep = tep_alloc();
51 tep_set_file_bigendian(tep, TEP_LITTLE_ENDIAN);
53 if (tep_is_file_bigendian(tep)) {
54 /* The raw data is in big endian */
56 /* The raw data is in little endian */
65 Header file to include in order to have access to the library APIs.
67 Linker switch to add when building a program that uses the library.
72 _libtraceevent(3)_, _trace-cmd(1)_
78 *Steven Rostedt* <rostedt@goodmis.org>, author of *libtraceevent*.
79 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
83 Report bugs to <linux-trace-devel@vger.kernel.org>
87 libtraceevent is Free Software licensed under the GNU LGPL 2.1
91 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git