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:
committed by
Hal Feng
parent
4390f00ffe
commit
3e29197013
20
tools/perf/pmu-events/arch/riscv/riscv-generic.json
Normal file
20
tools/perf/pmu-events/arch/riscv/riscv-generic.json
Normal 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"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user