perf python: Fix thread check in pyrf_evsel__read
authorIan Rogers <irogers@google.com>
Thu, 10 Jul 2025 23:51:23 +0000 (16:51 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 11 Jul 2025 19:36:40 +0000 (12:36 -0700)
commit64ec9b997f3a9462901a404ad60f452f76dd2d6e
treeebf5aaab6b6738e25debefdf1158bbac803c8587
parent7d5b635d9f4314c93bc1f9828f5d757decb860bc
perf python: Fix thread check in pyrf_evsel__read

The CPU index is incorrectly checked rather than the thread index.

Fixes: 739621f65702 ("perf python: Add evsel read method")
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250710235126.1086011-11-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/python.c