projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: ust-tracepoint-event.h: extract `__num_fields` in a variable
[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 6c067e2fecae06548a3d4495ef9477b2495a6a5b..50f73c6253cf340d90485540ce154dfdafd24d72 100644
(file)
--- a/
liblttng-ust/lttng-context-provider.c
+++ b/
liblttng-ust/lttng-context-provider.c
@@
-20,8
+20,12
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define _LGPL_SOURCE
+#include <stddef.h>
+#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
+
#include <lttng/ust-context-provider.h>
#include "lttng-tracer-core.h"
#include "jhash.h"
#include <lttng/ust-context-provider.h>
#include "lttng-tracer-core.h"
#include "jhash.h"
@@
-67,10
+71,12
@@
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.". */
/* Provider name starts with "$app.". */
- if (strncmp("$app.", provider->name, strlen("$app.")
!= 0)
)
+ if (strncmp("$app.", provider->name, strlen("$app.")
) != 0
)
return -EINVAL;
return -EINVAL;
- /* Provider name cannot contain a col
um
n character. */
+ /* Provider name cannot contain a col
o
n character. */
if (strchr(provider->name, ':'))
return -EINVAL;
if (ust_lock()) {
if (strchr(provider->name, ':'))
return -EINVAL;
if (ust_lock()) {
@@
-94,6
+100,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.024792 seconds
and
4
git commands to generate.