Mayuresh Chitale f0c9363db2
perf/riscv-sbi: Add platform specific firmware event handling
The SBI v2.0 specification pointed to by the link below reserves the
event code 0xffff for platform specific firmware events. Update the driver
to be able to parse and program such events. The platform specific
firmware events must now be specified in the perf command as below:
perf stat -e rCxxx ...
where bits[63:62] = 0x3 of the event config indicate a platform specific
firmware event and xxx indicate the actual event code which is passed
as the event data.

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Link: https://github.com/riscv-non-isa/riscv-sbi-doc/releases/download/v2.0/riscv-sbi.pdf
Link: https://lore.kernel.org/r/20240812051109.6496-1-mchitale@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-09-20 05:58:11 -07:00
..
2024-09-19 01:10:04 -07:00
2022-03-10 09:29:21 -08:00
2024-06-26 08:02:33 -07:00
2024-09-03 07:18:33 -07:00
2024-05-19 14:36:19 -07:00
2024-08-07 07:11:59 -07:00
2024-07-10 14:23:38 +02:00
2020-05-18 11:38:10 -07:00
2024-07-20 12:41:03 -07:00
2022-03-29 14:31:07 -07:00
2021-01-14 15:09:06 -08:00
2024-03-15 10:17:38 -07:00
2021-01-07 19:00:50 -08:00
2023-08-23 14:16:36 -07:00
2024-03-22 10:41:13 -07:00
2024-09-03 07:18:34 -07:00