NAME
lttng-gen-tp - Generate LTTng-UST tracepoint provider codeSYNOPSIS
lttng-gen-tp [--verbose] [--output=FILE.c] [ --output=FILE.h] [--output=FILE.o] TEMPLATE
DESCRIPTION
The lttng-gen-tp tool simplifies the generation of LTTng-UST tracepoint provider files. It takes a simple template file, TEMPLATE, and generates the necessary C code to use the defined tracepoints in your application. See the Template file format section below for more information about the format of TEMPLATE.Template file format
The template file, which usually has the .tp extension, contains a list of LTTNG_UST_TRACEPOINT_EVENT() definitions and other optional definition entries, like LTTNG_UST_TRACEPOINT_LOGLEVEL(). See lttng-ust(3) for the complete list of available definitions.LTTNG_UST_TRACEPOINT_EVENT( // Tracepoint provider name my_provider, // Tracepoint/event name my_event, // Tracepoint arguments (input) LTTNG_UST_TP_ARGS(char *, text), // Tracepoint/event fields (output) LTTNG_UST_TP_FIELDS( lttng_ust_field_string(message, text) ) )
OPTIONS
-o, --output=FILEDo not generate default files: generate
FILE.
The extension of FILE determines what is generated, amongst .h,
.c, and .o. This option can be used more than one time to
generate different file types.
-v, --verbose
Increase verbosity.
-h, --help
Show command help.
ENVIRONMENT VARIABLES
CCC compiler to use. Default: cc, then
gcc if cc is not found. This option is only relevant when
generating the .o file.
CFLAGS
Flags and options passed directly to the
compiler ( $CC). This option is only relevant when generating the
.o file.
EXIT STATUS
0Success
Non-zero
Error
BUGS
If you encounter any issue or usability problem, please report it on the LTTng bug tracker <https://bugs.lttng.org/projects/lttng-ust>.RESOURCES
•LTTng project website
<http://lttng.org>
•LTTng documentation
<http://lttng.org/docs>
•Git repositories
<http://git.lttng.org>
•GitHub organization
<http://github.com/lttng>
•Continuous integration
<http://ci.lttng.org/>
•Mailing list
<http://lists.lttng.org> for support and development:
[email protected]
•IRC channel
<irc://irc.oftc.net/lttng>: #lttng on irc.oftc.net
COPYRIGHTS
lttng-gen-tp is part of the LTTng-UST project.AUTHOR
lttng-gen-tp was originally written by Yannick Brosseau <mailto:[email protected]>. It is currently maintained by Mathieu Desnoyers <mailto:[email protected]>.SEE ALSO
lttng-ust(3)09/30/2022 | LTTng 2.13.5 |