Files
linux/tools/lib/perf
Arnaldo Carvalho de Melo 7435c4069a libperf: Document code simplification case for widening struct perf_cpu
Add a bullet point to the libperf ABI TODO explaining the code
simplification benefit of widening struct perf_cpu.cpu from int16_t
to int: the narrow type forces defensive truncation checks at every
boundary where wider CPU indices are narrowed, and values > 32767
silently wrap to negative numbers (two's complement), bypassing
bounds validation without them.

Acked-by: Ian Rogers <irogers@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2026-06-10 15:23:54 -03:00
..
2024-08-01 12:11:33 -03:00
2020-01-06 11:46:09 -03:00
2020-01-06 11:46:09 -03:00
2022-05-23 10:11:12 -03:00
2020-01-06 11:46:09 -03:00