Back to home page

OSCL-LXR

 
 

    


0001 libtraceevent(3)
0002 ================
0003 
0004 NAME
0005 ----
0006 tep_is_file_bigendian, tep_set_file_bigendian - Get / set the endianness of the
0007 raw data being accessed by the tep handler.
0008 
0009 SYNOPSIS
0010 --------
0011 [verse]
0012 --
0013 *#include <event-parse.h>*
0014 
0015 enum *tep_endian* {
0016         TEP_LITTLE_ENDIAN = 0,
0017         TEP_BIG_ENDIAN
0018 };
0019 
0020 bool *tep_is_file_bigendian*(struct tep_handle pass:[*]_tep_);
0021 void *tep_set_file_bigendian*(struct tep_handle pass:[*]_tep_, enum tep_endian _endian_);
0022 
0023 --
0024 DESCRIPTION
0025 -----------
0026 The _tep_is_file_bigendian()_ function gets the endianness of the raw data,
0027 being accessed by the tep handler. The _tep_ argument is trace event parser
0028 context.
0029 
0030 The _tep_set_file_bigendian()_ function sets the endianness of raw data being
0031 accessed by the tep handler. The _tep_ argument is trace event parser context.
0032 [verse]
0033 --
0034 The _endian_ argument is the endianness:
0035         _TEP_LITTLE_ENDIAN_ - the raw data is in little endian format,
0036         _TEP_BIG_ENDIAN_ - the raw data is in big endian format.
0037 --
0038 RETURN VALUE
0039 ------------
0040 The _tep_is_file_bigendian()_ function returns true if the data is in bigendian
0041 format, false otherwise.
0042 
0043 EXAMPLE
0044 -------
0045 [source,c]
0046 --
0047 #include <event-parse.h>
0048 ...
0049 struct tep_handle *tep = tep_alloc();
0050 ...
0051         tep_set_file_bigendian(tep, TEP_LITTLE_ENDIAN);
0052 ...
0053         if (tep_is_file_bigendian(tep)) {
0054                 /* The raw data is in big endian */
0055         } else {
0056                 /* The raw data is in little endian */
0057         }
0058 --
0059 
0060 FILES
0061 -----
0062 [verse]
0063 --
0064 *event-parse.h*
0065         Header file to include in order to have access to the library APIs.
0066 *-ltraceevent*
0067         Linker switch to add when building a program that uses the library.
0068 --
0069 
0070 SEE ALSO
0071 --------
0072 _libtraceevent(3)_, _trace-cmd(1)_
0073 
0074 AUTHOR
0075 ------
0076 [verse]
0077 --
0078 *Steven Rostedt* <rostedt@goodmis.org>, author of *libtraceevent*.
0079 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
0080 --
0081 REPORTING BUGS
0082 --------------
0083 Report bugs to  <linux-trace-devel@vger.kernel.org>
0084 
0085 LICENSE
0086 -------
0087 libtraceevent is Free Software licensed under the GNU LGPL 2.1
0088 
0089 RESOURCES
0090 ---------
0091 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git