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-uts-ns.c
diff --git
a/src/lib/lttng-ust/lttng-context-uts-ns.c
b/src/lib/lttng-ust/lttng-context-uts-ns.c
index 06a978fd4184d561c9ff437a760bbd3ea7203bda..51d6092e53158fb197269b25f8f79cf827df53cc 100644
(file)
--- a/
src/lib/lttng-ust/lttng-context-uts-ns.c
+++ b/
src/lib/lttng-ust/lttng-context-uts-ns.c
@@
-154,7
+154,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_u
ts_ns_alloc_tls(void
)
+void lttng_u
st_uts_ns_init_thread(int flags
)
{
asm volatile ("" : : "m" (URCU_TLS(cached_uts_ns)));
{
asm volatile ("" : : "m" (URCU_TLS(cached_uts_ns)));
+ if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+ (void)get_uts_ns();
}
}
This page took
0.024844 seconds
and
4
git commands to generate.