mirror-linux/tools/lib/perf/include/perf
Ian Rogers 83c338369a libperf cpumap: Make index and nr types unsigned
The index into the cpumap array and the number of entries within the
array can never be negative, so let's make them unsigned. This is
prompted by reports that gcc 13 with -O6 is giving a
alloc-size-larger-than errors. The change makes the cpumap changes and
then updates the declaration of index variables throughout perf and
libperf to be unsigned. The two things are hard to separate as
compiler warnings about mixing signed and unsigned types breaks the
build.

Reported-by: Chingbin Li <liqb365@163.com>
Closes: https://lore.kernel.org/lkml/20260212025127.841090-1-liqb365@163.com/
Tested-by: Chingbin Li <liqb365@163.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2026-04-01 14:50:53 -07:00
..
bpf_perf.h perf util: Move bpf_perf definitions to a libperf header 2021-04-29 10:30:58 -03:00
core.h libperf: Use 'extern' in LIBPERF_API visibility macro 2025-12-05 10:31:32 -08:00
cpumap.h libperf cpumap: Make index and nr types unsigned 2026-04-01 14:50:53 -07:00
event.h perf sched stats: Add schedstat v17 support 2026-01-22 12:31:51 -03:00
evlist.h perf evlist: Remove nr_groups 2023-03-13 17:42:27 -03:00
evsel.h libperf: Handle read format in perf_evsel__read() 2022-08-19 15:56:27 -03:00
mmap.h
schedstat-v15.h perf sched stats: Add record and rawdump support 2026-01-22 12:29:28 -03:00
schedstat-v16.h perf sched stats: Add schedstat v16 support 2026-01-22 12:30:16 -03:00
schedstat-v17.h perf sched stats: Add schedstat v17 support 2026-01-22 12:31:51 -03:00
threadmap.h libperf threadmap: Add perf_thread_map__idx() 2025-05-21 15:07:13 -03:00