projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: c99: use __asm__ __volatile__
[lttng-ust.git]
/
src
/
lib
/
lttng-ust
/
lttng-context-cgroup-ns.c
diff --git
a/src/lib/lttng-ust/lttng-context-cgroup-ns.c
b/src/lib/lttng-ust/lttng-context-cgroup-ns.c
index fa67a64cc3b1d19ccaffdb8d0b05126d024aeec1..182d39666e8a87f71546014799ecef6345cdb337 100644
(file)
--- a/
src/lib/lttng-ust/lttng-context-cgroup-ns.c
+++ b/
src/lib/lttng-ust/lttng-context-cgroup-ns.c
@@
-153,9
+153,11
@@
error_find_context:
}
/*
}
/*
- *
* Force a read (imply TLS fixup
for dlopen) of TLS variables.
- *
*
/
-void lttng_
fixup_cgroup_ns_tls(void
)
+ *
Force a read (imply TLS allocation
for dlopen) of TLS variables.
+ */
+void lttng_
ust_cgroup_ns_init_thread(int flags
)
{
{
- asm volatile ("" : : "m" (URCU_TLS(cached_cgroup_ns)));
+ __asm__ __volatile__ ("" : : "m" (URCU_TLS(cached_cgroup_ns)));
+ if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+ (void)get_cgroup_ns();
}
}
This page took
0.02335 seconds
and
4
git commands to generate.