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

NAME

6       tep_print_printk, tep_print_funcs, tep_set_test_filters,
7       tep_plugin_print_options - Print libtraceevent internal information.
8

SYNOPSIS

10       #include <event-parse.h>
11       #include <trace-seq.h>
12
13       void tep_print_printk(struct tep_handle *tep);
14       void tep_print_funcs(struct tep_handle *tep);
15       void tep_set_test_filters(struct tep_handle *tep, int test_filters);
16       void tep_plugin_print_options(struct trace_seq *s);
17

DESCRIPTION

19       The tep_print_printk() function prints the printk string formats that
20       were stored for this tracing session. The tep argument is trace event
21       parser context.
22
23       The tep_print_funcs() function prints the stored function name to
24       address mapping for this tracing session. The tep argument is trace
25       event parser context.
26
27       The tep_set_test_filters() function sets a flag to test a filter
28       string. If this flag is set, when tep_filter_add_filter_str() API as
29       called, it will print the filter string instead of adding it. The tep
30       argument is trace event parser context. The test_filters argument is
31       the test flag that will be set.
32
33       The tep_plugin_print_options() function writes a list of the registered
34       plugin options into s.
35

EXAMPLE

37           #include <event-parse.h>
38           #include <trace-seq.h>
39           ...
40           struct tep_handle *tep = tep_alloc();
41           ...
42                   tep_print_printk(tep);
43           ...
44                   tep_print_funcs(tep);
45           ...
46           struct tep_event_filter *filter = tep_filter_alloc(tep);
47                   tep_set_test_filters(tep, 1);
48                   tep_filter_add_filter_str(filter, "sched/sched_wakeup:target_cpu==1");
49                   tep_set_test_filters(tep, 0);
50                   tep_filter_free(filter);
51           ...
52           struct trace_seq seq;
53           trace_seq_init(&seq);
54
55                   tep_plugin_print_options(&s);
56           ...
57

FILES

59           event-parse.h
60                   Header file to include in order to have access to the library APIs.
61           -ltraceevent
62                   Linker switch to add when building a program that uses the library.
63

SEE ALSO

65       libtraceevent(3), trace-cmd(1)
66

AUTHOR

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

REPORTING BUGS

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

LICENSE

75       libtraceevent is Free Software licensed under the GNU LGPL 2.1
76

RESOURCES

78       https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
79

NOTES

81        1. rostedt@goodmis.org
82           mailto:rostedt@goodmis.org
83
84        2. tz.stoyanov@gmail.com
85           mailto:tz.stoyanov@gmail.com
86
87        3. linux-trace-devel@vger.kernel.org
88           mailto:linux-trace-devel@vger.kernel.org
89
90
91
92libtraceevent 1.5.3               04/15/2022                  LIBTRACEEVENT(3)
Impressum