projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng_ust_init_thread: initialise cached context values
[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 34523ea1ad96b33f2bacdb48860597309283392c..5accd2df47e44367d95935895bf3374e43525bc2 100644
(file)
--- a/
src/lib/lttng-ust/lttng-context-cgroup-ns.c
+++ b/
src/lib/lttng-ust/lttng-context-cgroup-ns.c
@@
-155,7
+155,9
@@
error_find_context:
/*
* Force a read (imply TLS allocation for dlopen) of TLS variables.
*/
/*
* Force a read (imply TLS allocation for dlopen) of TLS variables.
*/
-void lttng_
cgroup_ns_alloc_tls(void
)
+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.024534 seconds
and
4
git commands to generate.