]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers: perf: added capabilities for legacy PMU
authorVadim Shakirov <vadim.shakirov@syntacore.com>
Tue, 27 Feb 2024 17:00:01 +0000 (20:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:48:38 +0000 (14:48 +0000)
commit2f8c09478a2cb58e3d2f23f4230d66b5ea345524
tree3da4d866042a0b7674a85f501913c214ab40f6c5
parentf67898867b6b0f4542cddc7fe57997978b948a7a
drivers: perf: added capabilities for legacy PMU

[ Upstream commit 65730fe8f4fb039683d76fa8ea7e8d18a53c6cc6 ]

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: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Vadim Shakirov <vadim.shakirov@syntacore.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Fixes: 9b3e150e310e ("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: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/riscv_pmu_legacy.c