Tracepoint API namespacing 'TP_ARGS'
[lttng-ust.git] / doc / examples / easy-ust / sample_component_provider.h
index 16c1ee3c0bbf3b2ddf9264a797556c314b79264d..9aa85f5282d93454f7048dc71bcb381f4ac5b62c 100644 (file)
@@ -1,24 +1,8 @@
 /*
- * Copyright (C) 2011-2012  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- * Copyright (C) 2011-2012  Matthew Khouzam <matthew.khouzam@ericsson.com>
+ * SPDX-License-Identifier: MIT
  *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
+ * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright (C) 2011-2012 Matthew Khouzam <matthew.khouzam@ericsson.com>
  */
 
 /*
@@ -81,16 +65,16 @@ 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.
         * You can use the args here
This page took 0.024411 seconds and 4 git commands to generate.