diff options
author | Stephane Eranian <eranian@google.com> | 2022-03-23 01:15:11 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-04-05 11:24:38 +0300 |
commit | cc37e520a236069c0de0e7ea455082fa11c73b12 (patch) | |
tree | 12c7c8e3d54956226acad111dbe0b5fa871f8816 /arch/x86/events/amd/Makefile | |
parent | ba2fe7500845a30fc845a72081999cf632051862 (diff) | |
download | linux-cc37e520a236069c0de0e7ea455082fa11c73b12.tar.xz |
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/amd/Makefile')
-rw-r--r-- | arch/x86/events/amd/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/events/amd/Makefile b/arch/x86/events/amd/Makefile index cf323ffab5cd..b9f5d4610256 100644 --- a/arch/x86/events/amd/Makefile +++ b/arch/x86/events/amd/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_CPU_SUP_AMD) += core.o brs.o +obj-$(CONFIG_CPU_SUP_AMD) += core.o +obj-$(CONFIG_PERF_EVENTS_AMD_BRS) += brs.o obj-$(CONFIG_PERF_EVENTS_AMD_POWER) += power.o obj-$(CONFIG_X86_LOCAL_APIC) += ibs.o obj-$(CONFIG_PERF_EVENTS_AMD_UNCORE) += amd-uncore.o |