X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Feasy-ust%2Fsample_component_provider.h;h=d6eb19dd950a6a6adce0d0a061e21357ad88ba96;hb=5b393d6424d959e2efbb800b0c8a61b81bf9968e;hp=4e9327b96282b6480b5e59d6019dade9b5e3ea0d;hpb=7f2f82c3b336458e815e9a4ed100d7084c9e7138;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 4e9327b9..d6eb19dd 100644 --- a/doc/examples/easy-ust/sample_component_provider.h +++ b/doc/examples/easy-ust/sample_component_provider.h @@ -25,20 +25,20 @@ * In this example, "sample" is the project, and "component" is the * component. */ -#undef TRACEPOINT_PROVIDER -#define TRACEPOINT_PROVIDER sample_component +#undef LTTNG_UST_TRACEPOINT_PROVIDER +#define LTTNG_UST_TRACEPOINT_PROVIDER sample_component /* * include file (this files's name) */ -#undef TRACEPOINT_INCLUDE -#define TRACEPOINT_INCLUDE "./sample_component_provider.h" +#undef LTTNG_UST_TRACEPOINT_INCLUDE +#define LTTNG_UST_TRACEPOINT_INCLUDE "./sample_component_provider.h" /* * Add this precompiler conditionals to ensure the tracepoint event generation * can include this file more than once. */ -#if !defined(_SAMPLE_COMPONENT_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ) +#if !defined(_SAMPLE_COMPONENT_PROVIDER_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) #define _SAMPLE_COMPONENT_PROVIDER_H /* * Add this to allow programs to call "tracepoint(...): @@ -56,7 +56,7 @@ LTTNG_UST_TRACEPOINT_EVENT( /* * provider name, not a variable but a string starting with a letter * and containing either letters, numbers or underscores. - * Needs to be the same as TRACEPOINT_PROVIDER + * Needs to be the same as LTTNG_UST_TRACEPOINT_PROVIDER */ sample_component, /* @@ -88,16 +88,18 @@ LTTNG_UST_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 - * LTTNG_UST_TRACEPOINT_EVENT and as TRACEPOINT_PROVIDER above. + * LTTNG_UST_TRACEPOINT_EVENT and as LTTNG_UST_TRACEPOINT_PROVIDER above. */ sample_component, /* @@ -109,7 +111,7 @@ TRACEPOINT_LOGLEVEL( * 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 */