]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
libperf: Document struct perf_cpu int16_t ABI limitation
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 6 Jun 2026 17:42:09 +0000 (14:42 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 6 Jun 2026 17:46:37 +0000 (14:46 -0300)
commitf54ce06049bf716f6b1e3a78e72360d583ea2acb
treee44d1a9af1352e4925eb871c584fb3136e9629f3
parentc3e51ed45ffa7547495a851e33ce332f81ef3665
libperf: Document struct perf_cpu int16_t ABI limitation

struct perf_cpu.cpu is int16_t, limiting perf to 32767 CPUs.  This is
part of the libperf ABI (returned by value from perf_cpu_map__cpu() and
friends), so widening it requires an ABI bump.

Add a comment on the struct definition noting this, and create a TODO
file to collect future ABI changes so they can be batched into a single
version bump.

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>
tools/lib/perf/TODO [new file with mode: 0644]
tools/lib/perf/include/perf/cpumap.h