summaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
authorMichael Cree <mcree@orcon.net.nz>2009-10-26 21:32:06 +1300
committerIngo Molnar <mingo@elte.hu>2009-10-26 09:45:41 +0100
commitfcd14b3203b538dca04a2b065c774c0b57863eec (patch)
treee6760539f8ecc66f74ff68e130b0155be414b763 /tools/perf/perf.h
parent6beba7adbe092e63dfe8d09fbd1e3ec140474a13 (diff)
downloadlinux-fcd14b3203b538dca04a2b065c774c0b57863eec.tar.gz
linux-fcd14b3203b538dca04a2b065c774c0b57863eec.tar.bz2
linux-fcd14b3203b538dca04a2b065c774c0b57863eec.zip
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 8cc4623afd6f..216bdb223f63 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -47,6 +47,12 @@
#define cpu_relax() asm volatile("":::"memory")
#endif
+#ifdef __alpha__
+#include "../../arch/alpha/include/asm/unistd.h"
+#define rmb() asm volatile("mb" ::: "memory")
+#define cpu_relax() asm volatile("" ::: "memory")
+#endif
+
#include <time.h>
#include <unistd.h>
#include <sys/types.h>