]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf evlist: Improve default event for s390
authorIan Rogers <irogers@google.com>
Wed, 18 Mar 2026 23:46:00 +0000 (16:46 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 19 Mar 2026 21:42:46 +0000 (14:42 -0700)
commitca76fb67ebdd5e1a30a242d06dc096fddd670734
treea4f18b00960a8021e3ae522fb24f932080f6030f
parentc006753c3aae432efda28d5aaea4b8fec0343da8
perf evlist: Improve default event for s390

Frame pointer callchains are not supported on s390 and dwarf
callchains are only supported on software events.

Switch the default event from the hardware 'cycles' event to the
software 'cpu-clock' or 'task-clock' on s390 if callchains are
enabled. Move some of the target initialization earlier in builtin-top
and builtin-record, so it is ready for use by evlist__new_default.

If frame pointer callchains are requested on s390 show a
warning. Modify the '-g' option of `perf top` and `perf record` to
default to dwarf callchains on s390.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-record.c
tools/perf/builtin-top.c
tools/perf/tests/event_update.c
tools/perf/tests/expand-cgroup.c
tools/perf/tests/perf-record.c
tools/perf/tests/topology.c
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/evsel.c