Skip to contentSkip to conversation

perf vendor events amd: Add Zen 4 events and metrics

PATCH In review Sandipan Das 3 participants 7 messages Dec 14, 2022 – Dec 21, 2022 perf events

lore
Share & tools
lore
#0 lore raw

v2 cover perf vendor events amd: Add Zen 4 events and metrics

Add events and metrics taken from the Processor Programming Reference (PPR) for AMD Family 19h Model 11h Revision B1 processors which can be found at: https://www.amd.com/system/files/TechDocs/55901_0.25.zip

Previous versions can be found at:
v1: https://lore.kernel.org/all/[email protected]/

Changes in v2:
- Remove "bytes" from the names of data fabric bandwidth metrics which use a scale unit.
- Use better group names for pipeline utilization metrics.
- Move patch that adds family-model mapping to the end of the series for avoiding potential build issues.

Sandipan Das (4):
perf vendor events amd: Add Zen 4 core events
perf vendor events amd: Add Zen 4 uncore events
perf vendor events amd: Add Zen 4 metrics
perf vendor events amd: Add Zen 4 mapping

 .../pmu-events/arch/x86/amdzen4/branch.json   |   82 ++
 .../pmu-events/arch/x86/amdzen4/cache.json    |  772 ++++++++++++
 .../pmu-events/arch/x86/amdzen4/core.json     |  122 ++
 .../arch/x86/amdzen4/data-fabric.json         | 1090 +++++++++++++++++
 .../arch/x86/amdzen4/floating-point.json      |  818 +++++++++++++
 .../pmu-events/arch/x86/amdzen4/memory.json   |  174 +++
 .../pmu-events/arch/x86/amdzen4/other.json    |  138 +++
 .../pmu-events/arch/x86/amdzen4/pipeline.json |   98 ++
 .../arch/x86/amdzen4/recommended.json         |  334 +++++
 tools/perf/pmu-events/arch/x86/mapfile.csv    |    3 +-
 10 files changed, 3630 insertions(+), 1 deletion(-)
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/branch.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/cache.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/core.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/data-fabric.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/floating-point.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/memory.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/other.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/pipeline.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/recommended.json
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/4 perf vendor events amd: Add Zen 4 core events

Add core events taken from Section 2.1.15.4 "Core Performance Monitor Counters" in the Processor Programming Reference (PPR) for AMD Family 19h Model 11h Revision B1 processors. This constitutes events which capture op dispatch, execution and retirement, branch prediction, L1 and L2 cache activity, TLB activity, etc.

---
 .../pmu-events/arch/x86/amdzen4/branch.json   |  82 ++
 .../pmu-events/arch/x86/amdzen4/cache.json    | 653 ++++++++++++++
 .../pmu-events/arch/x86/amdzen4/core.json     | 122 +++
 .../arch/x86/amdzen4/floating-point.json      | 818 ++++++++++++++++++
 .../pmu-events/arch/x86/amdzen4/memory.json   | 174 ++++
 .../pmu-events/arch/x86/amdzen4/other.json    | 138 +++
 6 files changed, 1987 insertions(+)
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/branch.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/cache.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/core.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/floating-point.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/memory.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/other.json
tools/perf/pmu-events/arch/x86/amdzen4/branch.json new file +82 -0
new file mode 100644
index 000000000000..208c646c59ca
@@ -0,0 +1,82 @@
+[
+  {
+    "EventName": "bp_l2_btb_correct",
+    "EventCode": "0x8b",
+    "BriefDescription": "L2 branch prediction overrides existing prediction (speculative)."
+  },
+  {
+    "EventName": "bp_dyn_ind_pred",
+    "EventCode": "0x8e",
+    "BriefDescription": "Dynamic indirect predictions (branch used the indirect predictor to make a prediction)."
+  },
+  {
+    "EventName": "bp_de_redirect",
+    "EventCode": "0x91",
+    "BriefDescription": "Instruction decoder corrects the predicted target and resteers the branch predictor."
+  },
+  {
+    "EventName": "ex_ret_brn",
+    "EventCode": "0xc2",
+    "BriefDescription": "Retired branch instructions (all types of architectural control flow changes, including exceptions and interrupts)."
+  },
+  {
+    "EventName": "ex_ret_brn_misp",
+    "EventCode": "0xc3",
+    "BriefDescription": "Retired branch instructions mispredicted."
+  },
+  {
+    "EventName": "ex_ret_brn_tkn",
+    "EventCode": "0xc4",
+    "BriefDescription": "Retired taken branch instructions (all types of architectural control flow changes, including exceptions and interrupts)."
+  },
+  {
+    "EventName": "ex_ret_brn_tkn_misp",
+    "EventCode": "0xc5",
+    "BriefDescription": "Retired taken branch instructions mispredicted."
+  },
+  {
+    "EventName": "ex_ret_brn_far",
+    "EventCode": "0xc6",
+    "BriefDescription": "Retired far control transfers (far call/jump/return, IRET, SYSCALL and SYSRET, plus exceptions and interrupts). Far control transfers are not subject to branch prediction."
+  },
+  {
+    "EventName": "ex_ret_near_ret",
+    "EventCode": "0xc8",
+    "BriefDescription": "Retired near returns (RET or RET Iw)."
+  },
+  {
+    "EventName": "ex_ret_near_ret_mispred",
+    "EventCode": "0xc9",
+    "BriefDescription": "Retired near returns mispredicted. Each misprediction incurs the same penalty as a mispredicted conditional branch instruction."
+  },
+  {
+    "EventName": "ex_ret_brn_ind_misp",
+    "EventCode": "0xca",
+    "BriefDescription": "Retired indirect branch instructions mispredicted (only EX mispredicts). Each misprediction incurs the same penalty as a mispredicted conditional branch instruction."
+  },
+  {
+    "EventName": "ex_ret_ind_brch_instr",
+    "EventCode": "0xcc",
+    "BriefDescription": "Retired indirect branch instructions."
+  },
+  {
+    "EventName": "ex_ret_cond",
+    "EventCode": "0xd1",
+    "BriefDescription": "Retired conditional branch instructions."
+  },
+  {
+    "EventName": "ex_ret_msprd_brnch_instr_dir_msmtch",
+    "EventCode": "0x1c7",
+    "BriefDescription": "Retired branch instructions mispredicted due to direction mismatch."
+  },
+  {
+    "EventName": "ex_ret_uncond_brnch_instr_mispred",
+    "EventCode": "0x1c8",
+    "BriefDescription": "Retired unconditional indirect branch instructions mispredicted."
+  },
+  {
+    "EventName": "ex_ret_uncond_brnch_instr",
+    "EventCode": "0x1c9",
+    "BriefDescription": "Retired unconditional branch instructions."
+  }
+]
tools/perf/pmu-events/arch/x86/amdzen4/cache.json new file +653 -0

653 lines not on this page · raw message

tools/perf/pmu-events/arch/x86/amdzen4/core.json new file +122 -0

122 lines not on this page · raw message

tools/perf/pmu-events/arch/x86/amdzen4/floating-point.json new file +818 -0

818 lines not on this page · raw message

tools/perf/pmu-events/arch/x86/amdzen4/memory.json new file +174 -0

174 lines not on this page · raw message

tools/perf/pmu-events/arch/x86/amdzen4/other.json new file +138 -0

138 lines not on this page · raw message

Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 2/4 perf vendor events amd: Add Zen 4 uncore events

In reply to Sandipan Das

Add uncore events taken from Section 2.1.15.5 "L3 Cache Performance Monitor Counter"s and Section 7.1 "Fabric Performance Monitor Counter (PMC) Events" in the Processor Programming Reference (PPR) for AMD Family 19h Model 11h Revision B1 processors. This constitutes events which capture L3 cache activity and data bandwidth for various links and interfaces in the Data Fabric.

---
 .../pmu-events/arch/x86/amdzen4/cache.json    |  119 ++
 .../arch/x86/amdzen4/data-fabric.json         | 1090 +++++++++++++++++
 2 files changed, 1209 insertions(+)
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/data-fabric.json
tools/perf/pmu-events/arch/x86/amdzen4/cache.json +119 -0
index 323ffd4b1423..ecbe9660b2b3 100644
@@ -649,5 +649,124 @@
     "EventCode": "0x28f",
     "BriefDescription": "Op cache accesses of all types.",
     "UMask": "0x07"
+  },
+  {
+    "EventName": "l3_lookup_state.l3_miss",
+    "EventCode": "0x04",
+    "BriefDescription": "L3 cache misses.",
+    "UMask": "0x01",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_lookup_state.l3_hit",
+    "EventCode": "0x04",
+    "BriefDescription": "L3 cache hits.",
+    "UMask": "0xfe",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_lookup_state.all_coherent_accesses_to_l3",
+    "EventCode": "0x04",
+    "BriefDescription": "L3 cache requests for all coherent accesses.",
+    "UMask": "0xff",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency.dram_near",
+    "EventCode": "0xac",
+    "BriefDescription": "Average sampled latency when data is sourced from DRAM in the same NUMA node.",
+    "UMask": "0x01",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency.dram_far",
+    "EventCode": "0xac",
+    "BriefDescription": "Average sampled latency when data is sourced from DRAM in a different NUMA node.",
+    "UMask": "0x02",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency.near_cache",
+    "EventCode": "0xac",
+    "BriefDescription": "Average sampled latency when data is sourced from another CCX's cache when the address was in the same NUMA node.",
+    "UMask": "0x04",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency.far_cache",
+    "EventCode": "0xac",
+    "BriefDescription": "Average sampled latency when data is sourced from another CCX's cache when the address was in a different NUMA node.",
+    "UMask": "0x08",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency.ext_near",
+    "EventCode": "0xac",
+    "BriefDescription": "Average sampled latency when data is sourced from extension memory (CXL) in the same NUMA node.",
+    "UMask": "0x10",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency.ext_far",
+    "EventCode": "0xac",
+    "BriefDescription": "Average sampled latency when data is sourced from extension memory (CXL) in a different NUMA node.",
+    "UMask": "0x20",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency.all",
+    "EventCode": "0xac",
+    "BriefDescription": "Average sampled latency from all data sources.",
+    "UMask": "0x3f",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency_requests.dram_near",
+    "EventCode": "0xad",
+    "BriefDescription": "L3 cache fill requests sourced from DRAM in the same NUMA node.",
+    "UMask": "0x01",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency_requests.dram_far",
+    "EventCode": "0xad",
+    "BriefDescription": "L3 cache fill requests sourced from DRAM in a different NUMA node.",
+    "UMask": "0x02",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency_requests.near_cache",
+    "EventCode": "0xad",
+    "BriefDescription": "L3 cache fill requests sourced from another CCX's cache when the address was in the same NUMA node.",
+    "UMask": "0x04",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency_requests.far_cache",
+    "EventCode": "0xad",
+    "BriefDescription": "L3 cache fill requests sourced from another CCX's cache when the address was in a different NUMA node.",
+    "UMask": "0x08",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency_requests.ext_near",
+    "EventCode": "0xad",
+    "BriefDescription": "L3 cache fill requests sourced from extension memory (CXL) in the same NUMA node.",
+    "UMask": "0x10",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency_requests.ext_far",
+    "EventCode": "0xad",
+    "BriefDescription": "L3 cache fill requests sourced from extension memory (CXL) in a different NUMA node.",
+    "UMask": "0x20",
+    "Unit": "L3PMC"
+  },
+  {
+    "EventName": "l3_xi_sampled_latency_requests.all",
+    "EventCode": "0xad",
+    "BriefDescription": "L3 cache fill requests sourced from all data sources.",
+    "UMask": "0x3f",
+    "Unit": "L3PMC"
   }
 ]
tools/perf/pmu-events/arch/x86/amdzen4/data-fabric.json new file +1090 -0

1,090 lines not on this page · raw message

Signature · 1 line
2.34.1
#3 lore raw

PATCH v2 3/4 perf vendor events amd: Add Zen 4 metrics

In reply to Sandipan Das

Add metrics taken from Section 2.1.15.2 "Performance Measurement" in the Processor Programming Reference (PPR) for AMD Family 19h Model 11h Revision B1 processors.

The recommended metrics are sourced from Table 27 "Guidance for Common Performance Statistics with Complex Event Selects".

The pipeline utilization metrics are sourced from Table 28 "Guidance for Pipeline Utilization Analysis Statistics". These are new to Zen 4 processors and useful for finding performance bottlenecks by analyzing activity at different stages of the pipeline. Metric groups have been added for Level 1 and Level 2 analysis.

---
 .../pmu-events/arch/x86/amdzen4/pipeline.json |  98 +++++
 .../arch/x86/amdzen4/recommended.json         | 334 ++++++++++++++++++
 2 files changed, 432 insertions(+)
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/pipeline.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/recommended.json
tools/perf/pmu-events/arch/x86/amdzen4/pipeline.json new file +98 -0
new file mode 100644
index 000000000000..4ae8316c7507
@@ -0,0 +1,98 @@
+[
+  {
+    "MetricName": "total_dispatch_slots",
+    "BriefDescription": "Total dispatch slots (upto 6 instructions can be dispatched in each cycle).",
+    "MetricExpr": "6 * ls_not_halted_cyc"
+  },
+  {
+    "MetricName": "frontend_bound",
+    "BriefDescription": "Fraction of dispatch slots that remained unused because the frontend did not supply enough instructions/ops.",
+    "MetricExpr": "d_ratio(de_no_dispatch_per_slot.no_ops_from_frontend, total_dispatch_slots)",
+    "MetricGroup": "PipelineL1",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "bad_speculation",
+    "BriefDescription": "Fraction of dispatched ops that did not retire.",
+    "MetricExpr": "d_ratio(de_src_op_disp.all - ex_ret_ops, total_dispatch_slots)",
+    "MetricGroup": "PipelineL1",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "backend_bound",
+    "BriefDescription": "Fraction of dispatch slots that remained unused because of backend stalls.",
+    "MetricExpr": "d_ratio(de_no_dispatch_per_slot.backend_stalls, total_dispatch_slots)",
+    "MetricGroup": "PipelineL1",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "smt_contention",
+    "BriefDescription": "Fraction of dispatch slots that remained unused because the other thread was selected.",
+    "MetricExpr": "d_ratio(de_no_dispatch_per_slot.smt_contention, total_dispatch_slots)",
+    "MetricGroup": "PipelineL1",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "retiring",
+    "BriefDescription": "Fraction of dispatch slots used by ops that retired.",
+    "MetricExpr": "d_ratio(ex_ret_ops, total_dispatch_slots)",
+    "MetricGroup": "PipelineL1",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "frontend_bound_latency",
+    "BriefDescription": "Fraction of dispatch slots that remained unused because of a latency bottleneck in the frontend (such as instruction cache or TLB misses).",
+    "MetricExpr": "d_ratio((6 * cpu@de_no_dispatch_per_slot.no_ops_from_frontend\\,cmask\\=0x6@), total_dispatch_slots)",
+    "MetricGroup": "PipelineL2;frontend_bound_group",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "frontend_bound_bandwidth",
+    "BriefDescription": "Fraction of dispatch slots that remained unused because of a bandwidth bottleneck in the frontend (such as decode or op cache fetch bandwidth).",
+    "MetricExpr": "d_ratio(de_no_dispatch_per_slot.no_ops_from_frontend - (6 * cpu@de_no_dispatch_per_slot.no_ops_from_frontend\\,cmask\\=0x6@), total_dispatch_slots)",
+    "MetricGroup": "PipelineL2;frontend_bound_group",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "bad_speculation_mispredicts",
+    "BriefDescription": "Fraction of dispatched ops that were flushed due to branch mispredicts.",
+    "MetricExpr": "d_ratio(bad_speculation * ex_ret_brn_misp, ex_ret_brn_misp + resyncs_or_nc_redirects)",
+    "MetricGroup": "PipelineL2;bad_speculation_group",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "bad_speculation_pipeline_restarts",
+    "BriefDescription": "Fraction of dispatched ops that were flushed due to pipeline restarts (resyncs).",
+    "MetricExpr": "d_ratio(bad_speculation * resyncs_or_nc_redirects, ex_ret_brn_misp + resyncs_or_nc_redirects)",
+    "MetricGroup": "PipelineL2;bad_speculation_group",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "backend_bound_memory",
+    "BriefDescription": "Fraction of dispatch slots that remained unused because of stalls due to the memory subsystem.",
+    "MetricExpr": "backend_bound * d_ratio(ex_no_retire.load_not_complete, ex_no_retire.not_complete)",
+    "MetricGroup": "PipelineL2;backend_bound_group",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "backend_bound_cpu",
+    "BriefDescription": "Fraction of dispatch slots that remained unused because of stalls not related to the memory subsystem.",
+    "MetricExpr": "backend_bound * (1 - d_ratio(ex_no_retire.load_not_complete, ex_no_retire.not_complete))",
+    "MetricGroup": "PipelineL2;backend_bound_group",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "retiring_fastpath",
+    "BriefDescription": "Fraction of dispatch slots used by fastpath ops that retired.",
+    "MetricExpr": "retiring * (1 - d_ratio(ex_ret_ucode_ops, ex_ret_ops))",
+    "MetricGroup": "PipelineL2;retiring_group",
+    "ScaleUnit": "100%"
+  },
+  {
+    "MetricName": "retiring_microcode",
+    "BriefDescription": "Fraction of dispatch slots used by microcode ops that retired.",
+    "MetricExpr": "retiring * d_ratio(ex_ret_ucode_ops, ex_ret_ops)",
+    "MetricGroup": "PipelineL2;retiring_group",
+    "ScaleUnit": "100%"
+  }
+]
tools/perf/pmu-events/arch/x86/amdzen4/recommended.json new file +334 -0

334 lines not on this page · raw message

Signature · 1 line
2.34.1
#4 lore raw

PATCH v2 4/4 perf vendor events amd: Add Zen 4 mapping

In reply to Sandipan Das

Add a regular expression in the map file so that appropriate JSON event files are used for AMD Zen 4 processors. Restrict the regular expression for AMD Zen 3 processors to known model ranges since they also belong to Family 19h.

---
 tools/perf/pmu-events/arch/x86/mapfile.csv | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/perf/pmu-events/arch/x86/mapfile.csv +2 -1
index 5e609b876790..9f9f88f5d117 100644
@@ -31,4 +31,5 @@ GenuineIntel-6-25,v3,westmereep-sp,core
 GenuineIntel-6-2F,v3,westmereex,core
 AuthenticAMD-23-([12][0-9A-F]|[0-9A-F]),v2,amdzen1,core
 AuthenticAMD-23-[[:xdigit:]]+,v1,amdzen2,core
-AuthenticAMD-25-[[:xdigit:]]+,v1,amdzen3,core
+AuthenticAMD-25-([245][[:xdigit:]]|[[:xdigit:]]),v1,amdzen3,core
+AuthenticAMD-25-[[:xdigit:]]+,v1,amdzen4,core
Signature · 1 line
2.34.1
reviewer
#5 lore raw
In reply to Sandipan Das
Quoted 15 lines · Sandipan Das

Add events and metrics taken from the Processor Programming Reference (PPR) for AMD Family 19h Model 11h Revision B1 processors which can be found at: https://www.amd.com/system/files/TechDocs/55901_0.25.zip

Previous versions can be found at:
v1: https://lore.kernel.org/all/[email protected]/

Changes in v2:
- Remove "bytes" from the names of data fabric bandwidth metrics which use a scale unit.
- Use better group names for pipeline utilization metrics.
- Move patch that adds family-model mapping to the end of the series for avoiding potential build issues.

Quoted 5 lines

Sandipan Das (4):
perf vendor events amd: Add Zen 4 core events
perf vendor events amd: Add Zen 4 uncore events
perf vendor events amd: Add Zen 4 metrics
perf vendor events amd: Add Zen 4 mapping

Series: Acked-by: Ian Rogers <[email protected]>

Thanks,
Ian

Quoted 24 lines
 .../pmu-events/arch/x86/amdzen4/branch.json   |   82 ++
 .../pmu-events/arch/x86/amdzen4/cache.json    |  772 ++++++++++++
 .../pmu-events/arch/x86/amdzen4/core.json     |  122 ++
 .../arch/x86/amdzen4/data-fabric.json         | 1090 +++++++++++++++++
 .../arch/x86/amdzen4/floating-point.json      |  818 +++++++++++++
 .../pmu-events/arch/x86/amdzen4/memory.json   |  174 +++
 .../pmu-events/arch/x86/amdzen4/other.json    |  138 +++
 .../pmu-events/arch/x86/amdzen4/pipeline.json |   98 ++
 .../arch/x86/amdzen4/recommended.json         |  334 +++++
 tools/perf/pmu-events/arch/x86/mapfile.csv    |    3 +-
 10 files changed, 3630 insertions(+), 1 deletion(-)
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/branch.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/cache.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/core.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/data-fabric.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/floating-point.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/memory.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/other.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/pipeline.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/recommended.json

--
2.34.1

maintainer Acked-by Ian Rogers
#6 lore raw

Em Wed, Dec 14, 2022 at 07:59:01AM -0800, Ian Rogers escreveu:

Quoted 16 lines · Sandipan Das
Quoted 15 lines

Add events and metrics taken from the Processor Programming Reference (PPR) for AMD Family 19h Model 11h Revision B1 processors which can be found at: https://www.amd.com/system/files/TechDocs/55901_0.25.zip

Previous versions can be found at:
v1: https://lore.kernel.org/all/[email protected]/

Changes in v2:
- Remove "bytes" from the names of data fabric bandwidth metrics which use a scale unit.
- Use better group names for pipeline utilization metrics.
- Move patch that adds family-model mapping to the end of the series for avoiding potential build issues.

Quoted 7 lines
Quoted 5 lines

Sandipan Das (4):
perf vendor events amd: Add Zen 4 core events
perf vendor events amd: Add Zen 4 uncore events
perf vendor events amd: Add Zen 4 metrics
perf vendor events amd: Add Zen 4 mapping

Series: Acked-by: Ian Rogers <[email protected]>

Please add the Acked-by: on a separate line, like

Series:

To avoid confusing b4

Thanks,

- Arnaldo

Quoted 27 lines

Thanks,
Ian

Quoted 24 lines
 .../pmu-events/arch/x86/amdzen4/branch.json   |   82 ++
 .../pmu-events/arch/x86/amdzen4/cache.json    |  772 ++++++++++++
 .../pmu-events/arch/x86/amdzen4/core.json     |  122 ++
 .../arch/x86/amdzen4/data-fabric.json         | 1090 +++++++++++++++++
 .../arch/x86/amdzen4/floating-point.json      |  818 +++++++++++++
 .../pmu-events/arch/x86/amdzen4/memory.json   |  174 +++
 .../pmu-events/arch/x86/amdzen4/other.json    |  138 +++
 .../pmu-events/arch/x86/amdzen4/pipeline.json |   98 ++
 .../arch/x86/amdzen4/recommended.json         |  334 +++++
 tools/perf/pmu-events/arch/x86/mapfile.csv    |    3 +-
 10 files changed, 3630 insertions(+), 1 deletion(-)
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/branch.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/cache.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/core.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/data-fabric.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/floating-point.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/memory.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/other.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/pipeline.json
 create mode 100644 tools/perf/pmu-events/arch/x86/amdzen4/recommended.json

--
2.34.1

Signature · 1 line
- Arnaldo