From: Michael Jeanson Date: Wed, 10 Feb 2016 16:08:14 +0000 (-0500) Subject: Fix: Define lttng-tracer metadata only once X-Git-Tag: v2.8.0-rc1~30 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=39e088f37e7cb43f35af05b81bf1e23542623802;p=lttng-modules.git Fix: Define lttng-tracer metadata only once Fixes sysfs trying to create the lttng-tracer module version node multiple times. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/Makefile b/Makefile index 5d6be942..05e4449b 100644 --- a/Makefile +++ b/Makefile @@ -55,10 +55,6 @@ ifneq ($(KERNELRELEASE),) lttng-filter-validator.o \ probes/lttng-probe-user.o - obj-$(CONFIG_LTTNG) += lttng-statedump.o - lttng-statedump-objs := lttng-statedump-impl.o wrapper/irqdesc.o \ - wrapper/fdtable.o - ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),) lttng-tracer-objs += lttng-syscalls.o endif # CONFIG_HAVE_SYSCALL_TRACEPOINTS @@ -84,6 +80,10 @@ ifneq ($(KERNELRELEASE),) -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 15 -a $(SUBLEVEL) -ge 0 \) ] ; then \ echo "lttng-tracepoint.o" ; fi;) + obj-$(CONFIG_LTTNG) += lttng-statedump.o + lttng-statedump-objs := lttng-statedump-impl.o wrapper/irqdesc.o \ + wrapper/fdtable.o + obj-$(CONFIG_LTTNG) += probes/ obj-$(CONFIG_LTTNG) += lib/ diff --git a/lttng-context-cpu-id.c b/lttng-context-cpu-id.c index ed2a2a92..94126afd 100644 --- a/lttng-context-cpu-id.c +++ b/lttng-context-cpu-id.c @@ -85,11 +85,3 @@ int lttng_add_cpu_id_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_cpu_id_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit CPU id Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-hostname.c b/lttng-context-hostname.c index 7d9f0816..cd414c09 100644 --- a/lttng-context-hostname.c +++ b/lttng-context-hostname.c @@ -118,11 +118,3 @@ int lttng_add_hostname_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_hostname_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit Perf Support"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-interruptible.c b/lttng-context-interruptible.c index b608a6e2..295b10dc 100644 --- a/lttng-context-interruptible.c +++ b/lttng-context-interruptible.c @@ -92,11 +92,3 @@ int lttng_add_interruptible_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_interruptible_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit interruptible Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-migratable.c b/lttng-context-migratable.c index 1aaedf6a..ef0c4edf 100644 --- a/lttng-context-migratable.c +++ b/lttng-context-migratable.c @@ -85,11 +85,3 @@ int lttng_add_migratable_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_migratable_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit migratable Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-need-reschedule.c b/lttng-context-need-reschedule.c index 82f2d614..b0ea6d1c 100644 --- a/lttng-context-need-reschedule.c +++ b/lttng-context-need-reschedule.c @@ -85,11 +85,3 @@ int lttng_add_need_reschedule_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_need_reschedule_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit need_reschedule Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-nice.c b/lttng-context-nice.c index b2d7705f..2ad3841d 100644 --- a/lttng-context-nice.c +++ b/lttng-context-nice.c @@ -85,11 +85,3 @@ int lttng_add_nice_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_nice_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit Nice Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-perf-counters.c b/lttng-context-perf-counters.c index 0c74234c..467b7180 100644 --- a/lttng-context-perf-counters.c +++ b/lttng-context-perf-counters.c @@ -280,11 +280,3 @@ error_attr: kfree(events); return ret; } - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit Perf Support"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-pid.c b/lttng-context-pid.c index 5ad92c14..3428be60 100644 --- a/lttng-context-pid.c +++ b/lttng-context-pid.c @@ -85,11 +85,3 @@ int lttng_add_pid_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_pid_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit PID Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-ppid.c b/lttng-context-ppid.c index 28c97b58..7323b881 100644 --- a/lttng-context-ppid.c +++ b/lttng-context-ppid.c @@ -107,11 +107,3 @@ int lttng_add_ppid_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_ppid_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit PPID Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-preemptible.c b/lttng-context-preemptible.c index d4d474cf..70534147 100644 --- a/lttng-context-preemptible.c +++ b/lttng-context-preemptible.c @@ -103,11 +103,3 @@ int lttng_add_preemptible_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_preemptible_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit preemptible Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-prio.c b/lttng-context-prio.c index 9da51a22..5a27e048 100644 --- a/lttng-context-prio.c +++ b/lttng-context-prio.c @@ -106,11 +106,3 @@ int lttng_add_prio_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_prio_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit Priority Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-procname.c b/lttng-context-procname.c index 8a747acd..6b5e90ab 100644 --- a/lttng-context-procname.c +++ b/lttng-context-procname.c @@ -89,11 +89,3 @@ int lttng_add_procname_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_procname_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit Perf Support"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-tid.c b/lttng-context-tid.c index 12862659..3eded5b3 100644 --- a/lttng-context-tid.c +++ b/lttng-context-tid.c @@ -88,11 +88,3 @@ int lttng_add_tid_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_tid_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit TID Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-vpid.c b/lttng-context-vpid.c index 6fa1c00d..a2080f1b 100644 --- a/lttng-context-vpid.c +++ b/lttng-context-vpid.c @@ -100,11 +100,3 @@ int lttng_add_vpid_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_vpid_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit vPID Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-vppid.c b/lttng-context-vppid.c index 8a7d172f..9e7e54d1 100644 --- a/lttng-context-vppid.c +++ b/lttng-context-vppid.c @@ -129,11 +129,3 @@ int lttng_add_vppid_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_vppid_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit vPPID Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION); diff --git a/lttng-context-vtid.c b/lttng-context-vtid.c index a37bb767..425f3681 100644 --- a/lttng-context-vtid.c +++ b/lttng-context-vtid.c @@ -100,11 +100,3 @@ int lttng_add_vtid_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_vtid_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit vTID Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION);