Skip to contentSkip to conversation

perf vendor events: Initial json/events list for power10 platform

PATCH Superseded Kajol Jain 2 participants 3 messages Apr 17, 2021 – Apr 19, 2021 perf events

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Kajol Jain

author
#0 lore raw

PATCH 1/1 perf vendor events: Initial json/events list for power10 platform

Patch adds initial json/events for POWER10.

---
 .../perf/pmu-events/arch/powerpc/mapfile.csv  |   1 +
 .../arch/powerpc/power10/cache.json           |  47 +++
 .../arch/powerpc/power10/floating_point.json  |   7 +
 .../arch/powerpc/power10/frontend.json        | 217 +++++++++++++
 .../arch/powerpc/power10/locks.json           |  12 +
 .../arch/powerpc/power10/marked.json          | 147 +++++++++
 .../arch/powerpc/power10/memory.json          | 192 +++++++++++
 .../arch/powerpc/power10/others.json          | 297 ++++++++++++++++++
 .../arch/powerpc/power10/pipeline.json        | 297 ++++++++++++++++++
 .../pmu-events/arch/powerpc/power10/pmc.json  |  22 ++
 .../arch/powerpc/power10/translation.json     |  57 ++++
 11 files changed, 1296 insertions(+)
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/cache.json
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/floating_point.json
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/frontend.json
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/locks.json
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/marked.json
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/memory.json
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/others.json
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/pipeline.json
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/pmc.json
 create mode 100644 tools/perf/pmu-events/arch/powerpc/power10/translation.json
tools/perf/pmu-events/arch/powerpc/mapfile.csv +1 -0
index 229150e7ab7d..4abdfc3f9692 100644
@@ -15,3 +15,4 @@
 # Power8 entries
 004[bcd][[:xdigit:]]{4},1,power8,core
 004e[[:xdigit:]]{4},1,power9,core
+0080[[:xdigit:]]{4},1,power10,core
tools/perf/pmu-events/arch/powerpc/power10/cache.json new file +47 -0

47 lines not on this page · raw message

tools/perf/pmu-events/arch/powerpc/power10/floating_point.json new file +7 -0
new file mode 100644
index 000000000000..e9b92f282d3c
@@ -0,0 +1,7 @@
+[
+  {
+    "EventCode": "4016E",
+    "EventName": "PM_THRESH_NOT_MET",
+    "BriefDescription": "Threshold counter did not meet threshold"
+  }
+]
tools/perf/pmu-events/arch/powerpc/power10/frontend.json new file +217 -0

217 lines not on this page · raw message

tools/perf/pmu-events/arch/powerpc/power10/locks.json new file +12 -0
new file mode 100644
index 000000000000..fa81b470d21f
@@ -0,0 +1,12 @@
+[
+  {
+    "EventCode": "1E058",
+    "EventName": "PM_STCX_FAIL_FIN",
+    "BriefDescription": "Conditional store instruction (STCX) failed. LARX and STCX are instructions used to acquire a lock "
+  },
+  {
+    "EventCode": "4E050",
+    "EventName": "PM_STCX_PASS_FIN",
+    "BriefDescription": "Conditional store instruction (STCX) passed. LARX and STCX are instructions used to acquire a lock "
+  }
+]
tools/perf/pmu-events/arch/powerpc/power10/marked.json new file +147 -0

147 lines not on this page · raw message

tools/perf/pmu-events/arch/powerpc/power10/memory.json new file +192 -0

192 lines not on this page · raw message

tools/perf/pmu-events/arch/powerpc/power10/others.json new file +297 -0

297 lines not on this page · raw message

tools/perf/pmu-events/arch/powerpc/power10/pipeline.json new file +297 -0

297 lines not on this page · raw message

tools/perf/pmu-events/arch/powerpc/power10/pmc.json new file +22 -0
new file mode 100644
index 000000000000..60a0100ee996
@@ -0,0 +1,22 @@
+[
+  {
+    "EventCode": "301E8",
+    "EventName": "PM_THRESH_EXC_64",
+    "BriefDescription": "Threshold counter exceeded a value of 64"
+  },
+  {
+    "EventCode": "45050",
+    "EventName": "PM_1FLOP_CMPL",
+    "BriefDescription": "One floating point instruction completed (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg)"
+  },
+  {
+    "EventCode": "45052",
+    "EventName": "PM_4FLOP_CMPL",
+    "BriefDescription": "Four floating point instructions completed (fadd, fmul, fsub, fcmp, fsel, fabs, fnabs, fres, fsqrte, fneg)"
+  },
+  {
+    "EventCode": "4D054",
+    "EventName": "PM_8FLOP_CMPL",
+    "BriefDescription": "Four Double Precision vector instructions completed."
+  }
+]
tools/perf/pmu-events/arch/powerpc/power10/translation.json new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.27.0
Tested-by Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Kajol Jain

Patch adds initial json/events for POWER10.

I was able to apply, build, and run perf with these changes, and every new event at least ran successfully with perf stat.

Pedantically, there is a lot of inconsistency as to whether the BriefDescription ends with a period or not, and whether there is an extra space at the end.

Regardless, LGTM.

PC

author
#2 lore raw
Quoted 10 lines · Paul A. Clarke
Quoted 1 line · Kajol Jain

Patch adds initial json/events for POWER10.

I was able to apply, build, and run perf with these changes, and every new event at least ran successfully with perf stat.

Pedantically, there is a lot of inconsistency as to whether the BriefDescription ends with a period or not, and whether there is an extra space at the end.

Hi Paul,
Thanks for reviewing the patch. Sure I will remove this inconsistency and send v2 patch for the same, with your Tested-by and Reviewed-by tag.

Thanks,
Kajol Jain

Quoted 8 lines

Regardless, LGTM.

PC