* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define _LGPL_SOURCE
#include <sys/types.h>
#include <unistd.h>
#include <lttng/ust-context-provider.h>
uint32_t hash;
int ret = 0;
+ lttng_ust_fixup_tls();
+
/* Provider name starts with "$app.". */
- if (strncmp("$app.", provider->name, strlen("$app.") != 0))
+ if (strncmp("$app.", provider->name, strlen("$app.")) != 0)
return -EINVAL;
/* Provider name cannot contain a column character. */
if (strchr(provider->name, ':'))
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,