Commit 82488596 authored by Junhao He's avatar Junhao He
Browse files

drivers: perf: Add feature flag check in armpmu_add/del

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8EC9K


CVE: NA

--------------------------------

Function armpmu_add will call armv8pmu_branch_reset() to reset BRBE.
The BRBE feature depend on ARMV8 PMU hardware support for branch stack
sampling. On older platforms the kernel panics.

Internal error: Oops - Undefined instruction: 0000000002000000 [#1] SMP
Call trace:
armv8pmu_branch_reset+0xc/0x20
event_sched_in+0xc8/0x1a0
merge_sched_in+0x16c/0x41c

Fixes: 2690e65a ("drivers: perf: arm_pmuv3: Enable branch stack sampling via FEAT_BRBE")
Signed-off-by: default avatarJunhao He <hejunhao3@huawei.com>
parent c0386911
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment