linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] Revert "perf list: Add s390 support for detailed/verbose PMU event description"
@ 2018-06-21  8:04 Thomas Richter
  2018-06-21  8:04 ` [PATCH 2/4] perf list: Add s390 support for detailed PMU event description Thomas Richter
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Thomas Richter @ 2018-06-21  8:04 UTC (permalink / raw)
  To: linux-kernel, linux-perf-users, acme
  Cc: brueckner, schwidefsky, heiko.carstens, Thomas Richter

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>
---
 tools/perf/util/pmu.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
index d2fb597c9a8c..7878934ebb23 100644
--- a/tools/perf/util/pmu.c
+++ b/tools/perf/util/pmu.c
@@ -557,12 +557,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;
 }
 
-- 
2.14.3


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-07-25 20:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-21  8:04 [PATCH 1/4] Revert "perf list: Add s390 support for detailed/verbose PMU event description" Thomas Richter
2018-06-21  8:04 ` [PATCH 2/4] perf list: Add s390 support for detailed PMU event description Thomas Richter
2018-07-25 20:42   ` [tip:perf/core] " tip-bot for Thomas Richter
2018-06-21  8:04 ` [PATCH 3/4] perf json: Add s390 transaction counter definition Thomas Richter
2018-07-25 20:43   ` [tip:perf/core] " tip-bot for Thomas Richter
2018-06-21  8:04 ` [PATCH 4/4] perf stat: Add transaction flag (-T) support for s390 Thomas Richter
2018-06-22  2:36   ` Andi Kleen
2018-06-22  8:10     ` Thomas-Mich Richter
2018-06-22 14:31       ` Andi Kleen
2018-07-25 20:41 ` [tip:perf/core] Revert "perf list: Add s390 support for detailed/verbose PMU event description" tip-bot for Thomas Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).