X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-ipc-ns.c;h=a05a6c616a5fe4eee378c0c5b82a916e14288a66;hb=23aee768dcad2b7e896a86183b38c96b2123d983;hp=c973dc86dd06ec246f627a8bc7bbf17a80ef2cf2;hpb=735bef4705cc42f25d26f25be09ba98f1efb8511;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-ipc-ns.c b/liblttng-ust/lttng-context-ipc-ns.c index c973dc86..a05a6c61 100644 --- 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" - /* * 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; +#else +static DEFINE_URCU_TLS_INIT(ino_t, cached_ipc_ns, NS_INO_UNINITIALIZED); +#endif static ino_t get_ipc_ns(void)