linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Richter <tmricht@linux.ibm.com>
To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
	acme@kernel.org
Cc: svens@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com,
	hca@linux.ibm.com, Thomas Richter <tmricht@linux.ibm.com>
Subject: [PATCH] perf list: Fix PMU name pai_crypto in perf list on s390
Date: Fri, 21 Oct 2022 10:25:57 +0200	[thread overview]
Message-ID: <20221021082557.2695382-1-tmricht@linux.ibm.com> (raw)

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


             reply	other threads:[~2022-10-21  8:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-21  8:25 Thomas Richter [this message]
2022-10-24 11:37 ` [PATCH] perf list: Fix PMU name pai_crypto in perf list on s390 Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221021082557.2695382-1-tmricht@linux.ibm.com \
    --to=tmricht@linux.ibm.com \
    --cc=acme@kernel.org \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sumanthk@linux.ibm.com \
    --cc=svens@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).