drivers: perf: Implement perf event mmap support in the legacy backend
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 2 Aug 2023 08:03:24 +0000 (10:03 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 16 Aug 2023 14:28:19 +0000 (07:28 -0700)
commit50be342829053d6d4a3c66eacc0e778f6611a37a
treea375e43caeabc24c1da2fdc59ad9af315c801859
parent83c5e13b8cbbed9479cf568e03a5010d827e9781
drivers: perf: Implement perf event mmap support in the legacy backend

Implement the needed callbacks in the legacy driver so that we can
directly access the counters through perf in userspace.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
drivers/perf/riscv_pmu_legacy.c