]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf python: Correct copying of metric_leader in an evsel
authorIan Rogers <irogers@google.com>
Tue, 2 Dec 2025 17:49:56 +0000 (09:49 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 3 Dec 2025 00:12:49 +0000 (16:12 -0800)
commit6603c3c1fe8257e522496da7fd7b75ac52c2323f
tree8437f3b7dd9c26dfa95d7146206b588b4adf795a
parentc9cd0c7e529e80e9be79867d2ebb874f67dbc35e
perf python: Correct copying of metric_leader in an evsel

Ensure the metric_leader is copied and set up correctly. In
compute_metric determine the correct metric_leader event to match the
requested CPU. Fixes the handling of metrics particularly on hybrid
machines.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Falcon <thomas.falcon@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/evsel.c
tools/perf/util/python.c