Move headers under include/
[lttng-modules.git] / tests / clock-plugin / lttng-clock-plugin-test.c
index f16ea645543a32a3dfe9d420ec465e4262128a53..d35ecc4a627a1a5d0fd5ff7573e0330ac54e1a17 100644 (file)
@@ -1,21 +1,8 @@
-/*
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
+ *
  * lttng-clock-plugin-test.c
  *
  * Copyright (C) 2014, 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; only
- * version 2.1 of the License.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #include <linux/module.h>
@@ -23,7 +10,8 @@
 #include <linux/hrtimer.h>
 #include <linux/time.h>
 
-#include <lttng-clock.h>       /* From lttng-modules */
+#include <lttng/lttng-tracer.h>
+#include <lttng/lttng-clock.h> /* From lttng-modules */
 
 static u64 trace_clock_read64_example(void)
 {
@@ -67,7 +55,7 @@ int lttng_clock_plugin_init(void)
 {
        return lttng_clock_register_plugin(&ltc, THIS_MODULE);
 }
-module_init(lttng_clock_plugin_init);
+fs_initcall(lttng_clock_plugin_init);
 
 static __exit
 void lttng_clock_plugin_exit(void)
@@ -79,3 +67,7 @@ module_exit(lttng_clock_plugin_exit);
 MODULE_LICENSE("GPL and additional rights");
 MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>");
 MODULE_DESCRIPTION("LTTng Clock Plugin Example");
+MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "."
+       __stringify(LTTNG_MODULES_MINOR_VERSION) "."
+       __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION)
+       LTTNG_MODULES_EXTRAVERSION);
This page took 0.023086 seconds and 4 git commands to generate.