Re: [PATCH v3] tools/perf: Fix ratio_to_prev event parsing test

From: Namhyung Kim

Date: Thu Apr 02 2026 - 17:59:28 EST


On Thu, 26 Mar 2026 20:59:27 -0500, Thomas Falcon wrote:
> test__ratio_to_prev() assumed the first event in a group is the leader,
> which is not the case when the event is expanded into two event groups
> on hybrid PMU's with auto counter reload support. Instead, iterate over the
> event group generated for each core PMU. Also update "wrong leader" test to
> check that the subordinate event has the correct leader instead of checking
> that it is not the group leader. Finally, do not exit immediately if a PMU
> without auto counter reload support is found.
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung