Fix: namespace contexts !CONFIG_RCU_TLS variable initialization
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Apr 2020 15:29:18 +0000 (11:29 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Apr 2020 15:29:18 +0000 (11:29 -0400)
commita251a2090be0b47988cd78a448ea818293244ca1
treeb73f072fa350cba64f026fd9c928a582fada5f19
parent5ffb7c14f2a7e58ff18864c0d14909bdf23bc65d
Fix: namespace contexts !CONFIG_RCU_TLS variable initialization

The namespace contexts introduced in lttng-ust 2.12 require to
initialize TLS variable to nonzero values. However, in !CONFIG_RCU_TLS
(compatibility mode using pthread setspecific), this initialization
does not build.

Use the new DEFINE_URCU_TLS_INIT from liburcu when building
!CONFIG_RCU_TLS to fix this issue. Since this requires a dependency on
a new liburcu version, only !CONFIG_RCU_TLS adds this dependency in the
fix. A followup cleanup patch will use DEFINE_URCU_TLS_INIT as we add
a strict version dependency.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-context-cgroup-ns.c
liblttng-ust/lttng-context-ipc-ns.c
liblttng-ust/lttng-context-net-ns.c
liblttng-ust/lttng-context-uts-ns.c
This page took 0.026448 seconds and 5 git commands to generate.