Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/perf: Add kconfig option for hypervisor provided counters

The commit adds a Kconfig option which allows the hv_gpci and hv_24x7
PMUs, added in the preceeding commits, to be built.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Cody P Schafer and committed by
Benjamin Herrenschmidt
30daeb6c 0e93a6ed

+14
+2
arch/powerpc/perf/Makefile
··· 11 11 obj-$(CONFIG_FSL_EMB_PERF_EVENT) += core-fsl-emb.o 12 12 obj-$(CONFIG_FSL_EMB_PERF_EVENT_E500) += e500-pmu.o e6500-pmu.o 13 13 14 + obj-$(CONFIG_HV_PERF_CTRS) += hv-24x7.o hv-gpci.o hv-common.o 15 + 14 16 obj-$(CONFIG_PPC64) += $(obj64-y) 15 17 obj-$(CONFIG_PPC32) += $(obj32-y)
+12
arch/powerpc/platforms/pseries/Kconfig
··· 111 111 will be reused for other LPARs. The interface allows firmware to 112 112 balance memory across many LPARs. 113 113 114 + config HV_PERF_CTRS 115 + bool "Hypervisor supplied PMU events (24x7 & GPCI)" 116 + default y 117 + depends on PERF_EVENTS && PPC_PSERIES 118 + help 119 + Enable access to hypervisor supplied counters in perf. Currently, 120 + this enables code that uses the hcall GetPerfCounterInfo and 24x7 121 + interfaces to retrieve counters. GPCI exists on Power 6 and later 122 + systems. 24x7 is available on Power 8 systems. 123 + 124 + If unsure, select Y. 125 + 114 126 config DTL 115 127 bool "Dispatch Trace Log" 116 128 depends on PPC_SPLPAR && DEBUG_FS