RE: [PATCH 1/2] Read perf data file header from the file user specified with -i option for perf script flamegraph

From: Li, Tianyou
Date: Wed Jun 25 2025 - 11:28:55 EST


Appreciated for your kindly review. Thanks.

-----Original Message-----
From: Namhyung Kim <namhyung@xxxxxxxxxx>
Sent: Wednesday, June 25, 2025 1:53 AM
To: Peter Zijlstra <peterz@xxxxxxxxxxxxx>; Ingo Molnar <mingo@xxxxxxxxxx>; Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>; Li, Tianyou <tianyou.li@xxxxxxxxx>
Cc: Mark Rutland <mark.rutland@xxxxxxx>; Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>; Jiri Olsa <jolsa@xxxxxxxxxx>; Ian Rogers <irogers@xxxxxxxxxx>; Hunter, Adrian <adrian.hunter@xxxxxxxxx>; Kan Liang <kan.liang@xxxxxxxxxxxxxxx>; Guo, Wangyang <wangyang.guo@xxxxxxxxx>; linux-perf-users@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: [PATCH 1/2] Read perf data file header from the file user specified with -i option for perf script flamegraph

On Tue, 10 Jun 2025 12:04:22 +0800, Tianyou Li wrote:
> If specify the perf data file with -i option, the script will try to
> read the header information regardless of the file name specified,
> instead it will try to access the perf.data. This simple patch use the file name from -i option for command perf report --header-only to read the header.
>
>
Applied to perf-tools-next, thanks!

Best regards,
Namhyung