]> git.baikalelectronics.ru Git - kernel.git/commit
perf/amd/uncore: Inform the user how many counters each uncore PMU has
authorKim Phillips <kim.phillips@amd.com>
Mon, 21 Sep 2020 14:43:30 +0000 (09:43 -0500)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 24 Sep 2020 13:55:50 +0000 (15:55 +0200)
commit8d6baf009c6af1a89a58420568e86ae8e5ac3097
treed0e3bfa9078817601655ae70f495f862f1228c38
parent8e348221961af448901ec4fbc564830c7bca475d
perf/amd/uncore: Inform the user how many counters each uncore PMU has

Previously, the uncore driver would say "NB counters detected" on F17h
machines, which don't have NorthBridge (NB) counters.  They have Data
Fabric (DF) counters.  Just use the pmu.name to inform users which pmu
to use and its associated counter count.

F17h dmesg BEFORE:

amd_uncore: AMD NB counters detected
amd_uncore: AMD LLC counters detected

F17h dmesg AFTER:

amd_uncore: 4 amd_df counters detected
amd_uncore: 6 amd_l3 counters detected

Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200921144330.6331-5-kim.phillips@amd.com
arch/x86/events/amd/uncore.c