RISC-V: Add a perf core library for pmu drivers
authorAtish Patra <atish.patra@wdc.com>
Wed, 17 Mar 2021 23:18:17 +0000 (16:18 -0700)
committerminda.chen <minda.chen@starfivetech.com>
Tue, 3 Jan 2023 06:26:17 +0000 (14:26 +0800)
commit2680fe9e03431db972812ef12ca1b7eb931792ad
tree78175f0af16d7e49df64553c25b8f6526d58945c
parent80b4eaf7a803baaf025f75f6b4e7cda2115435b1
RISC-V: Add a perf core library for pmu drivers

Implement a perf core library that can support all the essential perf
features in future. It can also accommodate any type of PMU implementation
in future. Currently, both SBI based perf driver and legacy driver
implemented uses the library. Most of the common perf functionalities
are kept in this core library wile PMU specific driver can implement PMU
specific features. For example, the SBI specific functionality will be
implemented in the SBI specific driver.

Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
drivers/perf/Kconfig
drivers/perf/Makefile
drivers/perf/riscv_pmu.c [new file with mode: 0644]
include/linux/perf/riscv_pmu.h [new file with mode: 0644]