perf python: Set index error for invalid thread/cpu map items
authorIan Rogers <irogers@google.com>
Thu, 10 Jul 2025 23:51:26 +0000 (16:51 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 11 Jul 2025 19:36:40 +0000 (12:36 -0700)
commitb4aff7ed7a4c1360e8b29d545c7bc9e05af1a995
tree296835f01e4df579a73a147ef8d654be4a7e962b
parent421c5f39adcdf292ca5c7162f40ed6d120d136a8
perf python: Set index error for invalid thread/cpu map items

Returning NULL for out of bound CPU or thread map items causes
internal errors. Fix by correctly setting the error to be an index
error.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250710235126.1086011-14-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/python.c