Skip to content

perf evsel fallback changes, better s390 defaults

Ian Rogers linux-perf-users linux-s390 lkml 8 versions – Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 4 repliesApplied
  2. v75 patches 0 repliesSuperseded
  3. v65 patches 2 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v55 patches2 repliesSuperseded
v45 patches0 repliesSuperseded
v33 patches2 repliesSuperseded
v22 patches6 repliesSuperseded
v12 patches0 repliesSuperseded

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/5perf evsel: Improve falling back from cyclestools/perf/util/evsel.c tools/perf/util/evsel.h+33 -140 replies
2/5perf target: Constify simple check functionstools/perf/util/target.h+6 -60 replies
3/5perf evsel: Constify option arguments to config functionstools/perf/util/evsel.c tools/perf/util/evsel.h+14 -140 replies
4/5perf callchain: Refactor callchain option parsingtools/perf/builtin-record.c tools/perf/builtin-top.c tools/perf/builtin-trace.c +2 more+104 -800 replies
5/5perf evlist: Improve default event for s390tools/perf/builtin-record.c tools/perf/builtin-top.c tools/perf/tests/event_update.c +6 more+64 -351 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchThomas Richter
1/5T-b
2/5T-b
3/5T-b
4/5T-b
5/5T-b T-b

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

Read the v8 thread

Cover letter [PATCH v8 0/5] perf evsel fallback changes, better s390 defaults

Discussion with Thomas Richter in:
https://lore.kernel.org/lkml/[email protected]/
showed that the evsel__fallback wasn't working for s390. These patches avoid the problematic frame pointer callchain on s390 and fix evsel__fallback from a range of problems when falling back to a software event. I simulated failures when developing the patches but they are untested other than that.

v8: Address sashiko review that target wasn't fully initialized for
perf record with '-u'. Ensure the callchain is enabled with '-g' and a .perfconfig setting. This don't impact testing so keeping Thomas' tested-by tags.
https://sashiko.dev/#/patchset/20260318175808.582009-1-irogers%40google.com

v7: In perf top, move the target uid handling back to after the evlist
is setup. A regression caught by Sashiko in:
https://sashiko.dev/#/patchset/20260317175642.161647-1-irogers%40google.com
https://lore.kernel.org/lkml/[email protected]/

v6: Sashiko noted that target wasn't fully set up when creating the
default evlist in perf top, so move it earlier. Fix const char* casting issues in __parse_callchain_report_opt. Make '-g' not override the .perfconfig setting again.
https://sashiko.dev/#/patchset/20260317055334.760347-1-irogers%40google.com
https://lore.kernel.org/lkml/[email protected]/

v5: Fix the value for the top option to match that of record. Tidy the
callchain parsing option callbacks. Based on AI review feedback:
https://sashiko.dev/#/patchset/20260317030601.567422-1-irogers%40google.com
https://lore.kernel.org/lkml/[email protected]/

v4: Changing the callchain parameter at configuration time means other
options aren't set the same as they would for --call-graph dwarf, for example the stack size. Switch to setting the callchain option on s390 to parameter parse time. For '-g' use '--call-graph dwarf' for s390. Other --call-graph options are parsed as normal, but a warning is generated when setting --call-graph fp for s390. Also fix that sample IDs aren't wanted when there is only 1 event in the evlist.
https://lore.kernel.org/lkml/[email protected]/

v3: Incorporate feedback about event and callchain behavior for s390:
https://lore.kernel.org/lkml/[email protected]/
https://lore.kernel.org/lkml/[email protected]/

v2: try exclude_callchain_user for s390 rather than fully disabling
the callchain. Fix a missed clearing of is_pmu_core if the software event fallback.
https://lore.kernel.org/lkml/[email protected]/

v1: https://lore.kernel.org/lkml/[email protected]/

Ian Rogers (5):
perf evsel: Improve falling back from cycles perf target: Constify simple check functions perf evsel: Constify option arguments to config functions perf callchain: Refactor callchain option parsing perf evlist: Improve default event for s390

 tools/perf/builtin-record.c      | 81 ++++++++++----------------------
 tools/perf/builtin-top.c         | 46 +++++++++++-------
 tools/perf/builtin-trace.c       |  9 +++-
 tools/perf/tests/event_update.c  |  4 +-
 tools/perf/tests/expand-cgroup.c |  4 +-
 tools/perf/tests/perf-record.c   |  7 ++-
 tools/perf/tests/topology.c      |  4 +-
 tools/perf/util/callchain.c      | 73 +++++++++++++++++++++++-----
 tools/perf/util/callchain.h      | 12 ++---
 tools/perf/util/evlist.c         | 32 ++++++++-----
 tools/perf/util/evlist.h         |  2 +-
 tools/perf/util/evsel.c          | 70 +++++++++++++++++----------
 tools/perf/util/evsel.h          | 10 ++--
 tools/perf/util/target.h         | 12 ++---
 14 files changed, 219 insertions(+), 147 deletions(-)
Signature · 1 line
2.53.0.851.ga537e3e6e9-goog