projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Docs: explain why unused `lttng_enabler::ctx` is kept around
[lttng-ust.git]
/
include
/
lttng
/
ust-tid.h
diff --git
a/include/lttng/ust-tid.h
b/include/lttng/ust-tid.h
index e669d7e7d17dac2ff875d847003af0196c08f51c..e637718a3ab603190c7ca4dffbb1b6b9376fd057 100644
(file)
--- a/
include/lttng/ust-tid.h
+++ b/
include/lttng/ust-tid.h
@@
-31,23
+31,25
@@
#include <syscall.h>
#endif
#include <syscall.h>
#endif
-#if defined(_syscall0)
-_syscall0(pid_t, gettid)
-#elif defined(__NR_gettid)
+#if defined(__NR_gettid)
+
#include <unistd.h>
#include <unistd.h>
-static inline pid_t gettid(void)
+static inline pid_t
lttng_
gettid(void)
{
return syscall(__NR_gettid);
}
{
return syscall(__NR_gettid);
}
+
#else
#else
+
#include <sys/types.h>
#include <unistd.h>
/* Fall-back on getpid for tid if not available. */
#include <sys/types.h>
#include <unistd.h>
/* Fall-back on getpid for tid if not available. */
-static inline pid_t gettid(void)
+static inline pid_t
lttng_
gettid(void)
{
return getpid();
}
{
return getpid();
}
+
#endif
#endif /* _LTTNG_UST_TID_H */
#endif
#endif /* _LTTNG_UST_TID_H */
This page took
0.028133 seconds
and
4
git commands to generate.