perf vendor events amd: Fix a misspelled JSON key
PATCH 1/1 perf vendor events amd: Fix a misspelled JSON key
ls_inef_sw_pref.all is listed without a description on Zen 4, Zen 5 and Zen 6. Its three JSON entries spell BriefDescription as "BriefDescript6ion", and jevents.py reads the keys it knows by name, so the text is dropped and the generated table ends up with an empty description field.
Spell the key correctly. Only the key changes; the text, event names, codes, umasks and expressions are untouched.
Written with Hermes Agent, an LLM assistant.
--- tools/perf/pmu-events/arch/x86/amdzen4/cache.json | 2 +- tools/perf/pmu-events/arch/x86/amdzen5/load-store.json | 2 +- tools/perf/pmu-events/arch/x86/amdzen6/load-store.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
tools/perf/pmu-events/arch/x86/amdzen4/cache.json +1 -1
@@ -182,7 +182,7 @@ { "EventName": "ls_inef_sw_pref.all", "EventCode": "0x52", - "BriefDescript6ion": "Software prefetches that did not fetch data outside of the processor core for any reason.", + "BriefDescription": "Software prefetches that did not fetch data outside of the processor core for any reason.", "UMask": "0x03" }, {
tools/perf/pmu-events/arch/x86/amdzen5/load-store.json +1 -1
@@ -351,7 +351,7 @@ { "EventName": "ls_inef_sw_pref.all", "EventCode": "0x52", - "BriefDescript6ion": "Software prefetches that did not fetch data outside of the processor core for any reason.", + "BriefDescription": "Software prefetches that did not fetch data outside of the processor core for any reason.", "UMask": "0x03" }, {
tools/perf/pmu-events/arch/x86/amdzen6/load-store.json +1 -1
@@ -351,7 +351,7 @@ { "EventName": "ls_inef_sw_pref.all", "EventCode": "0x52", - "BriefDescript6ion": "Software prefetches that did not fetch data outside of the processor core for any reason.", + "BriefDescription": "Software prefetches that did not fetch data outside of the processor core for any reason.", "UMask": "0x03" }, {
base-commit: d48723711bae9b8cdc56719c448ba42fef28cbee
Signature · 1 line
2.53.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 9 lines
ls_inef_sw_pref.all is listed without a description on Zen 4, Zen 5 and Zen 6. Its three JSON entries spell BriefDescription as "BriefDescript6ion", and
jevents.pyreads the keys it knows by name, so the text is dropped and the generated table ends up with an empty description field.Spell the key correctly. Only the key changes; the text, event names, codes, umasks and expressions are untouched.
Quoted 7 lines
Fixes 658448281d19 ("perf vendor events amd: Add Zen 4 core events")Fixes 45c072f2537a ("perf vendor events amd: Add Zen 5 core events")Fixes 2f42fb0661d9 ("perf vendor events amd: Add Zen 6 core events")Written with Hermes Agent, an LLM assistant.
Signed-off-by TAKANO Mitsuhiro <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 10 lines · TAKANO Mitsuhiro
ls_inef_sw_pref.all is listed without a description on Zen 4, Zen 5 and Zen 6. Its three JSON entries spell BriefDescription as "BriefDescript6ion", and
jevents.pyreads the keys it knows by name, so the text is dropped and the generated table ends up with an empty description field.Spell the key correctly. Only the key changes; the text, event names, codes, umasks and expressions are untouched.
[...]
Applied to perf-tools-next, thanks!
Best regards
Namhyung