Message ID | 20240331041830.2806741-5-andrii@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | perf/x86/amd: add LBR capture support outside of hardware events | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
diff --git a/arch/x86/events/amd/lbr.c b/arch/x86/events/amd/lbr.c index 0e4de028590d..75920f895d67 100644 --- a/arch/x86/events/amd/lbr.c +++ b/arch/x86/events/amd/lbr.c @@ -310,10 +310,6 @@ int amd_pmu_lbr_hw_config(struct perf_event *event) { int ret = 0; - /* LBR is not recommended in counting mode */ - if (!is_sampling_event(event)) - return -EINVAL; - ret = amd_pmu_lbr_setup_filter(event); if (!ret) event->attach_state |= PERF_ATTACH_SCHED_CB;