x86/perf: Improve sysfs enumeration for cpu pmu

From: Andi Kleen
Date: Tue Aug 22 2017 - 14:52:12 EST


Some improvements for the sysfs enumeration for the cpu pmu to make
it easier for user programs to discover what is supported.

-Andi