diff options
author | Ben Hutchings <[email protected]> | 2014-02-06 01:00:35 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-02-10 11:34:31 -0300 |
commit | 79d26a6a19ace19faabf8d8d27d3430be2e26d34 (patch) | |
tree | 0d71ec131ddbd0b7ca897aab71c57144bf2d8b1b | |
parent | 88fee52e58ca14d8465b614774ed0bf08e1a7790 (diff) |
perf trace: Add fallback definition of EFD_SEMAPHORE
glibc 2.17 is missing this on sparc, despite the fact that it's not
architecture-specific.
Signed-off-by: Ben Hutchings <[email protected]>
Fixes: 49af9e93adfa ('perf trace: Beautify eventfd2 'flags' arg')
Cc: <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r-- | tools/perf/builtin-trace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 896f27047ed6..619d11c47a91 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -37,6 +37,10 @@ # define MADV_UNMERGEABLE 13 #endif +#ifndef EFD_SEMAPHORE +# define EFD_SEMAPHORE 1 +#endif + struct tp_field { int offset; union { |