kernel_optimize_test/tools/perf/arch/s390
Thomas Richter 4cb7d3ecfc perf cpuid: Introduce a platform specific cpuid compare function
The function get_cpuid_str() is called by perf_pmu__getcpuid() and on
s390 returns a complete description of the CPU and its capabilities,
which is a comma separated list.

To map the CPU type with the value defined in the
pmu-events/arch/s390/mapfile.csv, introduce an architecture specific
cpuid compare function named strcmp_cpuid_str()

The currently used regex algorithm is defined as the weak default and
will be used if no platform specific one is defined. This matches the
current behavior.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Link: http://lkml.kernel.org/r/20180213151419.80737-3-tmricht@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-02-16 15:16:57 -03:00
..
annotate perf annotate: Scan cpuid for s390 and save machine type 2018-02-16 15:16:57 -03:00
entry/syscalls perf s390: Rework system call table creation by using syscall.tbl 2018-02-15 10:06:08 -03:00
include tools arch s390: Do not include header files from the kernel sources 2017-12-18 11:56:13 -03:00
util perf cpuid: Introduce a platform specific cpuid compare function 2018-02-16 15:16:57 -03:00
Build perf build: Add arch s390 objects building 2015-02-12 13:20:59 -03:00
Makefile perf s390: Rework system call table creation by using syscall.tbl 2018-02-15 10:06:08 -03:00