diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-06-27 14:43:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-06-27 14:43:02 -0700 |
| commit | a193cc7506fde23185a7c0d99474a03a8ec5ee4c (patch) | |
| tree | b0b2bf7bc4a1cca34c53d85d20c937425a5a5180 /arch/x86/events/amd/core.c | |
| parent | bc6cb4d5bc3a44197de30784eae71d8ba28483eb (diff) | |
| parent | 228020b490eda9133c9cb6f59a5ee1278d8c463f (diff) | |
| download | linux-a193cc7506fde23185a7c0d99474a03a8ec5ee4c.tar.gz linux-a193cc7506fde23185a7c0d99474a03a8ec5ee4c.tar.bz2 linux-a193cc7506fde23185a7c0d99474a03a8ec5ee4c.zip | |
Merge tag 'perf-core-2023-06-27' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf events updates from Ingo Molnar:
- Rework & fix the event forwarding logic by extending the core
interface.
This fixes AMD PMU events that have to be forwarded from the
core PMU to the IBS PMU.
- Add self-tests to test AMD IBS invocation via core PMU events
- Clean up Intel FixCntrCtl MSR encoding & handling
* tag 'perf-core-2023-06-27' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf: Re-instate the linear PMU search
perf/x86/intel: Define bit macros for FixCntrCtl MSR
perf test: Add selftest to test IBS invocation via core pmu events
perf/core: Remove pmu linear searching code
perf/ibs: Fix interface via core pmu events
perf/core: Rework forwarding of {task|cpu}-clock events
Diffstat (limited to 'arch/x86/events/amd/core.c')
| -rw-r--r-- | arch/x86/events/amd/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/events/amd/core.c b/arch/x86/events/amd/core.c index bccea57dee81..abadd5f23425 100644 --- a/arch/x86/events/amd/core.c +++ b/arch/x86/events/amd/core.c @@ -374,7 +374,7 @@ static int amd_pmu_hw_config(struct perf_event *event) /* pass precise event sampling to ibs: */ if (event->attr.precise_ip && get_ibs_caps()) - return -ENOENT; + return forward_event_to_ibs(event); if (has_branch_stack(event) && !x86_pmu.lbr_nr) return -EOPNOTSUPP; |
