projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: perform volatile load of tracepoint state
[lttng-ust.git]
/
include
/
lttng
/
tracepoint.h
diff --git
a/include/lttng/tracepoint.h
b/include/lttng/tracepoint.h
index c5a09d815db1383e539c8c455e8477dda29a579a..ca68c1fa44e62b666da477ab71878ee4b77de827 100644
(file)
--- a/
include/lttng/tracepoint.h
+++ b/
include/lttng/tracepoint.h
@@
-28,6
+28,7
@@
#include <lttng/tracepoint-types.h>
#include <lttng/tracepoint-rcu.h>
#include <urcu/compiler.h>
#include <lttng/tracepoint-types.h>
#include <lttng/tracepoint-rcu.h>
#include <urcu/compiler.h>
+#include <urcu/system.h>
#include <dlfcn.h> /* for dlopen */
#include <string.h> /* for memset */
#include <lttng/ust-config.h> /* for sdt */
#include <dlfcn.h> /* for dlopen */
#include <string.h> /* for memset */
#include <lttng/ust-config.h> /* for sdt */
@@
-47,7
+48,7
@@
extern "C" {
#define tracepoint(provider, name, ...) \
do { \
STAP_PROBEV(provider, name, ## __VA_ARGS__); \
#define tracepoint(provider, name, ...) \
do { \
STAP_PROBEV(provider, name, ## __VA_ARGS__); \
- if (caa_unlikely(
__tracepoint_##provider##___##name.state
)) \
+ if (caa_unlikely(
CMM_LOAD_SHARED(__tracepoint_##provider##___##name.state)
)) \
__tracepoint_cb_##provider##___##name(__VA_ARGS__); \
} while (0)
__tracepoint_cb_##provider##___##name(__VA_ARGS__); \
} while (0)
This page took
0.023851 seconds
and
4
git commands to generate.