projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Require C++11 for building probe providers with C++ compiler
[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..50f73c6253cf340d90485540ce154dfdafd24d72 100644
(file)
--- a/
liblttng-ust/lttng-context-provider.c
+++ b/
liblttng-ust/lttng-context-provider.c
@@
-21,8
+21,11
@@
*/
#define _LGPL_SOURCE
*/
#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"
@@
-68,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()) {
@@
-95,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.026221 seconds
and
4
git commands to generate.