summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorThomas Falcon <thomas.falcon@intel.com>2026-03-26 20:59:27 -0500
committerNamhyung Kim <namhyung@kernel.org>2026-04-02 12:51:10 -0700
commit77cb9b443b7fff2a93d78cd2e309db030046772f (patch)
treeb0577bdc7353fa3fedc25d0fd172c2c91c26a10e /tools/perf/scripts/python
parent9a82bfde4775b7a87cd1a7e791f46f83ae442848 (diff)
perf test: Fix ratio_to_prev event parsing test
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. Signed-off-by: Thomas Falcon <thomas.falcon@intel.com> Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Reviewed-by: Ian Rogers <irogers@google.com> Fixes: 56be0fe5f62c ("perf record: Add auto counter reload parse and regression tests") Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions