Fix: ACCESS_ONCE was removed in 4.15, use READ_ONCE instead
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 30 Aug 2018 01:36:47 +0000 (21:36 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 30 Aug 2018 02:46:43 +0000 (22:46 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/lttng-uprobes.c

index 0b399291245f9f38d4ce1f52931311ebada3d73a..bcdbbd84840259b1a701b39934d6cb3415c1258c 100644 (file)
@@ -52,11 +52,11 @@ int lttng_uprobes_handler_pre(struct uprobe_consumer *uc, struct pt_regs *regs)
                unsigned long ip;
        } payload;
 
-       if (unlikely(!ACCESS_ONCE(chan->session->active)))
+       if (unlikely(!READ_ONCE(chan->session->active)))
                return 0;
-       if (unlikely(!ACCESS_ONCE(chan->enabled)))
+       if (unlikely(!READ_ONCE(chan->enabled)))
                return 0;
-       if (unlikely(!ACCESS_ONCE(event->enabled)))
+       if (unlikely(!READ_ONCE(event->enabled)))
                return 0;
 
        lib_ring_buffer_ctx_init(&ctx, chan->chan, &lttng_probe_ctx,
This page took 0.026482 seconds and 4 git commands to generate.