Cleanup: ust-tracepoint-event.h: extract `__num_fields` in a variable
[lttng-ust.git] / liblttng-ust / lttng-context-vtid.c
index 5cefe9538486a38ffba957fe06b8601b907ff744..0a29021d4b104b3f4cb94deea5d72069dddc7145 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
@@ -63,7 +64,7 @@ pid_t wrapper_getvtid(void)
 
        vtid = CMM_LOAD_SHARED(URCU_TLS(cached_vtid));
        if (caa_unlikely(!vtid)) {
-               vtid = getpid();
+               vtid = lttng_gettid();
                CMM_STORE_SHARED(URCU_TLS(cached_vtid), vtid);
        }
        return vtid;
This page took 0.023256 seconds and 4 git commands to generate.