Skip to content

Commit

Permalink
perf trace: Add fallback definition of EFD_SEMAPHORE
Browse files Browse the repository at this point in the history
glibc 2.17 is missing this on sparc, despite the fact that it's not
architecture-specific.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Fixes: 49af9e9 ('perf trace: Beautify eventfd2 'flags' arg')
Cc: <stable@vger.kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1391648435.3003.100.camel@deadeye.wl.decadent.org.uk
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Ben Hutchings authored and Arnaldo Carvalho de Melo committed Feb 10, 2014
1 parent 88fee52 commit 79d26a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/perf/builtin-trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
# define MADV_UNMERGEABLE 13
#endif

#ifndef EFD_SEMAPHORE
# define EFD_SEMAPHORE 1
#endif

struct tp_field {
int offset;
union {
Expand Down

0 comments on commit 79d26a6

Please sign in to comment.