From: James Hogan Date: Thu, 31 Jan 2013 12:22:37 +0000 (+0000) Subject: perf: Enable building perf tools for Meta X-Git-Tag: v3.9-rc1~7^2~17 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1bea5b8188e98611e4d6961647809f87b023e14c;p=~emulex%2Finfiniband.git perf: Enable building perf tools for Meta Define rmb(), cpu_relax(), and CPUINFO_PROC for Meta so that the perf tools can be built for Meta. Signed-off-by: James Hogan 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..768507e079e 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 __metag__ +#define rmb() asm volatile("" ::: "memory") +#define cpu_relax() asm volatile("" ::: "memory") +#define CPUINFO_PROC "CPU" +#endif + #include #include #include