projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: ACCESS_ONCE() removed in kernel 4.15
[lttng-modules.git]
/
probes
/
lttng-ftrace.c
diff --git
a/probes/lttng-ftrace.c
b/probes/lttng-ftrace.c
index 9ec326ee56d992ab57101cc3d424d93f18fb3278..50675a4fa6096ead0a9191ada6642cc335abeffc 100644
(file)
--- a/
probes/lttng-ftrace.c
+++ b/
probes/lttng-ftrace.c
@@
-58,11
+58,11
@@
void lttng_ftrace_handler(unsigned long ip, unsigned long parent_ip,
} payload;
int ret;
} payload;
int ret;
- if (unlikely(!
ACCESS
_ONCE(chan->session->active)))
+ if (unlikely(!
READ
_ONCE(chan->session->active)))
return;
return;
- if (unlikely(!
ACCESS
_ONCE(chan->enabled)))
+ if (unlikely(!
READ
_ONCE(chan->enabled)))
return;
return;
- if (unlikely(!
ACCESS
_ONCE(event->enabled)))
+ if (unlikely(!
READ
_ONCE(event->enabled)))
return;
lib_ring_buffer_ctx_init(&ctx, chan->chan, <tng_probe_ctx,
return;
lib_ring_buffer_ctx_init(&ctx, chan->chan, <tng_probe_ctx,
@@
-94,11
+94,11
@@
void lttng_ftrace_handler(unsigned long ip, unsigned long parent_ip, void **data
} payload;
int ret;
} payload;
int ret;
- if (unlikely(!
ACCESS
_ONCE(chan->session->active)))
+ if (unlikely(!
READ
_ONCE(chan->session->active)))
return;
return;
- if (unlikely(!
ACCESS
_ONCE(chan->enabled)))
+ if (unlikely(!
READ
_ONCE(chan->enabled)))
return;
return;
- if (unlikely(!
ACCESS
_ONCE(event->enabled)))
+ if (unlikely(!
READ
_ONCE(event->enabled)))
return;
lib_ring_buffer_ctx_init(&ctx, chan->chan, <tng_probe_ctx,
return;
lib_ring_buffer_ctx_init(&ctx, chan->chan, <tng_probe_ctx,
This page took
0.023926 seconds
and
4
git commands to generate.