perf/x86/amd: Make Zen3 branch sampling opt-in
authorStephane Eranian <eranian@google.com>
Tue, 22 Mar 2022 22:15:11 +0000 (15:15 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Apr 2022 08:24:38 +0000 (10:24 +0200)
commitcc37e520a236069c0de0e7ea455082fa11c73b12
tree12c7c8e3d54956226acad111dbe0b5fa871f8816
parentba2fe7500845a30fc845a72081999cf632051862
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
arch/x86/events/Kconfig
arch/x86/events/amd/Makefile
arch/x86/events/perf_event.h