aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
authorMichael Cree <mcree@orcon.net.nz>2009-10-26 04:32:06 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-26 04:45:41 -0400
commitfcd14b3203b538dca04a2b065c774c0b57863eec (patch)
treee6760539f8ecc66f74ff68e130b0155be414b763 /tools/perf/perf.h
parent6beba7adbe092e63dfe8d09fbd1e3ec140474a13 (diff)
perf tools, Alpha: Add Alpha support to perf.h
For the perf tool the patch implements an Alpha specific section in the perf.h header file. Signed-off-by: Michael Cree <mcree@orcon.net.nz> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1256545926-6972-1-git-send-email-mcree@orcon.net.nz> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r--tools/perf/perf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 8cc4623afd6..216bdb223f6 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -47,6 +47,12 @@
47#define cpu_relax() asm volatile("":::"memory") 47#define cpu_relax() asm volatile("":::"memory")
48#endif 48#endif
49 49
50#ifdef __alpha__
51#include "../../arch/alpha/include/asm/unistd.h"
52#define rmb() asm volatile("mb" ::: "memory")
53#define cpu_relax() asm volatile("" ::: "memory")
54#endif
55
50#include <time.h> 56#include <time.h>
51#include <unistd.h> 57#include <unistd.h>
52#include <sys/types.h> 58#include <sys/types.h>