Re: [PATCH v2] perf report: Fix sample number stats for branch entry mode

From: Namhyung Kim
Date: Tue Feb 25 2025 - 16:58:32 EST


On Wed, 19 Feb 2025 22:59:42 -0600, Thomas Falcon wrote:
> Currently, stats->nr_samples is incremented per entry in the branch stack
> instead of per sample taken. As a result, statistics of samples taken
> during perf record in --branch-filter or --branch-any mode does not
> seem correct. Instead call hists__inc_nr_samples() for each sample taken
> instead of for each entry in the branch stack.
>
> Before:
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung