X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fclock-plugin%2Flttng-clock-plugin-test.c;h=d35ecc4a627a1a5d0fd5ff7573e0330ac54e1a17;hb=b53047135828b997a4eeb2cae7344cb169aa9c8c;hp=f16ea645543a32a3dfe9d420ec465e4262128a53;hpb=db758d11a182e40d01d6ebe3ddf110ba614e6d63;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 f16ea645..d35ecc4a 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); } -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 "); 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);