projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hide new 'lttng_ust_context_set_event_notifier_group_provider' private symbol
[lttng-ust.git]
/
include
/
lttng
/
ust-tid.h
diff --git
a/include/lttng/ust-tid.h
b/include/lttng/ust-tid.h
index e669d7e7d17dac2ff875d847003af0196c08f51c..f92fb4198873f1b55e15b49ee5e7e7a883ed48c6 100644
(file)
--- a/
include/lttng/ust-tid.h
+++ b/
include/lttng/ust-tid.h
@@
-28,26
+28,28
@@
*/
#ifdef __linux__
*/
#ifdef __linux__
-#include <syscall.h>
+#include <sys
/sys
call.h>
#endif
#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.022944 seconds
and
4
git commands to generate.