From b29a9c89c78c0d380625475f5810630a1c121ae8 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Wed, 29 Aug 2018 21:36:47 -0400 Subject: [PATCH] Fix: ACCESS_ONCE was removed in 4.15, use READ_ONCE instead Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers --- probes/lttng-uprobes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/probes/lttng-uprobes.c b/probes/lttng-uprobes.c index 0b399291..bcdbbd84 100644 --- a/probes/lttng-uprobes.c +++ b/probes/lttng-uprobes.c @@ -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, <tng_probe_ctx, -- 2.34.1