projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: namespace contexts !CONFIG_RCU_TLS variable initialization
[lttng-ust.git]
/
liblttng-ust
/
lttng-context-ipc-ns.c
diff --git
a/liblttng-ust/lttng-context-ipc-ns.c
b/liblttng-ust/lttng-context-ipc-ns.c
index c973dc86dd06ec246f627a8bc7bbf17a80ef2cf2..a05a6c616a5fe4eee378c0c5b82a916e14288a66 100644
(file)
--- a/
liblttng-ust/lttng-context-ipc-ns.c
+++ b/
liblttng-ust/lttng-context-ipc-ns.c
@@
-33,12
+33,15
@@
#include "lttng-tracer-core.h"
#include "ns.h"
#include "lttng-tracer-core.h"
#include "ns.h"
-
/*
* We cache the result to ensure we don't stat(2) the proc filesystem on
* each event.
*/
/*
* We cache the result to ensure we don't stat(2) the proc filesystem on
* each event.
*/
+#ifdef CONFIG_RCU_TLS
static DEFINE_URCU_TLS(ino_t, cached_ipc_ns) = NS_INO_UNINITIALIZED;
static DEFINE_URCU_TLS(ino_t, cached_ipc_ns) = NS_INO_UNINITIALIZED;
+#else
+static DEFINE_URCU_TLS_INIT(ino_t, cached_ipc_ns, NS_INO_UNINITIALIZED);
+#endif
static
ino_t get_ipc_ns(void)
static
ino_t get_ipc_ns(void)
This page took
0.023864 seconds
and
4
git commands to generate.