X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Feasy-ust%2Fsample_component_provider.h;h=9788180850d3e82bad2bba563781fa33b5a712ea;hb=612e9ce4e5cc3a1292522a563789f6aab6c421b1;hp=9aa85f5282d93454f7048dc71bcb381f4ac5b62c;hpb=cadfcbfcd89795086bfeb49af84dadc35154c754;p=lttng-ust.git diff --git a/doc/examples/easy-ust/sample_component_provider.h b/doc/examples/easy-ust/sample_component_provider.h index 9aa85f52..97881808 100644 --- a/doc/examples/easy-ust/sample_component_provider.h +++ b/doc/examples/easy-ust/sample_component_provider.h @@ -52,7 +52,7 @@ * * sample_component:message:message = text. */ -TRACEPOINT_EVENT( +LTTNG_UST_TRACEPOINT_EVENT( /* * provider name, not a variable but a string starting with a letter * and containing either letters, numbers or underscores. @@ -76,10 +76,10 @@ TRACEPOINT_EVENT( */ LTTNG_UST_TP_ARGS(const char *, text), /* - * TP_FIELDS describes how to write the fields of the trace event. + * LTTNG_UST_TP_FIELDS describes how to write the fields of the trace event. * You can use the args here */ - TP_FIELDS( + LTTNG_UST_TP_FIELDS( /* * The ctf_string macro takes a c string and writes it into a field * named "message" @@ -88,28 +88,30 @@ TRACEPOINT_EVENT( ) ) /* - * Trace loglevel, shows the level of the trace event. It can be TRACE_EMERG, - * TRACE_ALERT, TRACE_CRIT, TRACE_ERR, TRACE_WARNING, TRACE_INFO or others. - * If this is not set, TRACE_DEFAULT is assumed. - * The first two arguments identify the tracepoint - * See details in line 347 + * Trace loglevel, shows the level of the trace event. It can be + * LTTNG_UST_TRACEPOINT_LOGLEVEL_EMERG, LTTNG_UST_TRACEPOINT_LOGLEVEL_ALERT, + * LTTNG_UST_TRACEPOINT_LOGLEVEL_CRIT, LTTNG_UST_TRACEPOINT_LOGLEVEL_ERR, + * LTTNG_UST_TRACEPOINT_LOGLEVEL_WARNING, LTTNG_UST_TRACEPOINT_LOGLEVEL_INFO or + * others. If this is not set, LTTNG_UST_TRACEPOINT_LOGLEVEL_DEFAULT is + * assumed. The first two arguments identify the tracepoint See details in + * line 347 */ -TRACEPOINT_LOGLEVEL( +LTTNG_UST_TRACEPOINT_LOGLEVEL( /* * The provider name, must be the same as the provider name in the - * TRACEPOINT_EVENT and as TRACEPOINT_PROVIDER above. + * LTTNG_UST_TRACEPOINT_EVENT and as TRACEPOINT_PROVIDER above. */ sample_component, /* * The tracepoint name, must be the same as the tracepoint name in the - * TRACEPOINT_EVENT + * LTTNG_UST_TRACEPOINT_EVENT */ message, /* * The tracepoint loglevel. Warning, some levels are abbreviated and * others are not, please see */ - TRACE_WARNING) + LTTNG_UST_TRACEPOINT_LOGLEVEL_WARNING) #endif /* _SAMPLE_COMPONENT_PROVIDER_H */