diff options
author | Cody P Schafer <cody@linux.vnet.ibm.com> | 2014-03-14 01:00:43 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-03-23 18:48:32 -0400 |
commit | 30daeb6c8f54841274d1845b85c41f44165b3755 (patch) | |
tree | 4c45450d140a551994af7e4a013b08605aa5a694 /arch/powerpc/platforms/pseries/Kconfig | |
parent | 0e93a6edd9de7000d36788b1b8985efa610b698d (diff) |
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>
Diffstat (limited to 'arch/powerpc/platforms/pseries/Kconfig')
-rw-r--r-- | arch/powerpc/platforms/pseries/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig index 80b1d57c306a..2cb8b776c84a 100644 --- a/arch/powerpc/platforms/pseries/Kconfig +++ b/arch/powerpc/platforms/pseries/Kconfig | |||
@@ -111,6 +111,18 @@ config CMM | |||
111 | will be reused for other LPARs. The interface allows firmware to | 111 | will be reused for other LPARs. The interface allows firmware to |
112 | balance memory across many LPARs. | 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 | config DTL | 126 | config DTL |
115 | bool "Dispatch Trace Log" | 127 | bool "Dispatch Trace Log" |
116 | depends on PPC_SPLPAR && DEBUG_FS | 128 | depends on PPC_SPLPAR && DEBUG_FS |