diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-01-18 04:42:24 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-02-15 12:46:08 -0500 |
commit | 9854783e55d5f42a0ea3e951fad3a5910023c1b1 (patch) | |
tree | e3ee5367073a87bf52d4cae61f655050d8e226e4 /tools | |
parent | 7fadc1e8fe89698caac213ff6d631b811fc7b393 (diff) |
perf, ARC: Enable building perf tools for ARC
Although with uClibc there's more we need to do
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/perf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 2c340e7da458..8a68ad39e1b6 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -98,6 +98,12 @@ void get_term_dimensions(struct winsize *ws); | |||
98 | #define CPUINFO_PROC "cpu model" | 98 | #define CPUINFO_PROC "cpu model" |
99 | #endif | 99 | #endif |
100 | 100 | ||
101 | #ifdef __arc__ | ||
102 | #define rmb() asm volatile("" ::: "memory") | ||
103 | #define cpu_relax() rmb() | ||
104 | #define CPUINFO_PROC "Processor" | ||
105 | #endif | ||
106 | |||
101 | #include <time.h> | 107 | #include <time.h> |
102 | #include <unistd.h> | 108 | #include <unistd.h> |
103 | #include <sys/types.h> | 109 | #include <sys/types.h> |