]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf cpumap: Add "any" CPU handling to cpu_map__snprint_mask
authorIan Rogers <irogers@google.com>
Wed, 3 Dec 2025 21:47:02 +0000 (13:47 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 4 Dec 2025 08:36:14 +0000 (00:36 -0800)
commite2de90bdc9f55a2a98fe6ee014c070d5c1d7cfb7
tree41b7d5bafb85ab8d17c89b3b0dfc092d472a4acb
parenta0a4173631bfcfd3520192c0a61cf911d6a52c3a
perf cpumap: Add "any" CPU handling to cpu_map__snprint_mask

If the perf_cpu_map is empty or is just the any CPU value, then early
return. Don't process the "any" CPU when creating the bitmap.

Tested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/cpumap.c