linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] perf tools: Update JSON event description
@ 2025-10-27 18:58 Namhyung Kim
  2025-10-29 15:28 ` Ian Rogers
  0 siblings, 1 reply; 3+ messages in thread
From: Namhyung Kim @ 2025-10-27 18:58 UTC (permalink / raw)
  To: Ian Rogers; +Cc: linux-perf-users

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"
   },
   {

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

end of thread, other threads:[~2025-10-31 19:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 18:58 [RFC] perf tools: Update JSON event description Namhyung Kim
2025-10-29 15:28 ` Ian Rogers
2025-10-31 19:25   ` Namhyung Kim

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).