Tracepoint API namespacing 'TRACEPOINT_EVENT'
[lttng-ust.git] / doc / examples / easy-ust / sample_component_provider.h
index edfac8f58706bcaa665d25a474ef3234cb516e6e..4e9327b96282b6480b5e59d6019dade9b5e3ea0d 100644 (file)
@@ -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.
@@ -65,21 +65,21 @@ TRACEPOINT_EVENT(
         */
        message,
        /*
-        * TP_ARGS macro contains the arguments passed for the tracepoint
+        * LTTNG_UST_TP_ARGS macro contains the arguments passed for the tracepoint
         * it is in the following format
-        *              TP_ARGS( type1, name1, type2, name2, ... type10, name10)
+        *              LTTNG_UST_TP_ARGS( type1, name1, type2, name2, ... type10, name10)
         * where there can be from zero to ten elements.
         * typeN is the datatype, such as int, struct or double **.
         * name is the variable name (in "int myInt" the name would be myint)
-        *              TP_ARGS() is valid to mean no arguments
-        *              TP_ARGS( void ) is valid too
+        *              LTTNG_UST_TP_ARGS() is valid to mean no arguments
+        *              LTTNG_UST_TP_ARGS( void ) is valid too
         */
-       TP_ARGS(char *, text),
+       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"
@@ -97,12 +97,12 @@ TRACEPOINT_EVENT(
 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,
        /*
This page took 0.024047 seconds and 4 git commands to generate.