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-vtid.c
diff --git
a/src/lib/lttng-ust/lttng-context-vtid.c
b/src/lib/lttng-ust/lttng-context-vtid.c
index 880e34b90a1dae8aa9b95eec305ceaa08d0b5176..a9ba305454222e15ff6655f6fd9097ba04bfc1b8 100644
(file)
--- a/
src/lib/lttng-ust/lttng-context-vtid.c
+++ b/
src/lib/lttng-ust/lttng-context-vtid.c
@@
-112,7
+112,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_
vtid_alloc_tls(void
)
+void lttng_
ust_vtid_init_thread(int flags
)
{
{
- asm volatile ("" : : "m" (URCU_TLS(cached_vtid)));
+ __asm__ __volatile__ ("" : : "m" (URCU_TLS(cached_vtid)));
+ if (flags & LTTNG_UST_INIT_THREAD_CONTEXT_CACHE)
+ (void)wrapper_getvtid();
}
}
This page took
0.023201 seconds
and
4
git commands to generate.