doc: implement REUSE with SPDX identifiers
[lttng-ust.git] / doc / examples / gen-tp / sample.c
index dab6e7d8b946de0744a653acf2bf7e44cbf203e7..b0b0388ab88a7d4c8bde96667f34cb786af17b23 100644 (file)
@@ -1,35 +1,17 @@
-/*
- * Copyright (C) 2011-2012  Matthew Khouzam <matthew.khouzam@ericsson.com>
- * Copyright (C) 2012  Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * 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.
- */
+// SPDX-FileCopyrightText: 2011-2012 Matthew Khouzam <matthew.khouzam@ericsson.com>
+// SPDX-FileCopyrightText: 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+//
+// SPDX-License-Identifier: MIT
 
 #include <unistd.h>
 
 #include "sample_tracepoint.h"
-int main(int argc, char **argv)
+int main(void)
 {
        int i = 0;
 
        for (i = 0; i < 100000; i++) {
-               tracepoint(sample_tracepoint, message,  "Hello World\n");
+               lttng_ust_tracepoint(sample_tracepoint, message,  "Hello World\n");
                usleep(1);
        }
        return 0;
This page took 0.023825 seconds and 4 git commands to generate.