Skip to contentSkip to conversation

lttng-modules: fix build and load against linux-2.6.33.x

PATCH Mathieu Desnoyers 1 participant 1 message Jun 17, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mathieu Desnoyers

author Applied
#1 lore raw
Quoted 8 lines · * Samuel Martin ([email protected]) wrote:

* lttng-event.h declared but did not implement lttng_add_perf_counter_to_ctx on kernel >=2.6.33, the implementation was in lttng-context-perf-counters.c, which was only included for kernel >=2.6.34.
This prevented the module from being loaded.

* on kernel 2.6.33.x, lttng-context-perf-counters.c complains about implicit declaration for {get,put}_online_cpus and {,un}register_cpu_notifier; so fix header inclusion.

merged into master, stable-2.2, stable-2.1, stable-2.0 branches, thanks!

Mathieu

Quoted 40 lines
---
 Makefile                      | 2 +-
 lttng-context-perf-counters.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Makefile +1 -1
index 2da7298..66d94bc 100644
@@ -33,7 +33,7 @@ endif
 ifneq ($(CONFIG_PERF_EVENTS),)
 lttng-tracer-objs += $(shell \
 	if [ $(VERSION) -ge 3 \
-		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 34 \) ] ; then \
+		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 33 \) ] ; then \
 		echo "lttng-context-perf-counters.o" ; fi;)
 endif
 
lttng-context-perf-counters.c +1 -0
index b97b40b..8c4a48a 100644
@@ -25,6 +25,7 @@
 #include <linux/perf_event.h>
 #include <linux/list.h>
 #include <linux/string.h>
+#include <linux/cpu.h>
 #include "lttng-events.h"
 #include "wrapper/ringbuffer/frontend_types.h"
 #include "wrapper/vmalloc.h"
Signature · 7 lines
1.8.3.1


_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com