X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-probes.c;h=390265add0d22feb4936ac09962aa05a9c342434;hb=7d34f27dce903a88241e96787c1f900b6ea08245;hp=5e2d29662702b2013b05b2650cf539ba839a74a7;hpb=3fbec7dc3645facd9e809cf161ba3435a377ce56;p=lttng-ust.git diff --git a/liblttng-ust/lttng-probes.c b/liblttng-ust/lttng-probes.c index 5e2d2966..390265ad 100644 --- a/liblttng-ust/lttng-probes.c +++ b/liblttng-ust/lttng-probes.c @@ -195,6 +195,8 @@ int lttng_probe_register(struct lttng_probe_desc *desc) { int ret = 0; + lttng_ust_fixup_tls(); + /* * If version mismatch, don't register, but don't trigger assert * on caller. The version check just prints an error. @@ -235,6 +237,8 @@ int ltt_probe_register(struct lttng_probe_desc *desc) void lttng_probe_unregister(struct lttng_probe_desc *desc) { + lttng_ust_fixup_tls(); + if (!check_provider_version(desc)) return;