X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=probes%2Flttng-kprobes.c;h=b58a09b4ab19fae4597bb3286f6aca0c18a1e70a;hb=acb98454d574a5d7a5b7508978858e9bf6981758;hp=daf14ceca9d42ac29e85edd279dbbaea59b0763a;hpb=f144f72a82816c2a4fd911108b1ec7a89c20b517;p=deliverable%2Flttng-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),