Tracepoint API namespacing ctf_integer
[lttng-ust.git] / doc / examples / easy-ust / sample.c
index d030d700d2bff0489ed384fdcc48f222fad4fcf5..101d10d79d0b24b1075ff4b3ecbba98b0c1842b6 100644 (file)
@@ -1,32 +1,25 @@
 /*
- * Copyright (C) 2011-2012  Matthew Khouzam <matthew.khouzam@ericsson.com> 
- * Copyright (C) 2012  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * SPDX-License-Identifier: MIT
  *
- * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
- * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
- *
- * Permission is hereby granted to use or copy this program for any
- * purpose,  provided the above notices are retained on all copies.
- * Permission to modify the code and to distribute modified code is
- * granted, provided the above notices are retained, and a notice that
- * the code was modified is included with the above copyright notice.
+ * Copyright (C) 2011-2012 Matthew Khouzam <matthew.khouzam@ericsson.com>
+ * Copyright (C) 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  */
+
 #include <unistd.h>
 
 /*
- * We need to define TRACEPOINT_DEFINE in one C file in the program
+ * We need to define LTTNG_UST_TRACEPOINT_DEFINE in one C file in the program
  * before including provider headers.
  */
-#define TRACEPOINT_DEFINE
+#define LTTNG_UST_TRACEPOINT_DEFINE
 #include "sample_component_provider.h"
 
-int main(int argc, char **argv)
+int main(void)
 {
        int i = 0;
 
        for (i = 0; i < 100000; i++) {
-               tracepoint(sample_component, message, "Hello World\n");
+               lttng_ust_tracepoint(sample_component, message, "Hello World");
                usleep(1);
        }
        return 0;
This page took 0.0474599999999999 seconds and 4 git commands to generate.