From: Samuel Martin Date: Mon, 17 Jun 2013 14:28:51 +0000 (-0400) Subject: Fix build and load against linux-2.6.33.x X-Git-Tag: v2.0.7~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d25a4cef8348ff361e9e4ca30d451159fe59d1e8;p=lttng-modules.git Fix build and load against linux-2.6.33.x * 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. Signed-off-by: Samuel Martin Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-context-perf-counters.c b/lttng-context-perf-counters.c index b97b40b9..8c4a48a7 100644 --- a/lttng-context-perf-counters.c +++ b/lttng-context-perf-counters.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "lttng-events.h" #include "wrapper/ringbuffer/frontend_types.h" #include "wrapper/vmalloc.h"