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-time-ns.c
diff --git
a/src/lib/lttng-ust/lttng-context-time-ns.c
b/src/lib/lttng-ust/lttng-context-time-ns.c
index 4f532b486d787f4f28f656fbe021b32e93b85405..e84b7048fae9cb37d0fc5b67eeaa7cfff081ea8f 100644
(file)
--- a/
src/lib/lttng-ust/lttng-context-time-ns.c
+++ b/
src/lib/lttng-ust/lttng-context-time-ns.c
@@
-150,9
+150,11
@@
error_find_context:
}
/*
}
/*
- *
* Force a read (imply TLS fixup
for dlopen) of TLS variables.
- *
*
/
-void lttng_
fixup_time_ns_tls(void
)
+ *
Force a read (imply TLS allocation
for dlopen) of TLS variables.
+ */
+void lttng_
ust_time_ns_init_thread(int flags
)
{
asm volatile ("" : : "m" (URCU_TLS(cached_time_ns)));
{
asm volatile ("" : : "m" (URCU_TLS(cached_time_ns)));
+ if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+ (void)get_time_ns();
}
}
This page took
0.023948 seconds
and
4
git commands to generate.