Skip to contentSkip to conversation

perf trace beauty futex_op: Add missing defines for older systems

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jul 13, 2016 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  e53e6bb8eba683ec1f18947410f39ab77efb098b
Gitweb:     http://git.kernel.org/tip/e53e6bb8eba683ec1f18947410f39ab77efb098b
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 12 Jul 2016 11:02:37 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 12 Jul 2016 15:20:37 -0300

perf trace beauty futex_op: Add missing defines for older systems

---
 tools/perf/trace/beauty/futex_op.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
tools/perf/trace/beauty/futex_op.c +16 -0
index e247621..bfd3359 100644
@@ -1,5 +1,21 @@
 #include <linux/futex.h>
 
+#ifndef FUTEX_WAIT_BITSET
+#define FUTEX_WAIT_BITSET	  9
+#endif
+#ifndef FUTEX_WAKE_BITSET
+#define FUTEX_WAKE_BITSET	 10
+#endif
+#ifndef FUTEX_WAIT_REQUEUE_PI
+#define FUTEX_WAIT_REQUEUE_PI	 11
+#endif
+#ifndef FUTEX_CMP_REQUEUE_PI
+#define FUTEX_CMP_REQUEUE_PI	 12
+#endif
+#ifndef FUTEX_CLOCK_REALTIME
+#define FUTEX_CLOCK_REALTIME	256
+#endif
+
 static size_t syscall_arg__scnprintf_futex_op(char *bf, size_t size, struct syscall_arg *arg)
 {
 	enum syscall_futex_args {