perf stat: Don't size aggregation ids from user_requested_cpus
authorIan Rogers <irogers@google.com>
Sat, 19 Jul 2025 03:05:05 +0000 (20:05 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 24 Jul 2025 20:41:34 +0000 (13:41 -0700)
commitced4c249569ab25c32b0d36e2ebdb19c74394bdf
treed787511357c51e59a654800abd93b8c4b2046ec4
parent848e7a06fea9be249c5b788b3f498196925e4d7e
perf stat: Don't size aggregation ids from user_requested_cpus

As evsels may have additional CPU terms, the user_requested_cpus may
not reflect all the CPUs requested. Use evlist->all_cpus to size the
array as that reflects all the CPUs potentially needed by the evlist.

Reviewed-by: Thomas Falcon <thomas.falcon@intel.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250719030517.1990983-4-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-stat.c