perf sample: Remove arch notion of sample parsing
authorIan Rogers <irogers@google.com>
Thu, 24 Jul 2025 16:33:00 +0000 (09:33 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 25 Jul 2025 17:37:58 +0000 (10:37 -0700)
commit8882095b1d4d785524a7a4df8e04e35cfd039142
treee8ca4df337a4b8e30493f8ceabfd1fcbd946f26b
parent525a599badeeafba88a4fa0f913e5cf87e2d51ec
perf sample: Remove arch notion of sample parsing

By definition arch sample parsing and synthesis will inhibit certain
kinds of cross-platform record then analysis (report, script,
etc.). Remove arch_perf_parse_sample_weight and
arch_perf_synthesize_sample_weight replacing with a common
implementation. Combine perf_sample p_stage_cyc and retire_lat as
weight3 to capture the differing uses regardless of compiled for
architecture.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250724163302.596743-21-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
14 files changed:
tools/perf/arch/powerpc/util/event.c
tools/perf/arch/x86/tests/sample-parsing.c
tools/perf/arch/x86/util/event.c
tools/perf/builtin-script.c
tools/perf/util/dlfilter.c
tools/perf/util/event.h
tools/perf/util/evsel.c
tools/perf/util/hist.c
tools/perf/util/hist.h
tools/perf/util/intel-tpebs.c
tools/perf/util/sample.h
tools/perf/util/session.c
tools/perf/util/sort.c
tools/perf/util/synthetic-events.c