arm64: perf: fix wrong event counter index
hulk inclusion
category: bugfix
bugzilla: 12832
CVE: NA
-------------------------------------------------
We missed doing the ARMV8_IDX_TO_COUNTER() before accessing these counters.
It will access the wrong counters and may even cause undefinstr exception.
Add it as armv8pmu_select_counter() do before.
Fix: commit 2f10f935b6a6 ("arm64: perf: avoid PMXEV* indirection")
Signed-off-by: NWei Li <liwei391@huawei.com>
Reviewed-by: NCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录