perf hwmon_pmu: Avoid shortening hwmon PMU name
authorIan Rogers <irogers@google.com>
Thu, 10 Jul 2025 23:51:14 +0000 (16:51 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 11 Jul 2025 19:36:39 +0000 (12:36 -0700)
commit28f5aa8184c9c9b8eab35fa3884c416fe75e88e4
treeb1fbdc2565463fa9c779a46ce57161d65187567a
parent4a6cdecaa1497f1fbbd1d5307a225b6ca5a62a90
perf hwmon_pmu: Avoid shortening hwmon PMU name

Long names like ucsi_source_psy_USBC000:001 when prefixed with hwmon_
exceed the buffer size and the last digit is lost. This causes
confusion with similar names like ucsi_source_psy_USBC000:002. Extend
the buffer size to avoid this.

Fixes: 53cc0b351ec9 ("perf hwmon_pmu: Add a tool PMU exposing events from hwmon in sysfs")
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250710235126.1086011-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/hwmon_pmu.c