Merge branch 'dev'
[lttng-ust.git] / liblttng-ust / lttng-context-vtid.c
index d5664c951cf708ff2b7ac6e9be4ca3b61fbbe87b..81508515ba56c3dee817c92f34b4c5513a3df444 100644 (file)
 #include <lttng/ust-events.h>
 #include <lttng/ust-tracer.h>
 #include <lttng/ringbuffer-config.h>
+#include <lttng/ust-tid.h>
 #include "ltt-tracer-core.h"
 
-#ifdef __linux__
-#include <syscall.h>
-#endif
-
-#if defined(_syscall0)
-_syscall0(pid_t, gettid)
-#elif defined(__NR_gettid)
-static inline pid_t gettid(void)
-{
-       return syscall(__NR_gettid);
-}
-#else
-#warning "use pid as tid"
-static inline pid_t gettid(void)
-{
-       return getpid();
-}
-#endif
-
 /*
  * We cache the result to ensure we don't trigger a system call for
  * each event.
This page took 0.024784 seconds and 4 git commands to generate.