Re: [PATCH] perf python: Set up callchain parameters for sessions
From: Namhyung Kim
Date: Fri Nov 13 2026 - 21:57:03 EST
On Sun, 18 Oct 2026 09:14:52 +0100, Lalit Maganti wrote:
> perf.session never calls callchain_param_setup(), so callchains are
> resolved with callchain_param.record_mode left as CALLCHAIN_NONE rather
> than set from the sample type as in perf script and perf report.
>
> On arm64 this loses frames: when a sample hits a function before it has
> pushed its frame record, its caller is only in the link register, and
> recovering it needs record_mode CALLCHAIN_FP. Comparing the callchain of
> every sample with perf script, on a frame pointer recording of a
> two-thread workload on arm64, 4 of 4494 samples miss a frame, e.g.:
>
> [...]
Applied to perf-tools-next, thanks!
Best regards
Namhyung