perf pmu: Tolerate failure to read the type for wellknown PMUs
authorIan Rogers <irogers@google.com>
Thu, 10 Jul 2025 23:51:17 +0000 (16:51 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 11 Jul 2025 19:36:40 +0000 (12:36 -0700)
commit8c75dc742089c702cab6d0f21be80c5ddd3c6067
treed89ffbd0be4636a1c5abd3f8a2e856d30d258d08
parentbcc7693ad100ef9c778621edee2295b8c02f2271
perf pmu: Tolerate failure to read the type for wellknown PMUs

If sysfs isn't mounted then we may fail to read a PMU's type. In this
situation resort to lookup of wellknown types. Only applies to
software, tracepoint and breakpoint PMUs.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250710235126.1086011-5-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/pmu.c