perf jevents: Add common software event json
authorIan Rogers <irogers@google.com>
Fri, 25 Jul 2025 18:51:48 +0000 (11:51 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Sat, 26 Jul 2025 23:31:43 +0000 (16:31 -0700)
commit9957d8c801fe0cb905a9443d7a88e6a051f81105
tree3ab3040071580b9871b2b1e42ba7f285218b67b1
parentaf470fb532fc803c4c582d15b4bd394682a77a15
perf jevents: Add common software event json

Add json for software events so that in perf list the events can have
a description.  Common json exists for the tool PMU but it has no
sysfs equivalent. Modify the map_for_pmu code to return the common map
(rather than an architecture specific one) when a PMU with a common
name is being looked for, this allows the events to be found.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20250725185202.68671-3-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/pmu-events/arch/common/common/software.json [new file with mode: 0644]
tools/perf/pmu-events/empty-pmu-events.c
tools/perf/pmu-events/jevents.py