Skip to content
Commit 2f8c0947 authored by Vadim Shakirov's avatar Vadim Shakirov Committed by Greg Kroah-Hartman
Browse files

drivers: perf: added capabilities for legacy PMU



[ Upstream commit 65730fe8 ]

Added the PERF_PMU_CAP_NO_INTERRUPT flag because the legacy pmu driver
does not provide sampling capabilities

Added the PERF_PMU_CAP_NO_EXCLUDE flag because the legacy pmu driver
does not provide the ability to disable counter incrementation in
different privilege modes

Suggested-by: default avatarAtish Patra <atishp@rivosinc.com>
Signed-off-by: default avatarVadim Shakirov <vadim.shakirov@syntacore.com>
Reviewed-by: default avatarAtish Patra <atishp@rivosinc.com>
Fixes: 9b3e150e ("RISC-V: Add a simple platform driver for RISC-V  legacy perf")
Link: https://lore.kernel.org/r/20240227170002.188671-2-vadim.shakirov@syntacore.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f6789886
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment