Re: [PATCH 2/8] perf/core: Add perf_sample_save_callchain() helper

From: Song Liu
Date: Fri Jan 13 2023 - 15:47:00 EST


On Thu, Jan 12, 2023 at 1:40 PM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
>
> When it saves the callchain to the perf sample data, it needs to update
> the sample flags and the dynamic size. To make sure this, add the
> perf_sample_save_callchain() helper and convert all call sites.
>
> Cc: x86@xxxxxxxxxx
> Suggested-by: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>

Acked-by: Song Liu <song@xxxxxxxxxx>