X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fman%2Flttng-gen-tp.1.txt;h=969a1e318327625823fe3b5199fe005e5972d564;hb=5b1163c6cf674c6461cc1e0ad1211924df7af789;hp=2fa73c8722616e0f8bd6d4078a9bb68df1529343;hpb=e436e84d48332d559fe60c1a5eba81f03e9f38f9;p=lttng-ust.git diff --git a/doc/man/lttng-gen-tp.1.txt b/doc/man/lttng-gen-tp.1.txt index 2fa73c87..969a1e31 100644 --- a/doc/man/lttng-gen-tp.1.txt +++ b/doc/man/lttng-gen-tp.1.txt @@ -40,21 +40,22 @@ needed. Template file format ~~~~~~~~~~~~~~~~~~~~ The template file, which usually has the `.tp` extension, contains a -list of `TRACEPOINT_EVENT()` definitions and other optional definition -entries, like `TRACEPOINT_LOGLEVEL()`. See man:lttng-ust(3) for -the complete list of available definitions. +list of `LTTNG_UST_TRACEPOINT_EVENT()` definitions and other optional +definition entries, like `LTTNG_UST_TRACEPOINT_LOGLEVEL()`. See +man:lttng-ust(3) for the complete list of available definitions. -The `TRACEPOINT_EVENT()` definitions are written as you would write them -in an LTTng-UST template provider header file. C comments are supported -(`/* */` and `//`), as well as lines starting with `#`. +The `LTTNG_UST_TRACEPOINT_EVENT()` definitions are written as you would +write them in an LTTng-UST template provider header file. C comments are +supported (`/* */` and `//`), as well as lines starting with `#`. -NOTE: The provider name (the first argument of `TRACEPOINT_EVENT()`) -must be the same in all the `TRACEPOINT_EVENT()` macros of 'TEMPLATE'. +NOTE: The provider name (the first argument of +`LTTNG_UST_TRACEPOINT_EVENT()`) must be the same in all the +`LTTNG_UST_TRACEPOINT_EVENT()` macros of 'TEMPLATE'. Here's an example: --------------------------------------- -TRACEPOINT_EVENT( +LTTNG_UST_TRACEPOINT_EVENT( // Tracepoint provider name my_provider, @@ -62,11 +63,11 @@ TRACEPOINT_EVENT( my_event, // Tracepoint arguments (input) - TP_ARGS(char *, text), + LTTNG_UST_TP_ARGS(char *, text), // Tracepoint/event fields (output) - TP_FIELDS( - ctf_string(message, text) + LTTNG_UST_TP_FIELDS( + lttng_ust_field_string(message, text) ) ) ---------------------------------------