X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fclock-plugin%2Flttng-clock-plugin-test.c;h=6c4213bdc01a783a171cb5a1ca3a257e66aeeb76;hb=a101fa100885861be33fab3966db2c5136815724;hp=bf8193298602840dda91c0d23f48a80e6f1bab33;hpb=69a6252d5bf1787f2bbd0b6f35af8dff21efcb55;p=lttng-modules.git diff --git a/tests/clock-plugin/lttng-clock-plugin-test.c b/tests/clock-plugin/lttng-clock-plugin-test.c index bf819329..6c4213bd 100644 --- a/tests/clock-plugin/lttng-clock-plugin-test.c +++ b/tests/clock-plugin/lttng-clock-plugin-test.c @@ -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 - * - * 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 @@ -23,7 +10,8 @@ #include #include -#include /* From lttng-modules */ +#include +#include /* 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(<c, THIS_MODULE); } -rootfs_initcall(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 "); 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);