projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: perform TLS fixup in all UST entry points from each thread
[lttng-ust.git]
/
liblttng-ust
/
lttng-context-provider.c
diff --git
a/liblttng-ust/lttng-context-provider.c
b/liblttng-ust/lttng-context-provider.c
index c580891a1ac93471f544fce2ddb66c31ffa622b2..8e065abe3eb0c650b44fa6c507f26831591c119a 100644
(file)
--- a/
liblttng-ust/lttng-context-provider.c
+++ b/
liblttng-ust/lttng-context-provider.c
@@
-68,6
+68,8
@@
int lttng_ust_context_provider_register(struct lttng_ust_context_provider *provi
uint32_t hash;
int ret = 0;
uint32_t hash;
int ret = 0;
+ lttng_ust_fixup_tls();
+
/* Provider name starts with "$app.". */
if (strncmp("$app.", provider->name, strlen("$app.") != 0))
return -EINVAL;
/* Provider name starts with "$app.". */
if (strncmp("$app.", provider->name, strlen("$app.") != 0))
return -EINVAL;
@@
-95,6
+97,8
@@
end:
void lttng_ust_context_provider_unregister(struct lttng_ust_context_provider *provider)
{
void lttng_ust_context_provider_unregister(struct lttng_ust_context_provider *provider)
{
+ lttng_ust_fixup_tls();
+
if (ust_lock())
goto end;
lttng_ust_context_set_session_provider(provider->name,
if (ust_lock())
goto end;
lttng_ust_context_set_session_provider(provider->name,
This page took
0.024735 seconds
and
4
git commands to generate.