]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Revert "perf list: Add s390 support for detailed/verbose PMU event description"
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 21 Jun 2018 08:04:49 +0000 (10:04 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 24 Jul 2018 17:48:58 +0000 (14:48 -0300)
This reverts commit 038586c34301578e538f6c5aa79ca82bce1b9152.

Fix the support of detailed/verbose PMU event description by using the
"Unit": keyword in the json files to address event names refering to the
/sys/devices/cpum_[cs]f devices.

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: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Link: http://lkml.kernel.org/r/20180621080452.61012-1-tmricht@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/pmu.c

index 3ba6a1742f9198b2b5279511939d42658ba8a184..afd68524ffa983095e4ae17529d489d8ca075915 100644 (file)
@@ -652,12 +652,6 @@ static int is_arm_pmu_core(const char *name)
        if (stat(path, &st) == 0)
                return 1;
 
-       /* Look for cpu sysfs (specific to s390) */
-       scnprintf(path, PATH_MAX, "%s/bus/event_source/devices/%s",
-                 sysfs, name);
-       if (stat(path, &st) == 0 && !strncmp(name, "cpum_", 5))
-               return 1;
-
        return 0;
 }