linux-yocto/tools/perf/pmu-events/arch/riscv/riscv-sbi-firmware.json
Eric Lin 63ba5b0fb4
perf arch events: Fix duplicate RISC-V SBI firmware event name
Currently, the RISC-V firmware JSON file has duplicate event name
"FW_SFENCE_VMA_RECEIVED". According to the RISC-V SBI PMU extension[1],
the event name should be "FW_SFENCE_VMA_ASID_SENT".

Before this patch:
$ perf list

firmware:
  fw_access_load
       [Load access trap event. Unit: cpu]
  fw_access_store
       [Store access trap event. Unit: cpu]
....
 fw_set_timer
       [Set timer event. Unit: cpu]
  fw_sfence_vma_asid_received
       [Received SFENCE.VMA with ASID request from other HART event. Unit: cpu]
  fw_sfence_vma_received
       [Sent SFENCE.VMA with ASID request to other HART event. Unit: cpu]

After this patch:
$ perf list

firmware:
  fw_access_load
       [Load access trap event. Unit: cpu]
  fw_access_store
       [Store access trap event. Unit: cpu]
.....
  fw_set_timer
       [Set timer event. Unit: cpu]
  fw_sfence_vma_asid_received
       [Received SFENCE.VMA with ASID request from other HART event. Unit: cpu]
  fw_sfence_vma_asid_sent
       [Sent SFENCE.VMA with ASID request to other HART event. Unit: cpu]
  fw_sfence_vma_received
       [Received SFENCE.VMA request from other HART event. Unit: cpu]

Link: https://github.com/riscv-non-isa/riscv-sbi-doc/blob/master/src/ext-pmu.adoc#event-firmware-events-type-15 [1]
Fixes: 8f0dcb4e73 ("perf arch events: riscv sbi firmware std event files")
Fixes: c4f769d409 ("perf vendor events riscv: add Sifive U74 JSON file")
Fixes: acbf6de674 ("perf vendor events riscv: Add StarFive Dubhe-80 JSON file")
Fixes: 7340c6df49 ("perf vendor events riscv: add T-HEAD C9xx JSON file")
Fixes: f5102e31c2 ("riscv: andes: Support specifying symbolic firmware and hardware raw event")
Signed-off-by: Eric Lin <eric.lin@sifive.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Nikita Shubin <n.shubin@yadro.com>
Reviewed-by: Inochi Amaoto <inochiama@outlook.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240719115018.27356-1-eric.lin@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-08-01 07:14:45 -07:00

135 lines
4.9 KiB
JSON

[
{
"PublicDescription": "Misaligned load trap",
"ConfigCode": "0x8000000000000000",
"EventName": "FW_MISALIGNED_LOAD",
"BriefDescription": "Misaligned load trap event"
},
{
"PublicDescription": "Misaligned store trap",
"ConfigCode": "0x8000000000000001",
"EventName": "FW_MISALIGNED_STORE",
"BriefDescription": "Misaligned store trap event"
},
{
"PublicDescription": "Load access trap",
"ConfigCode": "0x8000000000000002",
"EventName": "FW_ACCESS_LOAD",
"BriefDescription": "Load access trap event"
},
{
"PublicDescription": "Store access trap",
"ConfigCode": "0x8000000000000003",
"EventName": "FW_ACCESS_STORE",
"BriefDescription": "Store access trap event"
},
{
"PublicDescription": "Illegal instruction trap",
"ConfigCode": "0x8000000000000004",
"EventName": "FW_ILLEGAL_INSN",
"BriefDescription": "Illegal instruction trap event"
},
{
"PublicDescription": "Set timer event",
"ConfigCode": "0x8000000000000005",
"EventName": "FW_SET_TIMER",
"BriefDescription": "Set timer event"
},
{
"PublicDescription": "Sent IPI to other HART event",
"ConfigCode": "0x8000000000000006",
"EventName": "FW_IPI_SENT",
"BriefDescription": "Sent IPI to other HART event"
},
{
"PublicDescription": "Received IPI from other HART event",
"ConfigCode": "0x8000000000000007",
"EventName": "FW_IPI_RECEIVED",
"BriefDescription": "Received IPI from other HART event"
},
{
"PublicDescription": "Sent FENCE.I request to other HART event",
"ConfigCode": "0x8000000000000008",
"EventName": "FW_FENCE_I_SENT",
"BriefDescription": "Sent FENCE.I request to other HART event"
},
{
"PublicDescription": "Received FENCE.I request from other HART event",
"ConfigCode": "0x8000000000000009",
"EventName": "FW_FENCE_I_RECEIVED",
"BriefDescription": "Received FENCE.I request from other HART event"
},
{
"PublicDescription": "Sent SFENCE.VMA request to other HART event",
"ConfigCode": "0x800000000000000a",
"EventName": "FW_SFENCE_VMA_SENT",
"BriefDescription": "Sent SFENCE.VMA request to other HART event"
},
{
"PublicDescription": "Received SFENCE.VMA request from other HART event",
"ConfigCode": "0x800000000000000b",
"EventName": "FW_SFENCE_VMA_RECEIVED",
"BriefDescription": "Received SFENCE.VMA request from other HART event"
},
{
"PublicDescription": "Sent SFENCE.VMA with ASID request to other HART event",
"ConfigCode": "0x800000000000000c",
"EventName": "FW_SFENCE_VMA_ASID_SENT",
"BriefDescription": "Sent SFENCE.VMA with ASID request to other HART event"
},
{
"PublicDescription": "Received SFENCE.VMA with ASID request from other HART event",
"ConfigCode": "0x800000000000000d",
"EventName": "FW_SFENCE_VMA_ASID_RECEIVED",
"BriefDescription": "Received SFENCE.VMA with ASID request from other HART event"
},
{
"PublicDescription": "Sent HFENCE.GVMA request to other HART event",
"ConfigCode": "0x800000000000000e",
"EventName": "FW_HFENCE_GVMA_SENT",
"BriefDescription": "Sent HFENCE.GVMA request to other HART event"
},
{
"PublicDescription": "Received HFENCE.GVMA request from other HART event",
"ConfigCode": "0x800000000000000f",
"EventName": "FW_HFENCE_GVMA_RECEIVED",
"BriefDescription": "Received HFENCE.GVMA request from other HART event"
},
{
"PublicDescription": "Sent HFENCE.GVMA with VMID request to other HART event",
"ConfigCode": "0x8000000000000010",
"EventName": "FW_HFENCE_GVMA_VMID_SENT",
"BriefDescription": "Sent HFENCE.GVMA with VMID request to other HART event"
},
{
"PublicDescription": "Received HFENCE.GVMA with VMID request from other HART event",
"ConfigCode": "0x8000000000000011",
"EventName": "FW_HFENCE_GVMA_VMID_RECEIVED",
"BriefDescription": "Received HFENCE.GVMA with VMID request from other HART event"
},
{
"PublicDescription": "Sent HFENCE.VVMA request to other HART event",
"ConfigCode": "0x8000000000000012",
"EventName": "FW_HFENCE_VVMA_SENT",
"BriefDescription": "Sent HFENCE.VVMA request to other HART event"
},
{
"PublicDescription": "Received HFENCE.VVMA request from other HART event",
"ConfigCode": "0x8000000000000013",
"EventName": "FW_HFENCE_VVMA_RECEIVED",
"BriefDescription": "Received HFENCE.VVMA request from other HART event"
},
{
"PublicDescription": "Sent HFENCE.VVMA with ASID request to other HART event",
"ConfigCode": "0x8000000000000014",
"EventName": "FW_HFENCE_VVMA_ASID_SENT",
"BriefDescription": "Sent HFENCE.VVMA with ASID request to other HART event"
},
{
"PublicDescription": "Received HFENCE.VVMA with ASID request from other HART event",
"ConfigCode": "0x8000000000000015",
"EventName": "FW_HFENCE_VVMA_ASID_RECEIVED",
"BriefDescription": "Received HFENCE.VVMA with ASID request from other HART event"
}
]