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-ipc-ns.c
diff --git
a/src/lib/lttng-ust/lttng-context-ipc-ns.c
b/src/lib/lttng-ust/lttng-context-ipc-ns.c
index 63401e8d5889a6ce7f8fabb6b45c17684b1340d5..078e646106b576bc8deee1778b0e291c6389f6e4 100644
(file)
--- a/
src/lib/lttng-ust/lttng-context-ipc-ns.c
+++ b/
src/lib/lttng-ust/lttng-context-ipc-ns.c
@@
-153,7
+153,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_
ipc_ns_alloc_tls(void
)
+void lttng_
ust_ipc_ns_init_thread(int flags
)
{
asm volatile ("" : : "m" (URCU_TLS(cached_ipc_ns)));
{
asm volatile ("" : : "m" (URCU_TLS(cached_ipc_ns)));
+ if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+ (void)get_ipc_ns();
}
}
This page took
0.085551 seconds
and
4
git commands to generate.