perf tools: add CRIS support
PATCH 1/1 perf tools: add CRIS support
Define the required macros to allow perf to be built for CRIS.
Signed-off-by Rabin Vincent <[email protected]>
--- tools/perf/perf-sys.h | 7 +++++++ 1 file changed, 7 insertions(+)
tools/perf/perf-sys.h +7 -0
@@ -122,6 +122,13 @@#define cpu_relax () asm volatile("yield" ::: "memory")#endif +#ifdef __cris__ +#define mb () asm volatile("" ::: "memory") +#define wmb () asm volatile("" ::: "memory") +#define rmb () asm volatile("" ::: "memory") +#define CPUINFO_PROC {"cpu model"} +#endif +#ifdef __mips__#define mb () asm volatile( \ ".set mips2\n\t" \
Signature · 1 line
2.1.4
Em Thu, Feb 19, 2015 at 08:35:26PM +0100, Rabin Vincent escreveu:
Quoted 1 line
Define the required macros to allow perf to be built for CRIS.
Thanks, applied to perf/core
- Arnaldo
Quoted 25 lines
Signed-off-by Rabin Vincent <[email protected]>--- tools/perf/perf-sys.h | 7 +++++++ 1 file changed, 7 insertions(+)tools/perf/perf-sys.h +7
-0@@ -122,6 +122,13 @@#define cpu_relax () asm volatile("yield" ::: "memory")#endif +#ifdef __cris__ +#define mb () asm volatile("" ::: "memory") +#define wmb () asm volatile("" ::: "memory") +#define rmb () asm volatile("" ::: "memory") +#define CPUINFO_PROC {"cpu model"} +#endif +#ifdef __mips__#define mb () asm volatile( \ ".set mips2\n\t" \Signature · 1 line
2.1.4
Quoted 4 lines · Arnaldo Carvalho de Melo
Em Thu, Feb 19, 2015 at 08:35:26PM +0100, Rabin Vincent escreveu:
Quoted 1 line
Define the required macros to allow perf to be built for CRIS.
Thanks, applied to perf/core
Thanks, but unless I'm missing something, this patch seems to have neither made it to mainline nor perf/core yet?