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-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 ec32a1deea2881793af572f95753f49fa02fd201..2ac672e699b4bf583f9d1b05fe0345da730c93c4 100644
(file)
--- a/
src/lib/lttng-ust/lttng-context-time-ns.c
+++ b/
src/lib/lttng-ust/lttng-context-time-ns.c
@@
-152,7
+152,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_
time_ns_alloc_tls(void
)
+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.025876 seconds
and
4
git commands to generate.