X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=probes%2Flttng-ftrace.c;h=50675a4fa6096ead0a9191ada6642cc335abeffc;hb=639655f9b4c42d3e82a7e69afbae8d26e69f9be3;hp=9ec326ee56d992ab57101cc3d424d93f18fb3278;hpb=5d8496675c9e8ccf169871f4f72022df9677624a;p=lttng-modules.git diff --git a/probes/lttng-ftrace.c b/probes/lttng-ftrace.c index 9ec326ee..50675a4f 100644 --- a/probes/lttng-ftrace.c +++ b/probes/lttng-ftrace.c @@ -58,11 +58,11 @@ void lttng_ftrace_handler(unsigned long ip, unsigned long parent_ip, } payload; int ret; - if (unlikely(!ACCESS_ONCE(chan->session->active))) + if (unlikely(!READ_ONCE(chan->session->active))) return; - if (unlikely(!ACCESS_ONCE(chan->enabled))) + if (unlikely(!READ_ONCE(chan->enabled))) return; - if (unlikely(!ACCESS_ONCE(event->enabled))) + if (unlikely(!READ_ONCE(event->enabled))) return; lib_ring_buffer_ctx_init(&ctx, chan->chan, <tng_probe_ctx, @@ -94,11 +94,11 @@ void lttng_ftrace_handler(unsigned long ip, unsigned long parent_ip, void **data } payload; int ret; - if (unlikely(!ACCESS_ONCE(chan->session->active))) + if (unlikely(!READ_ONCE(chan->session->active))) return; - if (unlikely(!ACCESS_ONCE(chan->enabled))) + if (unlikely(!READ_ONCE(chan->enabled))) return; - if (unlikely(!ACCESS_ONCE(event->enabled))) + if (unlikely(!READ_ONCE(event->enabled))) return; lib_ring_buffer_ctx_init(&ctx, chan->chan, <tng_probe_ctx,