RISC-V: Added generic pmu-events mapfile

The pmu-events now supports custom events for RISC-V, plus the cycle,
time and instret events were defined.

Signed-off-by: João Mário Domingos <joao.mario@tecnico.ulisboa.pt>
This commit is contained in:
João Mário Domingos
2021-11-16 15:48:11 +00:00
committed by Hal Feng
parent 4390f00ffe
commit 3e29197013

View File

@@ -0,0 +1,20 @@
[
{
"PublicDescription": "CPU Cycles",
"EventCode": "0x00",
"EventName": "riscv_cycles",
"BriefDescription": "CPU cycles RISC-V generic counter"
},
{
"PublicDescription": "CPU Time",
"EventCode": "0x01",
"EventName": "riscv_time",
"BriefDescription": "CPU time RISC-V generic counter"
},
{
"PublicDescription": "CPU Instructions",
"EventCode": "0x02",
"EventName": "riscv_instret",
"BriefDescription": "CPU retired instructions RISC-V generic counter"
}
]