From: Namhyung Kim <namhyung@kernel.org>
To: Ian Rogers <irogers@google.com>
Cc: linux-perf-users@vger.kernel.org
Subject: [RFC] perf tools: Update JSON event description
Date: Mon, 27 Oct 2025 11:58:17 -0700 [thread overview]
Message-ID: <aP_AyZAzBBGXaTgR@google.com> (raw)
Hi Ian,
I'm trying to make this change in the JSON description for hardware and
software events. But I got a build failure in the empty-pmu-events.c
even after I re-generated it like below.
cd pmu-events
./jevents.py none none $PWD empty-pmu-events.c
Did I miss something?
Thanks,
Namhyung
diff --git a/tools/perf/pmu-events/arch/common/common/legacy-hardware.json b/tools/perf/pmu-events/arch/common/common/legacy-hardware.json
index 71700647f19b1866..c249bdef818688b2 100644
--- a/tools/perf/pmu-events/arch/common/common/legacy-hardware.json
+++ b/tools/perf/pmu-events/arch/common/common/legacy-hardware.json
@@ -1,12 +1,12 @@
[
{
"EventName": "cpu-cycles",
- "BriefDescription": "Total cycles. Be wary of what happens during CPU frequency scaling [This event is an alias of cycles].",
+ "BriefDescription": "Total cycles. Be wary of what happens during CPU frequency scaling.",
"LegacyConfigCode": "0"
},
{
"EventName": "cycles",
- "BriefDescription": "Total cycles. Be wary of what happens during CPU frequency scaling [This event is an alias of cpu-cycles].",
+ "BriefDescription": "This event is an alias of cpu-cycles.",
"LegacyConfigCode": "0"
},
{
@@ -26,12 +26,12 @@
},
{
"EventName": "branches",
- "BriefDescription": "Retired branch instructions [This event is an alias of branch-instructions].",
+ "BriefDescription": "This event is an alias of branch-instructions.",
"LegacyConfigCode": "4"
},
{
"EventName": "branch-instructions",
- "BriefDescription": "Retired branch instructions [This event is an alias of branches].",
+ "BriefDescription": "Retired branch instructions.",
"LegacyConfigCode": "4"
},
{
@@ -46,22 +46,22 @@
},
{
"EventName": "stalled-cycles-frontend",
- "BriefDescription": "Stalled cycles during issue [This event is an alias of idle-cycles-frontend].",
+ "BriefDescription": "Stalled cycles during issue.",
"LegacyConfigCode": "7"
},
{
"EventName": "idle-cycles-frontend",
- "BriefDescription": "Stalled cycles during issue [This event is an alias of stalled-cycles-fronted].",
+ "BriefDescription": "This event is an alias of stalled-cycles-fronted.",
"LegacyConfigCode": "7"
},
{
"EventName": "stalled-cycles-backend",
- "BriefDescription": "Stalled cycles during retirement [This event is an alias of idle-cycles-backend].",
+ "BriefDescription": "Stalled cycles during retirement.",
"LegacyConfigCode": "8"
},
{
"EventName": "idle-cycles-backend",
- "BriefDescription": "Stalled cycles during retirement [This event is an alias of stalled-cycles-backend].",
+ "BriefDescription": "This event is an alias of stalled-cycles-backend.",
"LegacyConfigCode": "8"
},
{
diff --git a/tools/perf/pmu-events/arch/common/common/software.json b/tools/perf/pmu-events/arch/common/common/software.json
index f2551f1107fd712c..48b31acf402ca325 100644
--- a/tools/perf/pmu-events/arch/common/common/software.json
+++ b/tools/perf/pmu-events/arch/common/common/software.json
@@ -14,37 +14,37 @@
{
"Unit": "software",
"EventName": "faults",
- "BriefDescription": "Number of page faults [This event is an alias of page-faults]",
+ "BriefDescription": "This event is an alias of page-faults",
"ConfigCode": "2"
},
{
"Unit": "software",
"EventName": "page-faults",
- "BriefDescription": "Number of page faults [This event is an alias of faults]",
+ "BriefDescription": "Number of page faults",
"ConfigCode": "2"
},
{
"Unit": "software",
"EventName": "context-switches",
- "BriefDescription": "Number of context switches [This event is an alias of cs]",
+ "BriefDescription": "Number of context switches",
"ConfigCode": "3"
},
{
"Unit": "software",
"EventName": "cs",
- "BriefDescription": "Number of context switches [This event is an alias of context-switches]",
+ "BriefDescription": "This event is an alias of context-switches",
"ConfigCode": "3"
},
{
"Unit": "software",
"EventName": "cpu-migrations",
- "BriefDescription": "Number of times a process has migrated to a new CPU [This event is an alias of migrations]",
+ "BriefDescription": "Number of times a process has migrated to a new CPU",
"ConfigCode": "4"
},
{
"Unit": "software",
"EventName": "migrations",
- "BriefDescription": "Number of times a process has migrated to a new CPU [This event is an alias of cpu-migrations]",
+ "BriefDescription": "This event is an alias of cpu-migrations",
"ConfigCode": "4"
},
{
next reply other threads:[~2025-10-27 18:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-27 18:58 Namhyung Kim [this message]
2025-10-29 15:28 ` [RFC] perf tools: Update JSON event description Ian Rogers
2025-10-31 19:25 ` Namhyung Kim
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=aP_AyZAzBBGXaTgR@google.com \
--to=namhyung@kernel.org \
--cc=irogers@google.com \
--cc=linux-perf-users@vger.kernel.org \
/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 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.