]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf pmu: perf_cpu_map__new_int to avoid parsing a string
authorIan Rogers <irogers@google.com>
Thu, 13 Nov 2025 18:05:08 +0000 (10:05 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 18 Nov 2025 02:43:08 +0000 (18:43 -0800)
commitf69d34e8f23db8bca38c82a04ee9cd990777aaa2
treea62611407eb6c86d162f7109bdc09d9431cdc2d1
parentaf9e8d12b139c92e748eb2956bbef03315ea7516
perf pmu: perf_cpu_map__new_int to avoid parsing a string

Prefer perf_cpu_map__new_int(0) to perf_cpu_map__new("0") as it avoids
strings parsing.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/drm_pmu.c
tools/perf/util/hwmon_pmu.c