Skip to content

perf vendor events: Fix misspellings in event and metric descriptions

TAKANO Mitsuhiro linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf vendor events powerpc: Fix misspellings in the power tablestools/perf/pmu-events/arch/powerpc/power10/metrics.json tools/perf/pmu-events/arch/powerpc/power8/cache.json tools/perf/pmu-events/arch/powerpc/power8/memory.json +10 more+55 -551 reply
2/3perf vendor events intel: Fix misspellings in the Intel model tablestools/perf/pmu-events/arch/x86/nehalemep/pipeline.json tools/perf/pmu-events/arch/x86/nehalemex/pipeline.json tools/perf/pmu-events/arch/x86/sierraforest/srf-metrics.json +2 more+5 -50 replies
3/3perf vendor events amd: Fix a misspelling in the amdzen3 tabletools/perf/pmu-events/arch/x86/amdzen3/branch.json+1 -10 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJames ClarkAthira Rajeev
SeriesR-b
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] perf vendor events: Fix misspellings in event and metric descriptions

The PMU event descriptions shipped in the JSON tables under tools/perf/pmu-events/arch/ are printed by perf list (BriefDescription) and perf list -v (PublicDescription) as they are written, and the metric descriptions in the metrics JSON files are printed by perf list metric. A number of them carry misspelled words, so the misspellings reach the user. This series fixes the first batch of them, which a spell-check pass over the power8, power9 and power10 tables and over the Intel and AMD tables turned up.

The three patches are split by vendor because that is the convention for the subject prefix in this tree. Of the 989 commits that touch tools/perf/pmu-events/arch/ as of 65e4fd942f72, perf vendor events intel: has 391, amd: 37, powerpc: 8, arm64: 83, s390: 18 and riscv: 13. No commit with a vendor prefix touches another vendor's tables.

The arm64 tables have misspellings of the same kind ("misprediciton" in the ampere tables, "executed.This" in the cortex-a55 tables); the s390 and riscv tables contain none of the words fixed here. More remain in the tables this series swept and in others -- "conjection" and "banwidth" in the Intel uncore tables, "pumpfor" in power8, to name a few -- and those are left for follow-up patches.

Each patch touches description strings only, and each was checked by regenerating the tables with

jevents.py <arch> all tools/perf/pmu-events/arch out.c out-str.c

and diffing the result against the one generated from the parent commit:
every event name and event code is unchanged, and the misspellings are gone from the generated string table. out-str.c shrinks or stays the same size, because some corrected descriptions become identical to descriptions already stored for other models, and the amd fix swaps a word for another of the same length:

  powerpc  13 files, 55 lines changed   out-str.c -393 bytes
  intel     5 files,  5 lines changed   out-str.c -477 bytes
  amd       1 file,   1 line changed    out-str.c size unchanged

65 PublicDescription values in power8/other.json end in "42"; the trailing "42" is not a misspelling, so it is left alone. The word "ibufffully" in that file is left unchanged as well: the BriefDescription of the same event ends with "ibuff", so the boundary is clear, but whether a space or a full stop belongs after it is not.

Written with Hermes Agent, an LLM assistant: it found the words and wrote these changelogs and this cover note; the author reviewed every change and ran the generator as described above.

TAKANO Mitsuhiro (3):
perf vendor events powerpc: Fix misspellings in the power tables perf vendor events intel: Fix misspellings in the Intel model tables perf vendor events amd: Fix a misspelling in the amdzen3 table

 .../arch/powerpc/power10/metrics.json         |  8 ++--
 .../pmu-events/arch/powerpc/power8/cache.json |  2 +-
 .../arch/powerpc/power8/memory.json           |  2 +-
 .../arch/powerpc/power8/metrics.json          |  8 ++--
 .../pmu-events/arch/powerpc/power8/other.json | 38 +++++++++----------
 .../arch/powerpc/power8/pipeline.json         |  4 +-
 .../pmu-events/arch/powerpc/power8/pmc.json   |  4 +-
 .../pmu-events/arch/powerpc/power9/cache.json |  2 +-
 .../arch/powerpc/power9/frontend.json         |  2 +-
 .../arch/powerpc/power9/marked.json           |  4 +-
 .../arch/powerpc/power9/metrics.json          |  6 +--
 .../pmu-events/arch/powerpc/power9/other.json | 28 +++++++-------
 .../arch/powerpc/power9/translation.json      |  2 +-
 .../pmu-events/arch/x86/amdzen3/branch.json   |  2 +-
 .../arch/x86/nehalemep/pipeline.json          |  2 +-
 .../arch/x86/nehalemex/pipeline.json          |  2 +-
 .../arch/x86/sierraforest/srf-metrics.json    |  2 +-
 .../arch/x86/westmereep-dp/pipeline.json      |  2 +-
 .../arch/x86/westmereep-sp/pipeline.json      |  2 +-
 19 files changed, 61 insertions(+), 61 deletions(-)

base-commit: 65e4fd942f72a9dba0e4e257290c4fa1aa756854

Signature · 1 line
2.53.0