perf tools: Use default CPUINFO_PROC where it fits
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 9a57eaf1d2443d34cce0562f425228c37a8ec019 Gitweb: http://git.kernel.org/tip/9a57eaf1d2443d34cce0562f425228c37a8ec019 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 17 Aug 2017 16:58:21 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Thu, 17 Aug 2017 16:58:21 -0300
perf tools: Use default CPUINFO_PROC where it fits
Several architectures don't need to define it since the string is the same as the default one, so nuke them.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/perf-sys.h | 19 ++----------------- tools/perf/util/header.c | 3 --- 2 files changed, 2 insertions(+), 20 deletions(-)
tools/perf/perf-sys.h +2 -17
@@ -9,14 +9,6 @@#include <linux/perf_event.h> #include <asm/barrier.h> -#if defined(__i386__) -#define CPUINFO_PROC {"model name"} -#endif - -#if defined(__x86_64__) -#define CPUINFO_PROC {"model name"} -#endif -#ifdef __powerpc__#define CPUINFO_PROC {"cpu"}#endif
@@ -41,17 +33,10 @@#define CPUINFO_PROC {"cpu model"}#endif -#ifdef __ia64__ -#define CPUINFO_PROC {"model name"} -#endif -#ifdef __arm__#define CPUINFO_PROC {"model name", "Processor"}#endif -#ifdef __aarch64__ -#endif -#ifdef __mips__#define CPUINFO_PROC {"cpu model"}#endif
@@ -68,8 +53,8 @@#define CPUINFO_PROC {"core ID"}#endif -#ifdef __tile__ -#define CPUINFO_PROC {"model name"} +#ifndef CPUINFO_PROC +#define CPUINFO_PROC { "model name", }#endif static inline int
tools/perf/util/header.c +0 -3
@@ -380,9 +380,6 @@ done:static int write_cpudesc (struct feat_fd *ff,struct perf_evlist *evlist__maybe_unused ) { -#ifndef CPUINFO_PROC -#define CPUINFO_PROC {"model name", } -#endif const char *cpuinfo_procs[] =CPUINFO_PROC ;unsigned int i;