summaryrefslogtreecommitdiffstats
path: root/arch/x86/events/Kconfig
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2022-03-22 23:15:11 +0100
committerPeter Zijlstra <peterz@infradead.org>2022-04-05 10:24:38 +0200
commitcc37e520a236069c0de0e7ea455082fa11c73b12 (patch)
tree12c7c8e3d54956226acad111dbe0b5fa871f8816 /arch/x86/events/Kconfig
parentperf/x86/amd: Add AMD branch sampling period adjustment (diff)
downloadlinux-cc37e520a236069c0de0e7ea455082fa11c73b12.tar.xz
linux-cc37e520a236069c0de0e7ea455082fa11c73b12.zip
perf/x86/amd: Make Zen3 branch sampling opt-in
Add a kernel config option CONFIG_PERF_EVENTS_AMD_BRS to make the support for AMD Zen3 Branch Sampling (BRS) an opt-in compile time option. Signed-off-by: Stephane Eranian <eranian@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220322221517.2510440-8-eranian@google.com
Diffstat (limited to 'arch/x86/events/Kconfig')
-rw-r--r--arch/x86/events/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/events/Kconfig b/arch/x86/events/Kconfig
index d6cdfe631674..09c56965750a 100644
--- a/arch/x86/events/Kconfig
+++ b/arch/x86/events/Kconfig
@@ -44,4 +44,12 @@ config PERF_EVENTS_AMD_UNCORE
To compile this driver as a module, choose M here: the
module will be called 'amd-uncore'.
+
+config PERF_EVENTS_AMD_BRS
+ depends on PERF_EVENTS && CPU_SUP_AMD
+ bool "AMD Zen3 Branch Sampling support"
+ help
+ Enable AMD Zen3 branch sampling support (BRS) which samples up to
+ 16 consecutive taken branches in registers.
+
endmenu