perf python: Update ungrouped evsel leader in clone
authorIan Rogers <irogers@google.com>
Fri, 28 Feb 2025 22:23:04 +0000 (14:23 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 12 Mar 2025 01:55:37 +0000 (18:55 -0700)
commit07fc231617378bd74b54661615a3e4772b514ed1
tree2c050ff2ff170d01652882dfa094f6f09a1da9b1
parent6c62403b5ad4511090d2f3ffd00d4cc6fc608480
perf python: Update ungrouped evsel leader in clone

evsels are cloned in the python code as they form part of the Python
object pyrf_evsel. The cloning doesn't update the evsel's leader, do
this for the case of an evsel being ungrouped.

Reviewed-by: Howard Chu <howardchu95@gmail.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20250228222308.626803-8-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/python.c