X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-kprobes.c;h=b58a09b4ab19fae4597bb3286f6aca0c18a1e70a;hb=d4fe3450f4fec0be4ccb6cda97e7e33124b93a0e;hp=daf14ceca9d42ac29e85edd279dbbaea59b0763a;hpb=fd97ec2a5d01095698b89e2200cf9f5e10d5e3ac;p=lttng-modules.git diff --git a/probes/lttng-kprobes.c b/probes/lttng-kprobes.c index daf14cec..b58a09b4 100644 --- a/probes/lttng-kprobes.c +++ b/probes/lttng-kprobes.c @@ -43,11 +43,11 @@ int lttng_kprobes_handler_pre(struct kprobe *p, struct pt_regs *regs) int ret; unsigned long data = (unsigned long) p->addr; - 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, sizeof(data),