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-cgroup-ns.c
diff --git
a/liblttng-ust/lttng-context-cgroup-ns.c
b/liblttng-ust/lttng-context-cgroup-ns.c
index 3526798faf99fef593485efcf900d606b8cfca93..cd9e2bc1f1de694ae3e04c3dae470d44fa1b896f 100644
(file)
--- a/
liblttng-ust/lttng-context-cgroup-ns.c
+++ b/
liblttng-ust/lttng-context-cgroup-ns.c
@@
-39,7
+39,11
@@
* 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_cgroup_ns) = NS_INO_UNINITIALIZED;
static DEFINE_URCU_TLS(ino_t, cached_cgroup_ns) = NS_INO_UNINITIALIZED;
+#else
+static DEFINE_URCU_TLS_INIT(ino_t, cached_cgroup_ns, NS_INO_UNINITIALIZED);
+#endif
static
ino_t get_cgroup_ns(void)
static
ino_t get_cgroup_ns(void)
This page took
0.024109 seconds
and
5
git commands to generate.