From: Vineet Gupta Date: Fri, 18 Jan 2013 09:42:24 +0000 (+0530) Subject: perf, ARC: Enable building perf tools for ARC X-Git-Tag: v3.9-rc1~25^2~28 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9854783e55d5f42a0ea3e951fad3a5910023c1b1;p=~emulex%2Finfiniband.git perf, ARC: Enable building perf tools for ARC Although with uClibc there's more we need to do Signed-off-by: Vineet Gupta Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 2c340e7da45..8a68ad39e1b 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -98,6 +98,12 @@ void get_term_dimensions(struct winsize *ws); #define CPUINFO_PROC "cpu model" #endif +#ifdef __arc__ +#define rmb() asm volatile("" ::: "memory") +#define cpu_relax() rmb() +#define CPUINFO_PROC "Processor" +#endif + #include #include #include