Fix build and load against linux-2.6.33.x
authorSamuel Martin <smartin@aldebaran-robotics.com>
Mon, 17 Jun 2013 14:28:51 +0000 (10:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 17 Jun 2013 14:28:51 +0000 (10:28 -0400)
commit5ca7b8a36c04e0733b6661d519343eb586d75a51
treec803d6c8c2891094f557a55797705d186dc72b80
parentaeb9064daf62485f8f7f6ec71019168ecbe4b0a7
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 <smartin@aldebaran-robotics.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Makefile
lttng-context-perf-counters.c
This page took 0.02511 seconds and 4 git commands to generate.