Fix: lttng_this_cpu_ptr wrapper for kernel 3.19+
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Dec 2014 17:24:04 +0000 (12:24 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Dec 2014 17:24:04 +0000 (12:24 -0500)
commite6b06d7d6346a5e3cfcdd214d171af067bca0f34
treed1f6e4fc833ab98eef471e2ab13626715a57e9d3
parente198138deee133122d55c6b5db0f6d3db07050bd
Fix: lttng_this_cpu_ptr wrapper for kernel 3.19+

Starting from kernel 3.19-rc1, __get_cpu_var() disappears, replaced by
this_cpu_ptr(). Introduce a wrapper using either depending on the kernel
version. Older kernels did not expose a this_cpu_ptr(), so keep on using
__get_cpu_var() on old kernels.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/frontend_api.h
lib/ringbuffer/ring_buffer_frontend.c
wrapper/percpu-defs.h [new file with mode: 0644]
wrapper/trace-clock.h
This page took 0.027904 seconds and 4 git commands to generate.