'\" t
.\"     Title: libtraceevent
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 07/24/2025
.\"    Manual: libtraceevent Manual
.\"    Source: libtraceevent 1.8.4
.\"  Language: English
.\"
.TH "LIBTRACEEVENT" "3" "07/24/2025" "libtraceevent 1\&.8\&.4" "libtraceevent Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
tep_print_printk, tep_print_funcs, tep_set_test_filters, tep_plugin_print_options \- Print libtraceevent internal information\&.
.SH "SYNOPSIS"
.sp
.nf
\fB#include <event\-parse\&.h>\fR
\fB#include <trace\-seq\&.h>\fR

void \fBtep_print_printk\fR(struct tep_handle *tep);
void \fBtep_print_funcs\fR(struct tep_handle *tep);
void \fBtep_set_test_filters\fR(struct tep_handle *tep, int test_filters);
void \fBtep_plugin_print_options\fR(struct trace_seq *s);
.fi
.SH "DESCRIPTION"
.sp
The \fBtep_print_printk()\fR function prints the printk string formats that were stored for this tracing session\&. The \fItep\fR argument is trace event parser context\&.
.sp
The \fBtep_print_funcs()\fR function prints the stored function name to address mapping for this tracing session\&. The \fItep\fR argument is trace event parser context\&.
.sp
The \fBtep_set_test_filters()\fR function sets a flag to test a filter string\&. If this flag is set, when \fBtep_filter_add_filter_str()\fR API as called, it will print the filter string instead of adding it\&. The \fItep\fR argument is trace event parser context\&. The \fItest_filters\fR argument is the test flag that will be set\&.
.sp
The \fBtep_plugin_print_options()\fR function writes a list of the registered plugin options into \fIs\fR\&.
.SH "EXAMPLE"
.sp
.if n \{\
.RS 4
.\}
.nf
#include <event\-parse\&.h>
#include <trace\-seq\&.h>
\&.\&.\&.
struct tep_handle *tep = tep_alloc();
\&.\&.\&.
        tep_print_printk(tep);
\&.\&.\&.
        tep_print_funcs(tep);
\&.\&.\&.
struct tep_event_filter *filter = tep_filter_alloc(tep);
        tep_set_test_filters(tep, 1);
        tep_filter_add_filter_str(filter, "sched/sched_wakeup:target_cpu==1");
        tep_set_test_filters(tep, 0);
        tep_filter_free(filter);
\&.\&.\&.
struct trace_seq seq;
trace_seq_init(&seq);

        tep_plugin_print_options(&s);
\&.\&.\&.
.fi
.if n \{\
.RE
.\}
.SH "FILES"
.sp
.if n \{\
.RS 4
.\}
.nf
\fBevent\-parse\&.h\fR
        Header file to include in order to have access to the library APIs\&.
\fB\-ltraceevent\fR
        Linker switch to add when building a program that uses the library\&.
.fi
.if n \{\
.RE
.\}
.SH "SEE ALSO"
.sp
\fBlibtraceevent\fR(3), \fBtrace\-cmd\fR(1)
.SH "AUTHOR"
.sp
.if n \{\
.RS 4
.\}
.nf
\fBSteven Rostedt\fR <\m[blue]\fBrostedt@goodmis\&.org\fR\m[]\&\s-2\u[1]\d\s+2>, author of \fBlibtraceevent\fR\&.
\fBTzvetomir Stoyanov\fR <\m[blue]\fBtz\&.stoyanov@gmail\&.com\fR\m[]\&\s-2\u[2]\d\s+2>, author of this man page\&.
.fi
.if n \{\
.RE
.\}
.SH "REPORTING BUGS"
.sp
Report bugs to <\m[blue]\fBlinux\-trace\-devel@vger\&.kernel\&.org\fR\m[]\&\s-2\u[3]\d\s+2>
.SH "LICENSE"
.sp
libtraceevent is Free Software licensed under the GNU LGPL 2\&.1
.SH "RESOURCES"
.sp
\m[blue]\fBhttps://git\&.kernel\&.org/pub/scm/libs/libtrace/libtraceevent\&.git/\fR\m[]
.SH "NOTES"
.IP " 1." 4
rostedt@goodmis.org
.RS 4
\%mailto:rostedt@goodmis.org
.RE
.IP " 2." 4
tz.stoyanov@gmail.com
.RS 4
\%mailto:tz.stoyanov@gmail.com
.RE
.IP " 3." 4
linux-trace-devel@vger.kernel.org
.RS 4
\%mailto:linux-trace-devel@vger.kernel.org
.RE
