X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Feasy-ust%2Fsample_component_provider.h;h=39d748e7cb43da1b0b7f2c5383e6fdbf6ffea945;hb=3202f63a4d5e599bf22d6711828614b58c7efcba;hp=9788180850d3e82bad2bba563781fa33b5a712ea;hpb=612e9ce4e5cc3a1292522a563789f6aab6c421b1;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 97881808..39d748e7 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, /* @@ -81,10 +81,10 @@ LTTNG_UST_TRACEPOINT_EVENT( */ LTTNG_UST_TP_FIELDS( /* - * The ctf_string macro takes a c string and writes it into a field + * The lttng_ust_field_string macro takes a c string and writes it into a field * named "message" */ - ctf_string(message, text) + lttng_ust_field_string(message, text) ) ) /* @@ -99,7 +99,7 @@ LTTNG_UST_TRACEPOINT_EVENT( 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, /*