All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf list: Fix PMU name pai_crypto in perf list on s390
@ 2022-10-21  8:25 Thomas Richter
  2022-10-24 11:37 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Richter @ 2022-10-21  8:25 UTC (permalink / raw)
  To: linux-kernel, linux-perf-users, acme
  Cc: svens, gor, sumanthk, hca, Thomas Richter

commit e0b23af82d6f4 ("perf list: Add PMU pai_crypto event description for IBM z16")
introduced the Processor Activity Instrumentation for cryptographic
counters for z16. The PMU device driver exports the counters via sysfs
files listed in directory /sys/devices/pai_crypto.

To specify an event from that PMU, use perf stat -e pai_crypto/XXX/

However the json file mentioned in above commit exports the counter
decriptions in file pmu-events/arch/s390/cf_z16/pai.json.
Rename this file to pmu-events/arch/s390/cf_z16/pai_crypto.json
to make the naming consistent.

Now perf list shows the counter names under pai_crypto section:
pai_crypto:
  CRYPTO_ALL
       [CRYPTO ALL. Unit: pai_crypto]
  ....

Output before was
pai:
  CRYPTO_ALL
       [CRYPTO ALL. Unit: pai_crypto]
  ....

Fixes: e0b23af82d6f4 ("perf list: Add PMU pai_crypto event description for IBM z16")
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
---
 .../pmu-events/arch/s390/cf_z16/{pai.json => pai_crypto.json}     | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename tools/perf/pmu-events/arch/s390/cf_z16/{pai.json => pai_crypto.json} (100%)

diff --git a/tools/perf/pmu-events/arch/s390/cf_z16/pai.json b/tools/perf/pmu-events/arch/s390/cf_z16/pai_crypto.json
similarity index 100%
rename from tools/perf/pmu-events/arch/s390/cf_z16/pai.json
rename to tools/perf/pmu-events/arch/s390/cf_z16/pai_crypto.json
-- 
2.37.3


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

* Re: [PATCH] perf list: Fix PMU name pai_crypto in perf list on s390
  2022-10-21  8:25 [PATCH] perf list: Fix PMU name pai_crypto in perf list on s390 Thomas Richter
@ 2022-10-24 11:37 ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2022-10-24 11:37 UTC (permalink / raw)
  To: Thomas Richter; +Cc: linux-kernel, linux-perf-users, svens, gor, sumanthk, hca

Em Fri, Oct 21, 2022 at 10:25:57AM +0200, Thomas Richter escreveu:
> commit e0b23af82d6f4 ("perf list: Add PMU pai_crypto event description for IBM z16")
> introduced the Processor Activity Instrumentation for cryptographic
> counters for z16. The PMU device driver exports the counters via sysfs
> files listed in directory /sys/devices/pai_crypto.

Thanks, applied.

- Arnaldo


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

end of thread, other threads:[~2022-10-24 11:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-21  8:25 [PATCH] perf list: Fix PMU name pai_crypto in perf list on s390 Thomas Richter
2022-10-24 11:37 ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.