0026-RISC-V-Added-generic-pmu-events-mapfile.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 7e21305a33876bb56294389d5ecd6f497800e2fb Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Jo=C3=A3o=20M=C3=A1rio=20Domingos?=
  3. <[email protected]>
  4. Date: Tue, 16 Nov 2021 15:48:11 +0000
  5. Subject: [PATCH 26/55] RISC-V: Added generic pmu-events mapfile
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. The pmu-events now supports custom events for RISC-V, plus the cycle,
  10. time and instret events were defined.
  11. Signed-off-by: João Mário Domingos <[email protected]>
  12. ---
  13. .../pmu-events/arch/riscv/riscv-generic.json | 20 +++++++++++++++++++
  14. 1 file changed, 20 insertions(+)
  15. create mode 100644 tools/perf/pmu-events/arch/riscv/riscv-generic.json
  16. --- /dev/null
  17. +++ b/tools/perf/pmu-events/arch/riscv/riscv-generic.json
  18. @@ -0,0 +1,20 @@
  19. +[
  20. + {
  21. + "PublicDescription": "CPU Cycles",
  22. + "EventCode": "0x00",
  23. + "EventName": "riscv_cycles",
  24. + "BriefDescription": "CPU cycles RISC-V generic counter"
  25. + },
  26. + {
  27. + "PublicDescription": "CPU Time",
  28. + "EventCode": "0x01",
  29. + "EventName": "riscv_time",
  30. + "BriefDescription": "CPU time RISC-V generic counter"
  31. + },
  32. + {
  33. + "PublicDescription": "CPU Instructions",
  34. + "EventCode": "0x02",
  35. + "EventName": "riscv_instret",
  36. + "BriefDescription": "CPU retired instructions RISC-V generic counter"
  37. + }
  38. +]
  39. \ No newline at end of file