linux/tools/perf/pmu-events/arch/s390
Thomas Richter ce04abfbd3 perf list: Remove s390 specific strcmp_cpuid_cmp function
Make the type field in pmu-events/arch/s390/mapfile.cvs more generic to
match the created cpuid string for s390.

The pattern also checks for the counter first version number and counter
second version number ([13]\.[1-5]) and the authorization field which
follows.

These numbers do not exist in the cpuid identification string when perf
commands are executed on a z/VM environment (which does not support CPU
counter measurement facility).

CPUID string for LPAR:
   cpuid : IBM,3906,704,M03,3.5,002f
CPUID string for z/VM:
   cpuid : IBM,2964,702,N96

This allows the removal of s390 specific cpuid compare code and uses the
common compare function with its regular expression matching algorithm.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Link: http://lkml.kernel.org/r/20180423081745.3672-1-tmricht@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2018-04-23 11:03:13 -03:00
..
cf_z10
cf_z13 perf vendor events s390: Add JSON files for IBM z13 2018-03-27 13:13:39 -03:00
cf_z14 perf vendor events s390: Add JSON files for IBM z14 2018-03-27 13:13:39 -03:00
cf_z196 perf vendor events s390: Add JSON files for IBM z196 2018-03-27 13:13:38 -03:00
cf_zec12 perf vendor events s390: Add JSON files for IBM zEC12 zBC12 2018-03-27 13:13:38 -03:00
mapfile.csv perf list: Remove s390 specific strcmp_cpuid_cmp function 2018-04-23 11:03:13 -03:00