aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
authorLuck, Tony <tony.luck@intel.com>2009-11-17 12:05:56 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-19 00:03:33 -0500
commit11ada26c78febe4662a8e848f3bff74e3200c920 (patch)
tree1d84b8094b5d553b6590e8eea8fd564682d5b2cf /tools/perf/perf.h
parent751386507701010831d72c522171753d2cd903d2 (diff)
perf tools: Add ia64 support for tools/perf/
Compiler on ia64 rejects the "-m64" option. Add arch specific pieces to perf.h Signed-off-by: Tony Luck <tony.luck@intel.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <4b02d7f43514327a@agluck-desktop.sc.intel.com> 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 216bdb223f63..454d5d55f32d 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -53,6 +53,12 @@
53#define cpu_relax() asm volatile("" ::: "memory") 53#define cpu_relax() asm volatile("" ::: "memory")
54#endif 54#endif
55 55
56#ifdef __ia64__
57#include "../../arch/ia64/include/asm/unistd.h"
58#define rmb() asm volatile ("mf" ::: "memory")
59#define cpu_relax() asm volatile ("hint @pause" ::: "memory")
60#endif
61
56#include <time.h> 62#include <time.h>
57#include <unistd.h> 63#include <unistd.h>
58#include <sys/types.h> 64#include <sys/types.h>