6 tep_set_flag, tep_clear_flag, tep_test_flag -
7 Manage flags of trace event parser context.
13 *#include <event-parse.h>*
17 _TEP_DISABLE_SYS_PLUGINS_,
20 void *tep_set_flag*(struct tep_handle pass:[*]_tep_, enum tep_flag _flag_);
21 void *tep_clear_flag*(struct tep_handle pass:[*]_tep_, enum tep_flag _flag_);
22 bool *tep_test_flag*(struct tep_handle pass:[*]_tep_, enum tep_flag _flag_);
27 Trace event parser context flags are defined in *enum tep_flag*:
30 _TEP_NSEC_OUTPUT_ - print event's timestamp in nano seconds, instead of micro seconds.
31 _TEP_DISABLE_SYS_PLUGINS_ - disable plugins, located in system's plugin
32 directory. This directory is defined at library compile
33 time, and usually depends on library installation
34 prefix: (install_preffix)/lib/traceevent/plugins
35 _TEP_DISABLE_PLUGINS_ - disable all library plugins:
36 - in system's plugin directory
37 - in directory, defined by the environment variable _TRACEEVENT_PLUGIN_DIR_
38 - in user's home directory, _~/.traceevent/plugins_
40 Note: plugin related flags must me set before calling _tep_load_plugins()_ API.
42 The _tep_set_flag()_ function sets _flag_ to _tep_ context.
44 The _tep_clear_flag()_ function clears _flag_ from _tep_ context.
46 The _tep_test_flag()_ function tests if _flag_ is set to _tep_ context.
50 _tep_test_flag()_ function returns true if _flag_ is set, false otherwise.
56 #include <event-parse.h>
58 struct tep_handle *tep = tep_alloc();
60 /* Print timestamps in nanoseconds */
61 tep_set_flag(tep, TEP_NSEC_OUTPUT);
63 if (tep_test_flag(tep, TEP_NSEC_OUTPUT)) {
64 /* print timestamps in nanoseconds */
66 /* print timestamps in microseconds */
69 /* Print timestamps in microseconds */
70 tep_clear_flag(tep, TEP_NSEC_OUTPUT);
78 Header file to include in order to have access to the library APIs.
80 Linker switch to add when building a program that uses the library.
85 _libtraceevent(3)_, _trace-cmd(1)_
91 *Steven Rostedt* <rostedt@goodmis.org>, author of *libtraceevent*.
92 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
96 Report bugs to <linux-trace-devel@vger.kernel.org>
100 libtraceevent is Free Software licensed under the GNU LGPL 2.1
104 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git