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:34:14 +0000 (12:34 -0500)
commit1816623505f9a0111fa5041da63f8e1099b6ffcc
tree04e49ae53abda7b1c4067c96929cedd2c1041d20
parent95ee5a2e9fc23c960e4bb8077853f9bd3318f98e
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.031 seconds and 4 git commands to generate.