703fb765f4
AMD Last Branch Record Extension Version 2 (LbrExtV2) is driven by Core PMC overflows. It records recently taken branches up to the moment when the PMC overflow occurs. Detect the feature during PMU initialization and set the branch stack depth using CPUID leaf 0x80000022 EBX. Signed-off-by: Sandipan Das <sandipan.das@amd.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/fc6e45378ada258f1bab79b0de6e05c393a8f1dd.1660211399.git.sandipan.das@amd.com
11 lines
358 B
Makefile
11 lines
358 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_CPU_SUP_AMD) += core.o lbr.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
|
|
amd-uncore-objs := uncore.o
|
|
ifdef CONFIG_AMD_IOMMU
|
|
obj-$(CONFIG_CPU_SUP_AMD) += iommu.o
|
|
endif
|