Re: [PATCH] perf report: Fix hierarchy mode on pipe input

From: Namhyung Kim
Date: Thu Oct 26 2023 - 13:11:31 EST


On Tue, 24 Oct 2023 17:31:21 -0700, Namhyung Kim wrote:
> The hierarchy mode needs to setup output formats for each evsel.
> Normally setup_sorting() handles this at the beginning, but it cannot
> do that if data comes from a pipe since there's no evsel info before
> reading the data. And then perf report cannot process the samples
> in hierarchy mode and think as if there's no sample.
>
> Let's check the condition and setup the output formats after reading
> data so that it can find evsels.
>
> [...]

Applied to perf-tools-next, thanks!