X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=probes%2Flttng-kprobes.c;h=38fb72e89133fa7a4e573736b1a61de126288de8;hb=57ccbfa6a8a79c7b84394c2097efaf7935607aa5;hp=a44eaa11d7a1d0a4ffcdabd5880d69622c126994;hpb=52563d02a9234215b62c5f519aa1b5d8589ccd0a;p=lttng-modules.git diff --git a/probes/lttng-kprobes.c b/probes/lttng-kprobes.c index a44eaa11..38fb72e8 100644 --- a/probes/lttng-kprobes.c +++ b/probes/lttng-kprobes.c @@ -31,11 +31,11 @@ int lttng_kprobes_handler_pre(struct kprobe *p, struct pt_regs *regs) int ret; unsigned long data = (unsigned long) p->addr; - if (unlikely(!READ_ONCE(chan->session->active))) + if (unlikely(!LTTNG_READ_ONCE(chan->session->active))) return 0; - if (unlikely(!READ_ONCE(chan->enabled))) + if (unlikely(!LTTNG_READ_ONCE(chan->enabled))) return 0; - if (unlikely(!READ_ONCE(event->enabled))) + if (unlikely(!LTTNG_READ_ONCE(event->enabled))) return 0; lib_ring_buffer_ctx_init(&ctx, chan->chan, <tng_probe_ctx, sizeof(data),