xref: /linux/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json (revision ab93e0dd72c37d378dd936f031ffb83ff2bd87ce)
169e93213SAndi Kleen[
269e93213SAndi Kleen    {
37d38ef20SIan Rogers        "BriefDescription": "C2 residency percent per package",
47d38ef20SIan Rogers        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
569e93213SAndi Kleen        "MetricGroup": "Power",
67d38ef20SIan Rogers        "MetricName": "C2_Pkg_Residency",
77d38ef20SIan Rogers        "ScaleUnit": "100%"
834cb72efSIan Rogers    },
934cb72efSIan Rogers    {
1069e93213SAndi Kleen        "BriefDescription": "C3 residency percent per core",
11f6ee944cSIan Rogers        "MetricExpr": "cstate_core@c3\\-residency@ / TSC",
1269e93213SAndi Kleen        "MetricGroup": "Power",
13f6ee944cSIan Rogers        "MetricName": "C3_Core_Residency",
14f6ee944cSIan Rogers        "ScaleUnit": "100%"
1569e93213SAndi Kleen    },
1669e93213SAndi Kleen    {
1769e93213SAndi Kleen        "BriefDescription": "C3 residency percent per package",
18f6ee944cSIan Rogers        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
1969e93213SAndi Kleen        "MetricGroup": "Power",
20f6ee944cSIan Rogers        "MetricName": "C3_Pkg_Residency",
21f6ee944cSIan Rogers        "ScaleUnit": "100%"
2269e93213SAndi Kleen    },
2369e93213SAndi Kleen    {
247d38ef20SIan Rogers        "BriefDescription": "C6 residency percent per core",
257d38ef20SIan Rogers        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
267d38ef20SIan Rogers        "MetricGroup": "Power",
277d38ef20SIan Rogers        "MetricName": "C6_Core_Residency",
287d38ef20SIan Rogers        "ScaleUnit": "100%"
297d38ef20SIan Rogers    },
307d38ef20SIan Rogers    {
3169e93213SAndi Kleen        "BriefDescription": "C6 residency percent per package",
32f6ee944cSIan Rogers        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
3369e93213SAndi Kleen        "MetricGroup": "Power",
34f6ee944cSIan Rogers        "MetricName": "C6_Pkg_Residency",
35f6ee944cSIan Rogers        "ScaleUnit": "100%"
3669e93213SAndi Kleen    },
3769e93213SAndi Kleen    {
387d38ef20SIan Rogers        "BriefDescription": "C7 residency percent per core",
397d38ef20SIan Rogers        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
407d38ef20SIan Rogers        "MetricGroup": "Power",
417d38ef20SIan Rogers        "MetricName": "C7_Core_Residency",
427d38ef20SIan Rogers        "ScaleUnit": "100%"
437d38ef20SIan Rogers    },
447d38ef20SIan Rogers    {
4569e93213SAndi Kleen        "BriefDescription": "C7 residency percent per package",
46f6ee944cSIan Rogers        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
4769e93213SAndi Kleen        "MetricGroup": "Power",
48f6ee944cSIan Rogers        "MetricName": "C7_Pkg_Residency",
49f6ee944cSIan Rogers        "ScaleUnit": "100%"
507d38ef20SIan Rogers    },
517d38ef20SIan Rogers    {
5219a214bfSIan Rogers        "BriefDescription": "Uncore frequency per die [GHZ]",
5319a214bfSIan Rogers        "MetricExpr": "tma_info_system_socket_clks / #num_dies / duration_time / 1e9",
5419a214bfSIan Rogers        "MetricGroup": "SoC",
5519a214bfSIan Rogers        "MetricName": "UNCORE_FREQ"
5619a214bfSIan Rogers    },
5719a214bfSIan Rogers    {
587d38ef20SIan Rogers        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
597d38ef20SIan Rogers        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
607d38ef20SIan Rogers        "MetricGroup": "smi",
617d38ef20SIan Rogers        "MetricName": "smi_cycles",
627d38ef20SIan Rogers        "MetricThreshold": "smi_cycles > 0.1",
637d38ef20SIan Rogers        "ScaleUnit": "100%"
647d38ef20SIan Rogers    },
657d38ef20SIan Rogers    {
667d38ef20SIan Rogers        "BriefDescription": "Number of SMI interrupts.",
677d38ef20SIan Rogers        "MetricExpr": "msr@smi@",
687d38ef20SIan Rogers        "MetricGroup": "smi",
697d38ef20SIan Rogers        "MetricName": "smi_num",
707d38ef20SIan Rogers        "ScaleUnit": "1SMI#"
717d38ef20SIan Rogers    },
727d38ef20SIan Rogers    {
737d38ef20SIan Rogers        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
747d124303SIan Rogers        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_thread_clks",
757d38ef20SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
767d38ef20SIan Rogers        "MetricName": "tma_4k_aliasing",
77*307cf0ccSIan Rogers        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
787d38ef20SIan Rogers        "PublicDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset. False match is possible; which incur a few cycles load re-issue. However; the short re-issue duration is often hidden by the out-of-order core and HW optimizations; hence a user may safely ignore a high value of this metric unless it manages to propagate up into parent nodes of the hierarchy (e.g. to L1_Bound).",
797d38ef20SIan Rogers        "ScaleUnit": "100%"
807d38ef20SIan Rogers    },
817d38ef20SIan Rogers    {
827d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
837d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
847d124303SIan Rogers        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_0 + UOPS_DISPATCHED_PORT.PORT_1 + UOPS_DISPATCHED_PORT.PORT_5 + UOPS_DISPATCHED_PORT.PORT_6) / tma_info_thread_slots",
857d38ef20SIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
867d38ef20SIan Rogers        "MetricName": "tma_alu_op_utilization",
87*307cf0ccSIan Rogers        "MetricThreshold": "tma_alu_op_utilization > 0.4",
887d38ef20SIan Rogers        "ScaleUnit": "100%"
897d38ef20SIan Rogers    },
907d38ef20SIan Rogers    {
917d38ef20SIan Rogers        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
924018680dSIan Rogers        "MetricExpr": "66 * OTHER_ASSISTS.ANY_WB_ASSIST / tma_info_thread_slots",
936a8ec0b6SIan Rogers        "MetricGroup": "BvIO;TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
947d38ef20SIan Rogers        "MetricName": "tma_assists",
95*307cf0ccSIan Rogers        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
967d38ef20SIan Rogers        "PublicDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists. Assists are long sequences of uops that are required in certain corner-cases for operations that cannot be handled natively by the execution pipeline. For example; when working with very small floating point values (so-called Denormals); the FP units are not set up to perform these operations natively. Instead; a sequence of instructions to perform the computation on the Denormals is injected into the pipeline. Since these microcode sequences might be dozens of uops long; Assists can be extremely deleterious to performance and they can be avoided in many cases. Sample with: ASSISTS.ANY",
977d38ef20SIan Rogers        "ScaleUnit": "100%"
987d38ef20SIan Rogers    },
997d38ef20SIan Rogers    {
1007d38ef20SIan Rogers        "BriefDescription": "This category represents fraction of slots where no uops are being delivered due to a lack of required resources for accepting new uops in the Backend",
1017d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1027d38ef20SIan Rogers        "MetricExpr": "1 - (tma_frontend_bound + tma_bad_speculation + tma_retiring)",
1036a8ec0b6SIan Rogers        "MetricGroup": "BvOB;TmaL1;TopdownL1;tma_L1_group",
1047d38ef20SIan Rogers        "MetricName": "tma_backend_bound",
105*307cf0ccSIan Rogers        "MetricThreshold": "tma_backend_bound > 0.2",
106ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
1077d38ef20SIan Rogers        "PublicDescription": "This category represents fraction of slots where no uops are being delivered due to a lack of required resources for accepting new uops in the Backend. Backend is the portion of the processor core where the out-of-order scheduler dispatches ready uops into their respective execution units; and once completed these uops get retired according to program order. For example; stalls due to data-cache misses or stalls due to the divider unit being overloaded are both categorized under Backend Bound. Backend Bound is further divided into two main categories: Memory Bound and Core Bound. Sample with: TOPDOWN.BACKEND_BOUND_SLOTS",
1087d38ef20SIan Rogers        "ScaleUnit": "100%"
1097d38ef20SIan Rogers    },
1107d38ef20SIan Rogers    {
1117d38ef20SIan Rogers        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
1127d124303SIan Rogers        "MetricExpr": "(UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (INT_MISC.RECOVERY_CYCLES_ANY / 2 if #SMT_on else INT_MISC.RECOVERY_CYCLES)) / tma_info_thread_slots",
1137d38ef20SIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
1147d38ef20SIan Rogers        "MetricName": "tma_bad_speculation",
115*307cf0ccSIan Rogers        "MetricThreshold": "tma_bad_speculation > 0.15",
116ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
1177d38ef20SIan Rogers        "PublicDescription": "This category represents fraction of slots wasted due to incorrect speculations. This include slots used to issue uops that do not eventually get retired and slots for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work due to miss-predicted branches are categorized under Bad Speculation category. Incorrect data speculation followed by Memory Ordering Nukes is another example.",
1187d38ef20SIan Rogers        "ScaleUnit": "100%"
1197d38ef20SIan Rogers    },
1207d38ef20SIan Rogers    {
1217d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
1227d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1237d38ef20SIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
1246a8ec0b6SIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;BvMP;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
1257d38ef20SIan Rogers        "MetricName": "tma_branch_mispredicts",
126*307cf0ccSIan Rogers        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
127ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
1287d124303SIan Rogers        "PublicDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction.  These slots are either wasted by uops fetched from an incorrectly speculated program path; or stalls when the out-of-order part of the machine needs to recover its state from a speculative path. Sample with: TOPDOWN.BR_MISPREDICT_SLOTS. Related metrics: tma_info_bad_spec_branch_misprediction_cost, tma_mispredicts_resteers",
1297d38ef20SIan Rogers        "ScaleUnit": "100%"
1307d38ef20SIan Rogers    },
1317d38ef20SIan Rogers    {
1327d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
1337d124303SIan Rogers        "MetricExpr": "12 * (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY) / tma_info_thread_clks",
1347d38ef20SIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
1357d38ef20SIan Rogers        "MetricName": "tma_branch_resteers",
136*307cf0ccSIan Rogers        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1377d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers. Branch Resteers estimates the Frontend delay in fetching operations from corrected path; following all sorts of miss-predicted branches. For example; branchy code with lots of miss-predictions might get categorized under Branch Resteers. Note the value of this node may overlap with its siblings. Sample with: BR_MISP_RETIRED.ALL_BRANCHES",
1387d38ef20SIan Rogers        "ScaleUnit": "100%"
1397d38ef20SIan Rogers    },
1407d38ef20SIan Rogers    {
1417d38ef20SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
1427d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
1437d38ef20SIan Rogers        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
1447d38ef20SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
1457d38ef20SIan Rogers        "MetricName": "tma_cisc",
146*307cf0ccSIan Rogers        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
1477d38ef20SIan Rogers        "PublicDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction. A CISC instruction has multiple uops that are required to perform the instruction's functionality as in the case of read-modify-write as an example. Since these instructions require multiple uops they may or may not imply sub-optimal use of machine resources.",
1487d38ef20SIan Rogers        "ScaleUnit": "100%"
1497d38ef20SIan Rogers    },
1507d38ef20SIan Rogers    {
1517d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears",
1527d38ef20SIan Rogers        "MetricExpr": "MACHINE_CLEARS.COUNT * tma_branch_resteers / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY)",
1537d38ef20SIan Rogers        "MetricGroup": "BadSpec;MachineClears;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueMC",
1547d38ef20SIan Rogers        "MetricName": "tma_clears_resteers",
155*307cf0ccSIan Rogers        "MetricThreshold": "tma_clears_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1567d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears. Sample with: INT_MISC.CLEAR_RESTEER_CYCLES. Related metrics: tma_l1_bound, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches",
1577d38ef20SIan Rogers        "ScaleUnit": "100%"
1587d38ef20SIan Rogers    },
1597d38ef20SIan Rogers    {
1607d38ef20SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
1617d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1627d124303SIan Rogers        "MetricExpr": "(60 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.L3_MISS))) + 43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.L3_MISS)))) / tma_info_thread_clks",
16311e644ebSIan Rogers        "MetricGroup": "BvMS;DataSharing;LockCont;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
1647d38ef20SIan Rogers        "MetricName": "tma_contested_accesses",
165*307cf0ccSIan Rogers        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1667d38ef20SIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses. Contested accesses occur when data written by one Logical Processor are read by another Logical Processor on a different Physical Core. Examples of contested accesses include synchronizations such as locks; true data sharing such as modified locked variables; and false sharing. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_FWD;MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS. Related metrics: tma_data_sharing, tma_false_sharing, tma_machine_clears, tma_remote_cache",
1677d38ef20SIan Rogers        "ScaleUnit": "100%"
1687d38ef20SIan Rogers    },
1697d38ef20SIan Rogers    {
1707d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
1717d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1727d38ef20SIan Rogers        "MetricExpr": "tma_backend_bound - tma_memory_bound",
1737d38ef20SIan Rogers        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
1747d38ef20SIan Rogers        "MetricName": "tma_core_bound",
175*307cf0ccSIan Rogers        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
176ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
1777d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck.  Shortage in hardware compute resources; or dependencies in software's instructions are both categorized under Core Bound. Hence it may indicate the machine ran out of an out-of-order resource; certain execution units are overloaded or dependencies in program's data- or instruction-flow are limiting the performance (e.g. FP-chained long-latency arithmetic operations).",
1787d38ef20SIan Rogers        "ScaleUnit": "100%"
1797d38ef20SIan Rogers    },
1807d38ef20SIan Rogers    {
1817d38ef20SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
1827d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1837d124303SIan Rogers        "MetricExpr": "43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.L3_MISS))) / tma_info_thread_clks",
1846a8ec0b6SIan Rogers        "MetricGroup": "BvMS;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
1857d38ef20SIan Rogers        "MetricName": "tma_data_sharing",
186*307cf0ccSIan Rogers        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1877d38ef20SIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses. Data shared by multiple Logical Processors (even just read shared) may cause increased access latency due to cache coherency. Excessive data sharing can drastically harm multithreaded performance. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_NO_FWD. Related metrics: tma_contested_accesses, tma_false_sharing, tma_machine_clears, tma_remote_cache",
1887d38ef20SIan Rogers        "ScaleUnit": "100%"
1897d38ef20SIan Rogers    },
1907d38ef20SIan Rogers    {
1917d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
1927d124303SIan Rogers        "MetricExpr": "ARITH.FPU_DIV_ACTIVE / tma_info_core_core_clks",
1936a8ec0b6SIan Rogers        "MetricGroup": "BvCB;TopdownL3;tma_L3_group;tma_core_bound_group",
1947d38ef20SIan Rogers        "MetricName": "tma_divider",
195*307cf0ccSIan Rogers        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
19611e644ebSIan Rogers        "PublicDescription": "This metric represents fraction of cycles where the Divider unit was active. Divide and square root instructions are performed by the Divider unit and can take considerably longer latency than integer or Floating Point addition; subtraction; or multiplication. Sample with: ARITH.DIV_ACTIVE",
1977d38ef20SIan Rogers        "ScaleUnit": "100%"
1987d38ef20SIan Rogers    },
1997d38ef20SIan Rogers    {
2007d38ef20SIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
2017d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
2027d124303SIan Rogers        "MetricExpr": "(1 - MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS)) * CYCLE_ACTIVITY.STALLS_L2_MISS / tma_info_thread_clks",
2037d38ef20SIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
2047d38ef20SIan Rogers        "MetricName": "tma_dram_bound",
205*307cf0ccSIan Rogers        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
20611e644ebSIan Rogers        "PublicDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads. Better caching can improve the latency and increase performance. Sample with: MEM_LOAD_RETIRED.L3_MISS",
2077d38ef20SIan Rogers        "ScaleUnit": "100%"
2087d38ef20SIan Rogers    },
2097d38ef20SIan Rogers    {
2107d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
2117d124303SIan Rogers        "MetricExpr": "(IDQ.ALL_DSB_CYCLES_ANY_UOPS - IDQ.ALL_DSB_CYCLES_4_UOPS) / tma_info_core_core_clks / 2",
2127d38ef20SIan Rogers        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
2137d38ef20SIan Rogers        "MetricName": "tma_dsb",
214*307cf0ccSIan Rogers        "MetricThreshold": "tma_dsb > 0.15 & tma_fetch_bandwidth > 0.2",
2157d38ef20SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline.  For example; inefficient utilization of the DSB cache structure or bank conflict when reading from it; are categorized here.",
2167d38ef20SIan Rogers        "ScaleUnit": "100%"
2177d38ef20SIan Rogers    },
2187d38ef20SIan Rogers    {
2197d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
2207d124303SIan Rogers        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_thread_clks",
2217d38ef20SIan Rogers        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
2227d38ef20SIan Rogers        "MetricName": "tma_dsb_switches",
223*307cf0ccSIan Rogers        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
2247d124303SIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines. The DSB (decoded i-cache) is a Uop Cache where the front-end directly delivers Uops (micro operations) avoiding heavy x86 decoding. The DSB pipeline has shorter latency and delivered higher bandwidth than the MITE (legacy instruction decode pipeline). Switching between the two pipelines can cause penalties hence this metric measures the exposed penalty. Sample with: FRONTEND_RETIRED.DSB_MISS_PS. Related metrics: tma_fetch_bandwidth, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp",
2257d38ef20SIan Rogers        "ScaleUnit": "100%"
2267d38ef20SIan Rogers    },
2277d38ef20SIan Rogers    {
2287d38ef20SIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
2297d124303SIan Rogers        "MetricExpr": "(8 * DTLB_LOAD_MISSES.STLB_HIT + cpu@DTLB_LOAD_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * DTLB_LOAD_MISSES.WALK_COMPLETED) / tma_info_thread_clks",
2306a8ec0b6SIan Rogers        "MetricGroup": "BvMT;MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
2317d38ef20SIan Rogers        "MetricName": "tma_dtlb_load",
232*307cf0ccSIan Rogers        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
2337d38ef20SIan Rogers        "PublicDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses. TLBs (Translation Look-aside Buffers) are processor caches for recently used entries out of the Page Tables that are used to map virtual- to physical-addresses by the operating system. This metric approximates the potential delay of demand loads missing the first-level data TLB (assuming worst case scenario with back to back misses to different pages). This includes hitting in the second-level TLB (STLB) as well as performing a hardware page walk on an STLB miss. Sample with: MEM_INST_RETIRED.STLB_MISS_LOADS_PS. Related metrics: tma_dtlb_store",
2347d38ef20SIan Rogers        "ScaleUnit": "100%"
2357d38ef20SIan Rogers    },
2367d38ef20SIan Rogers    {
2377d38ef20SIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
2387d124303SIan Rogers        "MetricExpr": "(8 * DTLB_STORE_MISSES.STLB_HIT + cpu@DTLB_STORE_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * DTLB_STORE_MISSES.WALK_COMPLETED) / tma_info_thread_clks",
2396a8ec0b6SIan Rogers        "MetricGroup": "BvMT;MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
2407d38ef20SIan Rogers        "MetricName": "tma_dtlb_store",
241*307cf0ccSIan Rogers        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
2427d38ef20SIan Rogers        "PublicDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses.  As with ordinary data caching; focus on improving data locality and reducing working-set size to reduce DTLB overhead.  Additionally; consider using profile-guided optimization (PGO) to collocate frequently-used data on the same page.  Try using larger page sizes for large amounts of frequently-used data. Sample with: MEM_INST_RETIRED.STLB_MISS_STORES_PS. Related metrics: tma_dtlb_load",
2437d38ef20SIan Rogers        "ScaleUnit": "100%"
2447d38ef20SIan Rogers    },
2457d38ef20SIan Rogers    {
2467d38ef20SIan Rogers        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
2477d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
2487d124303SIan Rogers        "MetricExpr": "tma_info_memory_load_miss_real_latency * cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@ / tma_info_thread_clks",
24911e644ebSIan Rogers        "MetricGroup": "BvMB;MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
2507d38ef20SIan Rogers        "MetricName": "tma_fb_full",
251*307cf0ccSIan Rogers        "MetricThreshold": "tma_fb_full > 0.3",
2527d124303SIan Rogers        "PublicDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed. The higher the metric value; the deeper the memory hierarchy level the misses are satisfied from (metric values >1 are valid). Often it hints on approaching bandwidth limits (to L2 cache; L3 cache or external memory). Related metrics: tma_info_system_dram_bw_use, tma_mem_bandwidth, tma_sq_full, tma_store_latency, tma_streaming_stores",
2537d38ef20SIan Rogers        "ScaleUnit": "100%"
2547d38ef20SIan Rogers    },
2557d38ef20SIan Rogers    {
2567d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
2577d38ef20SIan Rogers        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
2587d38ef20SIan Rogers        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
2597d38ef20SIan Rogers        "MetricName": "tma_fetch_bandwidth",
260*307cf0ccSIan Rogers        "MetricThreshold": "tma_fetch_bandwidth > 0.2",
261ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
26211e644ebSIan Rogers        "PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues.  For example; inefficiencies at the instruction decoders; or restrictions for caching in the DSB (decoded uops cache) are categorized under Fetch Bandwidth. In such cases; the Frontend typically delivers suboptimal amount of uops to the Backend. Sample with: FRONTEND_RETIRED.LATENCY_GE_2_BUBBLES_GE_1;FRONTEND_RETIRED.LATENCY_GE_1;FRONTEND_RETIRED.LATENCY_GE_2. Related metrics: tma_dsb_switches, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp",
2637d38ef20SIan Rogers        "ScaleUnit": "100%"
2647d38ef20SIan Rogers    },
2657d38ef20SIan Rogers    {
2667d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
2677d124303SIan Rogers        "MetricExpr": "4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / tma_info_thread_slots",
2687d38ef20SIan Rogers        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
2697d38ef20SIan Rogers        "MetricName": "tma_fetch_latency",
270*307cf0ccSIan Rogers        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
271ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
2727d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues.  For example; instruction-cache misses; iTLB misses or fetch stalls after a branch misprediction are categorized under Frontend Latency. In such cases; the Frontend eventually delivers no uops for some period. Sample with: FRONTEND_RETIRED.LATENCY_GE_16_PS;FRONTEND_RETIRED.LATENCY_GE_8_PS",
2737d38ef20SIan Rogers        "ScaleUnit": "100%"
2747d38ef20SIan Rogers    },
2757d38ef20SIan Rogers    {
2767d38ef20SIan Rogers        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
2777d38ef20SIan Rogers        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
2787d38ef20SIan Rogers        "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group",
2797d38ef20SIan Rogers        "MetricName": "tma_fp_arith",
280*307cf0ccSIan Rogers        "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6",
2817d38ef20SIan Rogers        "PublicDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired). Note this metric's value may exceed its parent due to use of \"Uops\" CountDomain and FMA double-counting.",
2827d38ef20SIan Rogers        "ScaleUnit": "100%"
2837d38ef20SIan Rogers    },
2847d38ef20SIan Rogers    {
2857d38ef20SIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
2866a8ec0b6SIan Rogers        "MetricExpr": "FP_ARITH_INST_RETIRED.SCALAR / UOPS_RETIRED.RETIRE_SLOTS",
2877d38ef20SIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
2887d38ef20SIan Rogers        "MetricName": "tma_fp_scalar",
289*307cf0ccSIan Rogers        "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
2907d38ef20SIan Rogers        "PublicDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired. May overcount due to FMA double counting. Related metrics: tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
2917d38ef20SIan Rogers        "ScaleUnit": "100%"
2927d38ef20SIan Rogers    },
2937d38ef20SIan Rogers    {
2947d38ef20SIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
2956a8ec0b6SIan Rogers        "MetricExpr": "FP_ARITH_INST_RETIRED.VECTOR / UOPS_RETIRED.RETIRE_SLOTS",
2967d38ef20SIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
2977d38ef20SIan Rogers        "MetricName": "tma_fp_vector",
298*307cf0ccSIan Rogers        "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
2997d38ef20SIan Rogers        "PublicDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
3007d38ef20SIan Rogers        "ScaleUnit": "100%"
3017d38ef20SIan Rogers    },
3027d38ef20SIan Rogers    {
3037d38ef20SIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors",
3047d38ef20SIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
3057d38ef20SIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
3067d38ef20SIan Rogers        "MetricName": "tma_fp_vector_128b",
307*307cf0ccSIan Rogers        "MetricThreshold": "tma_fp_vector_128b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
30811e644ebSIan Rogers        "PublicDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors. May overcount due to FMA double counting prior to LNL. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
3097d38ef20SIan Rogers        "ScaleUnit": "100%"
3107d38ef20SIan Rogers    },
3117d38ef20SIan Rogers    {
3127d38ef20SIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors",
3137d38ef20SIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
3147d38ef20SIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
3157d38ef20SIan Rogers        "MetricName": "tma_fp_vector_256b",
316*307cf0ccSIan Rogers        "MetricThreshold": "tma_fp_vector_256b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
31711e644ebSIan Rogers        "PublicDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors. May overcount due to FMA double counting prior to LNL. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
3187d38ef20SIan Rogers        "ScaleUnit": "100%"
3197d38ef20SIan Rogers    },
3207d38ef20SIan Rogers    {
3217d38ef20SIan Rogers        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
3227d124303SIan Rogers        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_thread_slots",
3236a8ec0b6SIan Rogers        "MetricGroup": "BvFB;BvIO;PGO;TmaL1;TopdownL1;tma_L1_group",
3247d38ef20SIan Rogers        "MetricName": "tma_frontend_bound",
325*307cf0ccSIan Rogers        "MetricThreshold": "tma_frontend_bound > 0.15",
326ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
3277d38ef20SIan Rogers        "PublicDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of the processor core responsible to fetch operations that are executed later on by the Backend part. Within the Frontend; a branch predictor predicts the next address to fetch; cache-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into micro-operations (uops). Ideally the Frontend can issue Pipeline_Width uops every cycle to the Backend. Frontend Bound denotes unutilized issue-slots when there is no Backend stall; i.e. bubbles where Frontend delivered no uops while Backend could have accepted them. For example; stalls due to instruction-cache misses would be categorized under Frontend Bound. Sample with: FRONTEND_RETIRED.LATENCY_GE_4_PS",
3287d38ef20SIan Rogers        "ScaleUnit": "100%"
3297d38ef20SIan Rogers    },
3307d38ef20SIan Rogers    {
3317d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring heavy-weight operations -- instructions that require two or more uops or micro-coded sequences",
3327d38ef20SIan Rogers        "MetricExpr": "tma_microcode_sequencer",
3337d38ef20SIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
3347d38ef20SIan Rogers        "MetricName": "tma_heavy_operations",
335*307cf0ccSIan Rogers        "MetricThreshold": "tma_heavy_operations > 0.1",
336ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
33711e644ebSIan Rogers        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring heavy-weight operations -- instructions that require two or more uops or micro-coded sequences. This highly-correlates with the uop length of these instructions/sequences.([ICL+] Note this may overcount due to approximation using indirect events; [ADL+]). Sample with: UOPS_RETIRED.HEAVY",
3387d38ef20SIan Rogers        "ScaleUnit": "100%"
3397d38ef20SIan Rogers    },
3407d38ef20SIan Rogers    {
3417d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses",
3427d124303SIan Rogers        "MetricExpr": "ICACHE.IFDATA_STALL / tma_info_thread_clks",
3436a8ec0b6SIan Rogers        "MetricGroup": "BigFootprint;BvBC;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
3447d38ef20SIan Rogers        "MetricName": "tma_icache_misses",
345*307cf0ccSIan Rogers        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
3467d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses. Sample with: FRONTEND_RETIRED.L2_MISS_PS;FRONTEND_RETIRED.L1I_MISS_PS",
3477d38ef20SIan Rogers        "ScaleUnit": "100%"
3487d38ef20SIan Rogers    },
3497d38ef20SIan Rogers    {
35011e644ebSIan Rogers        "BriefDescription": "Instructions per retired Mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
3514018680dSIan Rogers        "MetricExpr": "tma_info_inst_mix_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * BR_MISP_EXEC.INDIRECT)",
3527d124303SIan Rogers        "MetricGroup": "Bad;BrMispredicts",
3537d124303SIan Rogers        "MetricName": "tma_info_bad_spec_ipmisp_indirect",
354*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_bad_spec_ipmisp_indirect < 1e3"
3557d124303SIan Rogers    },
3567d124303SIan Rogers    {
3577d124303SIan Rogers        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
3587d124303SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
3597d124303SIan Rogers        "MetricGroup": "Bad;BadSpec;BrMispredicts",
3607d124303SIan Rogers        "MetricName": "tma_info_bad_spec_ipmispredict",
361*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_bad_spec_ipmispredict < 200"
3627d38ef20SIan Rogers    },
3637d38ef20SIan Rogers    {
3647d38ef20SIan Rogers        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
3657d124303SIan Rogers        "MetricExpr": "(CPU_CLK_UNHALTED.THREAD / 2 * (1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK) if #core_wide < 1 else (CPU_CLK_UNHALTED.THREAD_ANY / 2 if #SMT_on else tma_info_thread_clks))",
3667d38ef20SIan Rogers        "MetricGroup": "SMT",
3677d124303SIan Rogers        "MetricName": "tma_info_core_core_clks"
3687d38ef20SIan Rogers    },
3697d38ef20SIan Rogers    {
3707d38ef20SIan Rogers        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
3717d124303SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_core_clks",
3727d38ef20SIan Rogers        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
3737d124303SIan Rogers        "MetricName": "tma_info_core_coreipc"
3747d38ef20SIan Rogers    },
3757d38ef20SIan Rogers    {
3767d38ef20SIan Rogers        "BriefDescription": "Floating Point Operations Per Cycle",
3774018680dSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * FP_ARITH_INST_RETIRED.4_FLOPS + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / tma_info_core_core_clks",
3787d38ef20SIan Rogers        "MetricGroup": "Flops;Ret",
3797d124303SIan Rogers        "MetricName": "tma_info_core_flopc"
3807d38ef20SIan Rogers    },
3817d38ef20SIan Rogers    {
3827d38ef20SIan Rogers        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
3836a8ec0b6SIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR + FP_ARITH_INST_RETIRED.VECTOR) / (2 * tma_info_core_core_clks)",
3847d38ef20SIan Rogers        "MetricGroup": "Cor;Flops;HPC",
3857d124303SIan Rogers        "MetricName": "tma_info_core_fp_arith_utilization",
3867d38ef20SIan Rogers        "PublicDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width). Values > 1 are possible due to ([BDW+] Fused-Multiply Add (FMA) counting - common; [ADL+] use all of ADD/MUL/FMA in Scalar or 128/256-bit vectors - less common)."
3877d38ef20SIan Rogers    },
3887d38ef20SIan Rogers    {
3894018680dSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per thread (logical-processor)",
3904018680dSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
3917d38ef20SIan Rogers        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
3927d124303SIan Rogers        "MetricName": "tma_info_core_ilp"
3937d124303SIan Rogers    },
3947d124303SIan Rogers    {
3957d124303SIan Rogers        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
3967d124303SIan Rogers        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
3977d124303SIan Rogers        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
3987d124303SIan Rogers        "MetricName": "tma_info_frontend_dsb_coverage",
399*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_frontend_dsb_coverage < 0.7 & tma_info_thread_ipc / 4 > 0.35",
4007d124303SIan Rogers        "PublicDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache). Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_inst_mix_iptb, tma_lcp"
4017d124303SIan Rogers    },
4027d124303SIan Rogers    {
4037d124303SIan Rogers        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
4047d124303SIan Rogers        "MetricExpr": "tma_info_inst_mix_instructions / BACLEARS.ANY",
4057d124303SIan Rogers        "MetricGroup": "Fed",
4067d124303SIan Rogers        "MetricName": "tma_info_frontend_ipunknown_branch"
4077d124303SIan Rogers    },
4087d124303SIan Rogers    {
40911e644ebSIan Rogers        "BriefDescription": "Taken Branches retired Per Cycle",
41011e644ebSIan Rogers        "MetricExpr": "BR_INST_RETIRED.NEAR_TAKEN / tma_info_thread_clks",
41111e644ebSIan Rogers        "MetricGroup": "Branches;FetchBW",
41211e644ebSIan Rogers        "MetricName": "tma_info_frontend_tbpc"
41311e644ebSIan Rogers    },
41411e644ebSIan Rogers    {
4157d124303SIan Rogers        "BriefDescription": "Branch instructions per taken branch.",
4167d124303SIan Rogers        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
4177d124303SIan Rogers        "MetricGroup": "Branches;Fed;PGO",
4187d124303SIan Rogers        "MetricName": "tma_info_inst_mix_bptkbranch"
4197d38ef20SIan Rogers    },
4207d38ef20SIan Rogers    {
4217d38ef20SIan Rogers        "BriefDescription": "Total number of retired Instructions",
4227d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY",
4237d38ef20SIan Rogers        "MetricGroup": "Summary;TmaL1;tma_L1_group",
4247d124303SIan Rogers        "MetricName": "tma_info_inst_mix_instructions",
4257d38ef20SIan Rogers        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
4267d38ef20SIan Rogers    },
4277d38ef20SIan Rogers    {
4287d38ef20SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
4296a8ec0b6SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR + FP_ARITH_INST_RETIRED.VECTOR)",
4307d38ef20SIan Rogers        "MetricGroup": "Flops;InsType",
4317d124303SIan Rogers        "MetricName": "tma_info_inst_mix_iparith",
432*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith < 10",
4334018680dSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting. Approximated prior to BDW."
4347d38ef20SIan Rogers    },
4357d38ef20SIan Rogers    {
4367d38ef20SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
4377d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE)",
4387d38ef20SIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
4397d124303SIan Rogers        "MetricName": "tma_info_inst_mix_iparith_avx128",
440*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith_avx128 < 10",
4414018680dSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting."
4427d38ef20SIan Rogers    },
4437d38ef20SIan Rogers    {
4447d38ef20SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
4457d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
4467d38ef20SIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
4477d124303SIan Rogers        "MetricName": "tma_info_inst_mix_iparith_avx256",
448*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith_avx256 < 10",
4494018680dSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting."
4507d38ef20SIan Rogers    },
4517d38ef20SIan Rogers    {
4527d38ef20SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
4537d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
4547d38ef20SIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
4557d124303SIan Rogers        "MetricName": "tma_info_inst_mix_iparith_scalar_dp",
456*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith_scalar_dp < 10",
4574018680dSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting."
4587d38ef20SIan Rogers    },
4597d38ef20SIan Rogers    {
4607d38ef20SIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
4617d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
4627d38ef20SIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
4637d124303SIan Rogers        "MetricName": "tma_info_inst_mix_iparith_scalar_sp",
464*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith_scalar_sp < 10",
4654018680dSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). Values < 1 are possible due to intentional FMA double counting."
4667d38ef20SIan Rogers    },
4677d38ef20SIan Rogers    {
4687d38ef20SIan Rogers        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
4697d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
4707d38ef20SIan Rogers        "MetricGroup": "Branches;Fed;InsType",
4717d124303SIan Rogers        "MetricName": "tma_info_inst_mix_ipbranch",
472*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipbranch < 8"
4737d38ef20SIan Rogers    },
4747d38ef20SIan Rogers    {
4757d38ef20SIan Rogers        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
4767d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
4777d38ef20SIan Rogers        "MetricGroup": "Branches;Fed;PGO",
4787d124303SIan Rogers        "MetricName": "tma_info_inst_mix_ipcall",
479*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipcall < 200"
4807d38ef20SIan Rogers    },
4817d38ef20SIan Rogers    {
4827d38ef20SIan Rogers        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
4834018680dSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * FP_ARITH_INST_RETIRED.4_FLOPS + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
4847d38ef20SIan Rogers        "MetricGroup": "Flops;InsType",
4857d124303SIan Rogers        "MetricName": "tma_info_inst_mix_ipflop",
486*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipflop < 10"
4877d38ef20SIan Rogers    },
4887d38ef20SIan Rogers    {
4897d38ef20SIan Rogers        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
4907d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
4917d38ef20SIan Rogers        "MetricGroup": "InsType",
4927d124303SIan Rogers        "MetricName": "tma_info_inst_mix_ipload",
493*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipload < 3"
4947d38ef20SIan Rogers    },
4957d38ef20SIan Rogers    {
4967d38ef20SIan Rogers        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
4977d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
4987d38ef20SIan Rogers        "MetricGroup": "InsType",
4997d124303SIan Rogers        "MetricName": "tma_info_inst_mix_ipstore",
500*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipstore < 8"
5017d38ef20SIan Rogers    },
5027d38ef20SIan Rogers    {
5036a8ec0b6SIan Rogers        "BriefDescription": "Instructions per taken branch",
5047d38ef20SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
5057d38ef20SIan Rogers        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
5067d124303SIan Rogers        "MetricName": "tma_info_inst_mix_iptb",
507*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_inst_mix_iptb < 9",
5086a8ec0b6SIan Rogers        "PublicDescription": "Instructions per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_frontend_dsb_coverage, tma_lcp"
5097d38ef20SIan Rogers    },
5107d38ef20SIan Rogers    {
5117d38ef20SIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
5124018680dSIan Rogers        "MetricExpr": "tma_info_memory_l1d_cache_fill_bw",
5137d38ef20SIan Rogers        "MetricGroup": "Mem;MemoryBW",
5144018680dSIan Rogers        "MetricName": "tma_info_memory_core_l1d_cache_fill_bw_2t"
5157d38ef20SIan Rogers    },
5167d38ef20SIan Rogers    {
5177d38ef20SIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
5184018680dSIan Rogers        "MetricExpr": "tma_info_memory_l2_cache_fill_bw",
5197d38ef20SIan Rogers        "MetricGroup": "Mem;MemoryBW",
5204018680dSIan Rogers        "MetricName": "tma_info_memory_core_l2_cache_fill_bw_2t"
5217d38ef20SIan Rogers    },
5227d38ef20SIan Rogers    {
5237d38ef20SIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
5244018680dSIan Rogers        "MetricExpr": "tma_info_memory_l3_cache_fill_bw",
5257d38ef20SIan Rogers        "MetricGroup": "Mem;MemoryBW",
5264018680dSIan Rogers        "MetricName": "tma_info_memory_core_l3_cache_fill_bw_2t"
5274018680dSIan Rogers    },
5284018680dSIan Rogers    {
5296a8ec0b6SIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
53011e644ebSIan Rogers        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / tma_info_system_time",
5314018680dSIan Rogers        "MetricGroup": "Mem;MemoryBW",
5324018680dSIan Rogers        "MetricName": "tma_info_memory_l1d_cache_fill_bw"
5337d38ef20SIan Rogers    },
5347d38ef20SIan Rogers    {
5357d124303SIan Rogers        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
5367d124303SIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L1_MISS / INST_RETIRED.ANY",
5374018680dSIan Rogers        "MetricGroup": "CacheHits;Mem",
5387d124303SIan Rogers        "MetricName": "tma_info_memory_l1mpki"
5397d124303SIan Rogers    },
5407d124303SIan Rogers    {
5416a8ec0b6SIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
54211e644ebSIan Rogers        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / tma_info_system_time",
5434018680dSIan Rogers        "MetricGroup": "Mem;MemoryBW",
5444018680dSIan Rogers        "MetricName": "tma_info_memory_l2_cache_fill_bw"
5454018680dSIan Rogers    },
5464018680dSIan Rogers    {
5477d124303SIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
5487d124303SIan Rogers        "MetricExpr": "1e3 * (L2_RQSTS.REFERENCES - L2_RQSTS.MISS) / INST_RETIRED.ANY",
5494018680dSIan Rogers        "MetricGroup": "CacheHits;Mem",
5507d124303SIan Rogers        "MetricName": "tma_info_memory_l2hpki_all"
5517d124303SIan Rogers    },
5527d124303SIan Rogers    {
5537d124303SIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
5547d124303SIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
5554018680dSIan Rogers        "MetricGroup": "CacheHits;Mem",
5567d124303SIan Rogers        "MetricName": "tma_info_memory_l2hpki_load"
5577d124303SIan Rogers    },
5587d124303SIan Rogers    {
5597d124303SIan Rogers        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
5607d124303SIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L2_MISS / INST_RETIRED.ANY",
5614018680dSIan Rogers        "MetricGroup": "Backend;CacheHits;Mem",
5627d124303SIan Rogers        "MetricName": "tma_info_memory_l2mpki"
5637d124303SIan Rogers    },
5647d124303SIan Rogers    {
5657d124303SIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
5667d124303SIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.MISS / INST_RETIRED.ANY",
5674018680dSIan Rogers        "MetricGroup": "CacheHits;Mem;Offcore",
5687d124303SIan Rogers        "MetricName": "tma_info_memory_l2mpki_all"
5697d124303SIan Rogers    },
5707d124303SIan Rogers    {
5717d124303SIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
5727d124303SIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
5734018680dSIan Rogers        "MetricGroup": "CacheHits;Mem",
5747d124303SIan Rogers        "MetricName": "tma_info_memory_l2mpki_load"
5757d38ef20SIan Rogers    },
5767d38ef20SIan Rogers    {
5776a8ec0b6SIan Rogers        "BriefDescription": "Offcore requests (L2 cache miss) per kilo instruction for demand RFOs",
5786a8ec0b6SIan Rogers        "MetricExpr": "1e3 * OFFCORE_REQUESTS.DEMAND_RFO / INST_RETIRED.ANY",
5796a8ec0b6SIan Rogers        "MetricGroup": "CacheMisses;Offcore",
5806a8ec0b6SIan Rogers        "MetricName": "tma_info_memory_l2mpki_rfo"
5816a8ec0b6SIan Rogers    },
5826a8ec0b6SIan Rogers    {
5836a8ec0b6SIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
58411e644ebSIan Rogers        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / tma_info_system_time",
5854018680dSIan Rogers        "MetricGroup": "Mem;MemoryBW",
5864018680dSIan Rogers        "MetricName": "tma_info_memory_l3_cache_fill_bw"
5874018680dSIan Rogers    },
5884018680dSIan Rogers    {
5897d38ef20SIan Rogers        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
5907d38ef20SIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L3_MISS / INST_RETIRED.ANY",
5914018680dSIan Rogers        "MetricGroup": "Mem",
5927d124303SIan Rogers        "MetricName": "tma_info_memory_l3mpki"
5937d38ef20SIan Rogers    },
5947d38ef20SIan Rogers    {
5954018680dSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss data reads",
5964018680dSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
5974018680dSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
5984018680dSIan Rogers        "MetricName": "tma_info_memory_latency_data_l2_mlp"
5994018680dSIan Rogers    },
6004018680dSIan Rogers    {
6014018680dSIan Rogers        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
6024018680dSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
60311e644ebSIan Rogers        "MetricGroup": "LockCont;Memory_Lat;Offcore",
6044018680dSIan Rogers        "MetricName": "tma_info_memory_latency_load_l2_miss_latency"
6054018680dSIan Rogers    },
6064018680dSIan Rogers    {
6074018680dSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
6084018680dSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
6094018680dSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
6104018680dSIan Rogers        "MetricName": "tma_info_memory_latency_load_l2_mlp"
6114018680dSIan Rogers    },
6124018680dSIan Rogers    {
6137d38ef20SIan Rogers        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
6147d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
6157d38ef20SIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_UOPS_RETIRED.L1_MISS + MEM_LOAD_UOPS_RETIRED.HIT_LFB)",
6167d38ef20SIan Rogers        "MetricGroup": "Mem;MemoryBound;MemoryLat",
6177d124303SIan Rogers        "MetricName": "tma_info_memory_load_miss_real_latency"
6187d38ef20SIan Rogers    },
6197d38ef20SIan Rogers    {
6207d38ef20SIan Rogers        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
6217d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
6227d38ef20SIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
6237d38ef20SIan Rogers        "MetricGroup": "Mem;MemoryBW;MemoryBound",
6247d124303SIan Rogers        "MetricName": "tma_info_memory_mlp",
6257d38ef20SIan Rogers        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
6267d38ef20SIan Rogers    },
6277d38ef20SIan Rogers    {
6287d38ef20SIan Rogers        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
6297d124303SIan Rogers        "MetricExpr": "(cpu@ITLB_MISSES.WALK_DURATION\\,cmask\\=1@ + cpu@DTLB_LOAD_MISSES.WALK_DURATION\\,cmask\\=1@ + cpu@DTLB_STORE_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * (DTLB_STORE_MISSES.WALK_COMPLETED + DTLB_LOAD_MISSES.WALK_COMPLETED + ITLB_MISSES.WALK_COMPLETED)) / tma_info_core_core_clks",
6307d38ef20SIan Rogers        "MetricGroup": "Mem;MemoryTLB",
6317d124303SIan Rogers        "MetricName": "tma_info_memory_tlb_page_walks_utilization",
632*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_memory_tlb_page_walks_utilization > 0.5"
6337d124303SIan Rogers    },
6347d124303SIan Rogers    {
63511e644ebSIan Rogers        "BriefDescription": "",
6364018680dSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC)",
6377d124303SIan Rogers        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
6387d124303SIan Rogers        "MetricName": "tma_info_pipeline_execute"
6397d38ef20SIan Rogers    },
6407d38ef20SIan Rogers    {
6417d38ef20SIan Rogers        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
6427d38ef20SIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
6437d38ef20SIan Rogers        "MetricGroup": "Pipeline;Ret",
6447d124303SIan Rogers        "MetricName": "tma_info_pipeline_retire"
6457d38ef20SIan Rogers    },
6467d38ef20SIan Rogers    {
6474018680dSIan Rogers        "BriefDescription": "Measured Average Core Frequency for unhalted processors [GHz]",
64811e644ebSIan Rogers        "MetricExpr": "tma_info_system_turbo_utilization * TSC / 1e9 / tma_info_system_time",
6497d124303SIan Rogers        "MetricGroup": "Power;Summary",
6504018680dSIan Rogers        "MetricName": "tma_info_system_core_frequency"
6517d124303SIan Rogers    },
6527d124303SIan Rogers    {
6534018680dSIan Rogers        "BriefDescription": "Average CPU Utilization (percentage)",
6546a8ec0b6SIan Rogers        "MetricExpr": "tma_info_system_cpus_utilized / #num_cpus_online",
6557d124303SIan Rogers        "MetricGroup": "HPC;Summary",
6567d124303SIan Rogers        "MetricName": "tma_info_system_cpu_utilization"
6577d124303SIan Rogers    },
6587d124303SIan Rogers    {
6594018680dSIan Rogers        "BriefDescription": "Average number of utilized CPUs",
6606a8ec0b6SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
6614018680dSIan Rogers        "MetricGroup": "Summary",
6624018680dSIan Rogers        "MetricName": "tma_info_system_cpus_utilized"
6634018680dSIan Rogers    },
6644018680dSIan Rogers    {
6657d124303SIan Rogers        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
66611e644ebSIan Rogers        "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / tma_info_system_time",
6674018680dSIan Rogers        "MetricGroup": "HPC;MemOffcore;MemoryBW;SoC;tma_issueBW",
6687d124303SIan Rogers        "MetricName": "tma_info_system_dram_bw_use",
6697d124303SIan Rogers        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"
6707d124303SIan Rogers    },
6717d124303SIan Rogers    {
6727d124303SIan Rogers        "BriefDescription": "Giga Floating Point Operations Per Second",
67311e644ebSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * FP_ARITH_INST_RETIRED.4_FLOPS + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / 1e9 / tma_info_system_time",
6747d124303SIan Rogers        "MetricGroup": "Cor;Flops;HPC",
6757d124303SIan Rogers        "MetricName": "tma_info_system_gflops",
6764018680dSIan Rogers        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width"
6777d124303SIan Rogers    },
6787d124303SIan Rogers    {
6797d124303SIan Rogers        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
6807d124303SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
6817d124303SIan Rogers        "MetricGroup": "Branches;OS",
6827d124303SIan Rogers        "MetricName": "tma_info_system_ipfarbranch",
683*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_system_ipfarbranch < 1e6"
6847d124303SIan Rogers    },
6857d124303SIan Rogers    {
6867d124303SIan Rogers        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
6877d124303SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
6887d124303SIan Rogers        "MetricGroup": "OS",
6897d124303SIan Rogers        "MetricName": "tma_info_system_kernel_cpi"
6907d124303SIan Rogers    },
6917d124303SIan Rogers    {
6927d124303SIan Rogers        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
6937d124303SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
6947d124303SIan Rogers        "MetricGroup": "OS",
6957d124303SIan Rogers        "MetricName": "tma_info_system_kernel_utilization",
696*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_system_kernel_utilization > 0.05"
69711e644ebSIan Rogers    },
69811e644ebSIan Rogers    {
69911e644ebSIan Rogers        "BriefDescription": "PerfMon Event Multiplexing accuracy indicator",
70011e644ebSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P / CPU_CLK_UNHALTED.THREAD",
70111e644ebSIan Rogers        "MetricGroup": "Summary",
70211e644ebSIan Rogers        "MetricName": "tma_info_system_mux",
703*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_system_mux > 1.1 | tma_info_system_mux < 0.9"
70411e644ebSIan Rogers    },
70511e644ebSIan Rogers    {
70611e644ebSIan Rogers        "BriefDescription": "Total package Power in Watts",
70711e644ebSIan Rogers        "MetricExpr": "power@energy\\-pkg@ * 61 / (tma_info_system_time * 1e6)",
70811e644ebSIan Rogers        "MetricGroup": "Power;SoC",
70911e644ebSIan Rogers        "MetricName": "tma_info_system_power"
7107d38ef20SIan Rogers    },
7117d38ef20SIan Rogers    {
7127d38ef20SIan Rogers        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
7137d38ef20SIan Rogers        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
7147d38ef20SIan Rogers        "MetricGroup": "SMT",
7157d124303SIan Rogers        "MetricName": "tma_info_system_smt_2t_utilization"
7167d38ef20SIan Rogers    },
7177d38ef20SIan Rogers    {
71819a214bfSIan Rogers        "BriefDescription": "Socket actual clocks when any core is active on that socket",
71919a214bfSIan Rogers        "MetricExpr": "cbox_0@event\\=0x0@",
72019a214bfSIan Rogers        "MetricGroup": "SoC",
72119a214bfSIan Rogers        "MetricName": "tma_info_system_socket_clks"
72219a214bfSIan Rogers    },
72319a214bfSIan Rogers    {
72411e644ebSIan Rogers        "BriefDescription": "Run duration time in seconds",
72511e644ebSIan Rogers        "MetricExpr": "duration_time",
72611e644ebSIan Rogers        "MetricGroup": "Summary",
72711e644ebSIan Rogers        "MetricName": "tma_info_system_time",
728*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_system_time < 1"
72911e644ebSIan Rogers    },
73011e644ebSIan Rogers    {
7317d38ef20SIan Rogers        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
7327d124303SIan Rogers        "MetricExpr": "tma_info_thread_clks / CPU_CLK_UNHALTED.REF_TSC",
7337d38ef20SIan Rogers        "MetricGroup": "Power",
7347d124303SIan Rogers        "MetricName": "tma_info_system_turbo_utilization"
7357d124303SIan Rogers    },
7367d124303SIan Rogers    {
7377d124303SIan Rogers        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
7387d124303SIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
7397d124303SIan Rogers        "MetricGroup": "Pipeline",
7407d124303SIan Rogers        "MetricName": "tma_info_thread_clks"
7417d124303SIan Rogers    },
7427d124303SIan Rogers    {
7437d124303SIan Rogers        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
7447d124303SIan Rogers        "MetricExpr": "1 / tma_info_thread_ipc",
7457d124303SIan Rogers        "MetricGroup": "Mem;Pipeline",
7467d124303SIan Rogers        "MetricName": "tma_info_thread_cpi"
7477d124303SIan Rogers    },
7487d124303SIan Rogers    {
7497d124303SIan Rogers        "BriefDescription": "The ratio of Executed- by Issued-Uops",
7507d124303SIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
7517d124303SIan Rogers        "MetricGroup": "Cor;Pipeline",
7527d124303SIan Rogers        "MetricName": "tma_info_thread_execute_per_issue",
7537d124303SIan Rogers        "PublicDescription": "The ratio of Executed- by Issued-Uops. Ratio > 1 suggests high rate of uop micro-fusions. Ratio < 1 suggest high rate of \"execute\" at rename stage."
7547d124303SIan Rogers    },
7557d124303SIan Rogers    {
7567d124303SIan Rogers        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
7577d124303SIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_thread_clks",
7587d124303SIan Rogers        "MetricGroup": "Ret;Summary",
7597d124303SIan Rogers        "MetricName": "tma_info_thread_ipc"
7607d124303SIan Rogers    },
7617d124303SIan Rogers    {
7627d124303SIan Rogers        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
7637d124303SIan Rogers        "MetricExpr": "4 * tma_info_core_core_clks",
7647d124303SIan Rogers        "MetricGroup": "TmaL1;tma_L1_group",
7657d124303SIan Rogers        "MetricName": "tma_info_thread_slots"
7667d38ef20SIan Rogers    },
7677d38ef20SIan Rogers    {
7687d38ef20SIan Rogers        "BriefDescription": "Uops Per Instruction",
7697d38ef20SIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
7707d38ef20SIan Rogers        "MetricGroup": "Pipeline;Ret;Retire",
7717d124303SIan Rogers        "MetricName": "tma_info_thread_uoppi",
772*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_thread_uoppi > 1.05"
7737d38ef20SIan Rogers    },
7747d38ef20SIan Rogers    {
7756a8ec0b6SIan Rogers        "BriefDescription": "Uops per taken branch",
7767d38ef20SIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
7777d38ef20SIan Rogers        "MetricGroup": "Branches;Fed;FetchBW",
7787d124303SIan Rogers        "MetricName": "tma_info_thread_uptb",
779*307cf0ccSIan Rogers        "MetricThreshold": "tma_info_thread_uptb < 6"
7807d38ef20SIan Rogers    },
7817d38ef20SIan Rogers    {
7827d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
7837d124303SIan Rogers        "MetricExpr": "(14 * ITLB_MISSES.STLB_HIT + cpu@ITLB_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * ITLB_MISSES.WALK_COMPLETED) / tma_info_thread_clks",
7846a8ec0b6SIan Rogers        "MetricGroup": "BigFootprint;BvBC;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
7857d38ef20SIan Rogers        "MetricName": "tma_itlb_misses",
786*307cf0ccSIan Rogers        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
7877d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: FRONTEND_RETIRED.STLB_MISS_PS;FRONTEND_RETIRED.ITLB_MISS_PS",
7887d38ef20SIan Rogers        "ScaleUnit": "100%"
7897d38ef20SIan Rogers    },
7907d38ef20SIan Rogers    {
79111e644ebSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 Data (L1D) cache",
7927d124303SIan Rogers        "MetricExpr": "max((CYCLE_ACTIVITY.STALLS_MEM_ANY - CYCLE_ACTIVITY.STALLS_L1D_MISS) / tma_info_thread_clks, 0)",
7934018680dSIan Rogers        "MetricGroup": "CacheHits;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
7947d38ef20SIan Rogers        "MetricName": "tma_l1_bound",
795*307cf0ccSIan Rogers        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
79611e644ebSIan Rogers        "PublicDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 Data (L1D) cache.  The L1D cache typically has the shortest latency.  However; in certain cases like loads blocked on older stores; a load might suffer due to high latency even though it is being satisfied by the L1D. Another example is loads who miss in the TLB. These cases are characterized by execution unit stalls; while some non-completed demand load lives in the machine without having that demand load missing the L1 cache. Sample with: MEM_LOAD_RETIRED.L1_HIT. Related metrics: tma_clears_resteers, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches, tma_ports_utilized_1",
7977d38ef20SIan Rogers        "ScaleUnit": "100%"
7987d38ef20SIan Rogers    },
7997d38ef20SIan Rogers    {
8007d38ef20SIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
8017d124303SIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_thread_clks",
8026a8ec0b6SIan Rogers        "MetricGroup": "BvML;CacheHits;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
8037d38ef20SIan Rogers        "MetricName": "tma_l2_bound",
804*307cf0ccSIan Rogers        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
80511e644ebSIan Rogers        "PublicDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads.  Avoiding cache misses (i.e. L1 misses/L2 hits) can improve the latency and increase performance. Sample with: MEM_LOAD_RETIRED.L2_HIT",
8067d38ef20SIan Rogers        "ScaleUnit": "100%"
8077d38ef20SIan Rogers    },
8087d38ef20SIan Rogers    {
8097d38ef20SIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
8107d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
8117d124303SIan Rogers        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS) * CYCLE_ACTIVITY.STALLS_L2_MISS / tma_info_thread_clks",
8124018680dSIan Rogers        "MetricGroup": "CacheHits;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
8137d38ef20SIan Rogers        "MetricName": "tma_l3_bound",
814*307cf0ccSIan Rogers        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
8157d38ef20SIan Rogers        "PublicDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core.  Avoiding cache misses (i.e. L2 misses/L3 hits) can improve the latency and increase performance. Sample with: MEM_LOAD_RETIRED.L3_HIT_PS",
8167d38ef20SIan Rogers        "ScaleUnit": "100%"
8177d38ef20SIan Rogers    },
8187d38ef20SIan Rogers    {
8194018680dSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
8207d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
8217d124303SIan Rogers        "MetricExpr": "29 * (MEM_LOAD_UOPS_RETIRED.L3_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.L3_MISS))) / tma_info_thread_clks",
8226a8ec0b6SIan Rogers        "MetricGroup": "BvML;MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
8237d38ef20SIan Rogers        "MetricName": "tma_l3_hit_latency",
824*307cf0ccSIan Rogers        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
8254018680dSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited).  Avoiding private cache misses (i.e. L2 misses/L3 hits) will improve the latency; reduce contention with sibling physical cores and increase performance.  Note the value of this node may overlap with its siblings. Sample with: MEM_LOAD_RETIRED.L3_HIT_PS. Related metrics: tma_mem_latency",
8267d38ef20SIan Rogers        "ScaleUnit": "100%"
8277d38ef20SIan Rogers    },
8287d38ef20SIan Rogers    {
8297d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
8307d124303SIan Rogers        "MetricExpr": "ILD_STALL.LCP / tma_info_thread_clks",
8317d38ef20SIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
8327d38ef20SIan Rogers        "MetricName": "tma_lcp",
833*307cf0ccSIan Rogers        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
8347d124303SIan Rogers        "PublicDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs). Using proper compiler flags or Intel Compiler by default will certainly avoid this. #Link: Optimization Guide about LCP BKMs. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_frontend_dsb_coverage, tma_info_inst_mix_iptb",
8357d38ef20SIan Rogers        "ScaleUnit": "100%"
8367d38ef20SIan Rogers    },
8377d38ef20SIan Rogers    {
8387d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring light-weight operations -- instructions that require no more than one uop (micro-operation)",
8397d38ef20SIan Rogers        "MetricExpr": "tma_retiring - tma_heavy_operations",
8407d38ef20SIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
8417d38ef20SIan Rogers        "MetricName": "tma_light_operations",
842*307cf0ccSIan Rogers        "MetricThreshold": "tma_light_operations > 0.6",
843ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
8444018680dSIan Rogers        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring light-weight operations -- instructions that require no more than one uop (micro-operation). This correlates with total number of instructions used by the program. A uops-per-instruction (see UopPI metric) ratio of 1 or less should be expected for decently optimized code running on Intel Core/Xeon products. While this often indicates efficient X86 instructions were executed; high value does not necessarily mean better performance cannot be achieved. ([ICL+] Note this may undercount due to approximation using indirect events; [ADL+] .). Sample with: INST_RETIRED.PREC_DIST",
8457d38ef20SIan Rogers        "ScaleUnit": "100%"
8467d38ef20SIan Rogers    },
8477d38ef20SIan Rogers    {
8487d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
8497d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
8507d124303SIan Rogers        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_2 + UOPS_DISPATCHED_PORT.PORT_3 + UOPS_DISPATCHED_PORT.PORT_7 - UOPS_DISPATCHED_PORT.PORT_4) / (2 * tma_info_core_core_clks)",
8517d38ef20SIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
8527d38ef20SIan Rogers        "MetricName": "tma_load_op_utilization",
853*307cf0ccSIan Rogers        "MetricThreshold": "tma_load_op_utilization > 0.6",
8547d38ef20SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations. Sample with: UOPS_DISPATCHED.PORT_2_3_10",
8557d38ef20SIan Rogers        "ScaleUnit": "100%"
8567d38ef20SIan Rogers    },
8577d38ef20SIan Rogers    {
8587d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
8597d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
8607d124303SIan Rogers        "MetricExpr": "MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO) / tma_info_thread_clks",
86111e644ebSIan Rogers        "MetricGroup": "LockCont;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
8627d38ef20SIan Rogers        "MetricName": "tma_lock_latency",
863*307cf0ccSIan Rogers        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
8646a8ec0b6SIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations. Due to the microarchitecture handling of locks; they are classified as L1_Bound regardless of what memory source satisfied them. Sample with: MEM_INST_RETIRED.LOCK_LOADS. Related metrics: tma_store_latency",
8657d38ef20SIan Rogers        "ScaleUnit": "100%"
8667d38ef20SIan Rogers    },
8677d38ef20SIan Rogers    {
8687d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
8697d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
8707d38ef20SIan Rogers        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
8716a8ec0b6SIan Rogers        "MetricGroup": "BadSpec;BvMS;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
8727d38ef20SIan Rogers        "MetricName": "tma_machine_clears",
873*307cf0ccSIan Rogers        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
874ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
8757d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears.  These slots are either wasted by uops fetched prior to the clear; or stalls the out-of-order portion of the machine needs to recover its state after the clear. For example; this can happen due to memory ordering Nukes (e.g. Memory Disambiguation) or Self-Modifying-Code (SMC) nukes. Sample with: MACHINE_CLEARS.COUNT. Related metrics: tma_clears_resteers, tma_contested_accesses, tma_data_sharing, tma_false_sharing, tma_l1_bound, tma_microcode_sequencer, tma_ms_switches, tma_remote_cache",
8767d38ef20SIan Rogers        "ScaleUnit": "100%"
8777d38ef20SIan Rogers    },
8787d38ef20SIan Rogers    {
8794018680dSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory - DRAM ([SPR-HBM] and/or HBM)",
8807d124303SIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=4@) / tma_info_thread_clks",
88111e644ebSIan Rogers        "MetricGroup": "BvMB;MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
8827d38ef20SIan Rogers        "MetricName": "tma_mem_bandwidth",
883*307cf0ccSIan Rogers        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
8844018680dSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory - DRAM ([SPR-HBM] and/or HBM).  The underlying heuristic assumes that a similar off-core traffic is generated by all IA cores. This metric does not aggregate non-data-read requests by this logical processor; requests from other IA Logical Processors/Physical Cores/sockets; or other non-IA devices like GPU; hence the maximum external memory bandwidth limits may or may not be approached when this metric is flagged (see Uncore counters for that). Related metrics: tma_fb_full, tma_info_system_dram_bw_use, tma_sq_full",
8857d38ef20SIan Rogers        "ScaleUnit": "100%"
8867d38ef20SIan Rogers    },
8877d38ef20SIan Rogers    {
8884018680dSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory - DRAM ([SPR-HBM] and/or HBM)",
8897d124303SIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_thread_clks - tma_mem_bandwidth",
8906a8ec0b6SIan Rogers        "MetricGroup": "BvML;MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
8917d38ef20SIan Rogers        "MetricName": "tma_mem_latency",
892*307cf0ccSIan Rogers        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
8934018680dSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory - DRAM ([SPR-HBM] and/or HBM).  This metric does not aggregate requests from other Logical Processors/Physical Cores/sockets (see Uncore counters for that). Related metrics: tma_l3_hit_latency",
8947d38ef20SIan Rogers        "ScaleUnit": "100%"
8957d38ef20SIan Rogers    },
8967d38ef20SIan Rogers    {
8977d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
8987d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
8997d124303SIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_MEM_ANY + RESOURCE_STALLS.SB) / (CYCLE_ACTIVITY.STALLS_TOTAL + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_thread_ipc > 1.8 else UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB) * tma_backend_bound",
9007d38ef20SIan Rogers        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
9017d38ef20SIan Rogers        "MetricName": "tma_memory_bound",
902*307cf0ccSIan Rogers        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
903ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
9047d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck.  Memory Bound estimates fraction of slots where pipeline is likely stalled due to demand load or store instructions. This accounts mainly for (1) non-completed in-flight memory demand loads which coincides with execution units starvation; in addition to (2) cases where stores could impose backpressure on the pipeline when many of them get buffered at the same time (less common out of the two).",
9057d38ef20SIan Rogers        "ScaleUnit": "100%"
9067d38ef20SIan Rogers    },
9077d38ef20SIan Rogers    {
9087d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
9097d124303SIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_thread_slots",
9107d38ef20SIan Rogers        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
9117d38ef20SIan Rogers        "MetricName": "tma_microcode_sequencer",
912*307cf0ccSIan Rogers        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
9137d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit.  The MS is used for CISC instructions not supported by the default decoders (like repeat move strings; or CPUID); or by microcode assists used to address some operation modes (like in Floating Point assists). These cases can often be avoided. Sample with: UOPS_RETIRED.MS. Related metrics: tma_clears_resteers, tma_l1_bound, tma_machine_clears, tma_ms_switches",
9147d38ef20SIan Rogers        "ScaleUnit": "100%"
9157d38ef20SIan Rogers    },
9167d38ef20SIan Rogers    {
9177d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage",
9187d38ef20SIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES * tma_branch_resteers / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY)",
9196a8ec0b6SIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;BvMP;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueBM",
9207d38ef20SIan Rogers        "MetricName": "tma_mispredicts_resteers",
921*307cf0ccSIan Rogers        "MetricThreshold": "tma_mispredicts_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
9227d124303SIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage. Sample with: INT_MISC.CLEAR_RESTEER_CYCLES. Related metrics: tma_branch_mispredicts, tma_info_bad_spec_branch_misprediction_cost",
9237d38ef20SIan Rogers        "ScaleUnit": "100%"
9247d38ef20SIan Rogers    },
9257d38ef20SIan Rogers    {
9267d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
9277d124303SIan Rogers        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_core_clks / 2",
9287d38ef20SIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
9297d38ef20SIan Rogers        "MetricName": "tma_mite",
930*307cf0ccSIan Rogers        "MetricThreshold": "tma_mite > 0.1 & tma_fetch_bandwidth > 0.2",
9317d38ef20SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline). This pipeline is used for code that was not pre-cached in the DSB or LSD. For example; inefficiencies due to asymmetric decoders; use of long immediate or LCP can manifest as MITE fetch bandwidth bottleneck. Sample with: FRONTEND_RETIRED.ANY_DSB_MISS",
9327d38ef20SIan Rogers        "ScaleUnit": "100%"
9337d38ef20SIan Rogers    },
9347d38ef20SIan Rogers    {
9357d38ef20SIan Rogers        "BriefDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS)",
9367d124303SIan Rogers        "MetricExpr": "2 * IDQ.MS_SWITCHES / tma_info_thread_clks",
9377d38ef20SIan Rogers        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
9387d38ef20SIan Rogers        "MetricName": "tma_ms_switches",
939*307cf0ccSIan Rogers        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
9407d38ef20SIan Rogers        "PublicDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS). Commonly used instructions are optimized for delivery by the DSB (decoded i-cache) or MITE (legacy instruction decode) pipelines. Certain operations cannot be handled natively by the execution pipeline; and must be performed by microcode (small programs injected into the execution stream). Switching to the MS too often can negatively impact performance. The MS is designated to deliver long uop flows required by CISC instructions like CPUID; or uncommon conditions like Floating Point Assists when dealing with Denormals. Sample with: IDQ.MS_SWITCHES. Related metrics: tma_clears_resteers, tma_l1_bound, tma_machine_clears, tma_microcode_sequencer, tma_mixing_vectors, tma_serializing_operation",
9417d38ef20SIan Rogers        "ScaleUnit": "100%"
9427d38ef20SIan Rogers    },
9437d38ef20SIan Rogers    {
9447d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
9457d124303SIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_core_clks",
9467d38ef20SIan Rogers        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
9477d38ef20SIan Rogers        "MetricName": "tma_port_0",
948*307cf0ccSIan Rogers        "MetricThreshold": "tma_port_0 > 0.6",
94911e644ebSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch). Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
9507d38ef20SIan Rogers        "ScaleUnit": "100%"
9517d38ef20SIan Rogers    },
9527d38ef20SIan Rogers    {
9537d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
9547d124303SIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_core_clks",
9557d38ef20SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
9567d38ef20SIan Rogers        "MetricName": "tma_port_1",
957*307cf0ccSIan Rogers        "MetricThreshold": "tma_port_1 > 0.6",
95811e644ebSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU). Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_5, tma_port_6, tma_ports_utilized_2",
9597d38ef20SIan Rogers        "ScaleUnit": "100%"
9607d38ef20SIan Rogers    },
9617d38ef20SIan Rogers    {
9627d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
9637d124303SIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_core_clks",
9647d38ef20SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
9657d38ef20SIan Rogers        "MetricName": "tma_port_2",
966*307cf0ccSIan Rogers        "MetricThreshold": "tma_port_2 > 0.6",
9677d38ef20SIan Rogers        "ScaleUnit": "100%"
9687d38ef20SIan Rogers    },
9697d38ef20SIan Rogers    {
9707d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
9717d124303SIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_core_clks",
9727d38ef20SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
9737d38ef20SIan Rogers        "MetricName": "tma_port_3",
974*307cf0ccSIan Rogers        "MetricThreshold": "tma_port_3 > 0.6",
9757d38ef20SIan Rogers        "ScaleUnit": "100%"
9767d38ef20SIan Rogers    },
9777d38ef20SIan Rogers    {
9787d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
9797d38ef20SIan Rogers        "MetricExpr": "tma_store_op_utilization",
9807d38ef20SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
9817d38ef20SIan Rogers        "MetricName": "tma_port_4",
982*307cf0ccSIan Rogers        "MetricThreshold": "tma_port_4 > 0.6",
9837d38ef20SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data). Related metrics: tma_split_stores",
9847d38ef20SIan Rogers        "ScaleUnit": "100%"
9857d38ef20SIan Rogers    },
9867d38ef20SIan Rogers    {
9877d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
9887d124303SIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_core_clks",
9897d38ef20SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
9907d38ef20SIan Rogers        "MetricName": "tma_port_5",
991*307cf0ccSIan Rogers        "MetricThreshold": "tma_port_5 > 0.6",
9927d38ef20SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU). Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_6, tma_ports_utilized_2",
9937d38ef20SIan Rogers        "ScaleUnit": "100%"
9947d38ef20SIan Rogers    },
9957d38ef20SIan Rogers    {
9967d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+] Primary Branch and simple ALU)",
9977d124303SIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_6 / tma_info_core_core_clks",
9987d38ef20SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
9997d38ef20SIan Rogers        "MetricName": "tma_port_6",
1000*307cf0ccSIan Rogers        "MetricThreshold": "tma_port_6 > 0.6",
100111e644ebSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+] Primary Branch and simple ALU). Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_ports_utilized_2",
10027d38ef20SIan Rogers        "ScaleUnit": "100%"
10037d38ef20SIan Rogers    },
10047d38ef20SIan Rogers    {
10057d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address)",
10067d124303SIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_7 / tma_info_core_core_clks",
10077d38ef20SIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_store_op_utilization_group",
10087d38ef20SIan Rogers        "MetricName": "tma_port_7",
1009*307cf0ccSIan Rogers        "MetricThreshold": "tma_port_7 > 0.6",
10107d38ef20SIan Rogers        "ScaleUnit": "100%"
10117d38ef20SIan Rogers    },
10127d38ef20SIan Rogers    {
10137d38ef20SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
10147d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
10157d124303SIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_TOTAL + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_thread_ipc > 1.8 else UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB - RESOURCE_STALLS.SB - CYCLE_ACTIVITY.STALLS_MEM_ANY) / tma_info_thread_clks",
10167d38ef20SIan Rogers        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
10177d38ef20SIan Rogers        "MetricName": "tma_ports_utilization",
1018*307cf0ccSIan Rogers        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
10197d38ef20SIan Rogers        "PublicDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related).  Two distinct categories can be attributed into this metric: (1) heavy data-dependency among contiguous instructions would manifest in this metric - such cases are often referred to as low Instruction Level Parallelism (ILP). (2) Contention on some hardware execution unit other than Divider. For example; when there are too many multiply operations.",
10207d38ef20SIan Rogers        "ScaleUnit": "100%"
10217d38ef20SIan Rogers    },
10227d38ef20SIan Rogers    {
10237d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
10247d124303SIan Rogers        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,inv\\,cmask\\=1@ / 2 if #SMT_on else (CYCLE_ACTIVITY.STALLS_TOTAL - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0)) / tma_info_core_core_clks)",
10257d38ef20SIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
10267d38ef20SIan Rogers        "MetricName": "tma_ports_utilized_0",
1027*307cf0ccSIan Rogers        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
10287d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise). Long-latency instructions like divides may contribute to this metric.",
10297d38ef20SIan Rogers        "ScaleUnit": "100%"
10307d38ef20SIan Rogers    },
10317d38ef20SIan Rogers    {
10327d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles where the CPU executed total of 1 uop per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
10337d124303SIan Rogers        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) / 2 if #SMT_on else (UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) / tma_info_core_core_clks)",
10347d38ef20SIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
10357d38ef20SIan Rogers        "MetricName": "tma_ports_utilized_1",
1036*307cf0ccSIan Rogers        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
10377d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of cycles where the CPU executed total of 1 uop per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise). This can be due to heavy data-dependency among software instructions; or over oversubscribing a particular hardware resource. In some other cases with high 1_Port_Utilized and L1_Bound; this metric can point to L1 data-cache latency bottleneck that may not necessarily manifest with complete execution starvation (due to the short L1 latency e.g. walking a linked list) - looking at the assembly can be helpful. Sample with: EXE_ACTIVITY.1_PORTS_UTIL. Related metrics: tma_l1_bound",
10387d38ef20SIan Rogers        "ScaleUnit": "100%"
10397d38ef20SIan Rogers    },
10407d38ef20SIan Rogers    {
10417d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU executed total of 2 uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
10427d124303SIan Rogers        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / 2 if #SMT_on else (UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC - UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC) / tma_info_core_core_clks)",
10437d38ef20SIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
10447d38ef20SIan Rogers        "MetricName": "tma_ports_utilized_2",
1045*307cf0ccSIan Rogers        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
10467d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of cycles CPU executed total of 2 uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise).  Loop Vectorization -most compilers feature auto-Vectorization options today- reduces pressure on the execution ports as multiple elements are calculated with same uop. Sample with: EXE_ACTIVITY.2_PORTS_UTIL. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6",
10477d38ef20SIan Rogers        "ScaleUnit": "100%"
10487d38ef20SIan Rogers    },
10497d38ef20SIan Rogers    {
10507d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU executed total of 3 or more uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
10517d124303SIan Rogers        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC) / tma_info_core_core_clks",
10526a8ec0b6SIan Rogers        "MetricGroup": "BvCB;PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
10537d38ef20SIan Rogers        "MetricName": "tma_ports_utilized_3m",
1054*307cf0ccSIan Rogers        "MetricThreshold": "tma_ports_utilized_3m > 0.4 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
10557d38ef20SIan Rogers        "PublicDescription": "This metric represents fraction of cycles CPU executed total of 3 or more uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise). Sample with: UOPS_EXECUTED.CYCLES_GE_3",
10567d38ef20SIan Rogers        "ScaleUnit": "100%"
10577d38ef20SIan Rogers    },
10587d38ef20SIan Rogers    {
10597d38ef20SIan Rogers        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
10607d124303SIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_thread_slots",
10616a8ec0b6SIan Rogers        "MetricGroup": "BvUW;TmaL1;TopdownL1;tma_L1_group",
10627d38ef20SIan Rogers        "MetricName": "tma_retiring",
1063*307cf0ccSIan Rogers        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
1064ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
10657d38ef20SIan Rogers        "PublicDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired. Ideally; all pipeline slots would be attributed to the Retiring category.  Retiring of 100% would indicate the maximum Pipeline_Width throughput was achieved.  Maximizing Retiring typically increases the Instructions-per-cycle (see IPC metric). Note that a high Retiring value does not necessary mean there is no room for more performance.  For example; Heavy-operations or Microcode Assists are categorized under Retiring. They often indicate suboptimal performance and can often be optimized or avoided. Sample with: UOPS_RETIRED.SLOTS",
10667d38ef20SIan Rogers        "ScaleUnit": "100%"
10677d38ef20SIan Rogers    },
10687d38ef20SIan Rogers    {
10697d38ef20SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
10707d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
10717d124303SIan Rogers        "MetricExpr": "tma_info_memory_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_thread_clks",
10727d38ef20SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
10737d38ef20SIan Rogers        "MetricName": "tma_split_loads",
1074*307cf0ccSIan Rogers        "MetricThreshold": "tma_split_loads > 0.3",
10757d38ef20SIan Rogers        "PublicDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary. Sample with: MEM_INST_RETIRED.SPLIT_LOADS_PS",
10767d38ef20SIan Rogers        "ScaleUnit": "100%"
10777d38ef20SIan Rogers    },
10787d38ef20SIan Rogers    {
10797d38ef20SIan Rogers        "BriefDescription": "This metric represents rate of split store accesses",
10807d124303SIan Rogers        "MetricExpr": "2 * MEM_UOPS_RETIRED.SPLIT_STORES / tma_info_core_core_clks",
10817d38ef20SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
10827d38ef20SIan Rogers        "MetricName": "tma_split_stores",
1083*307cf0ccSIan Rogers        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
10847d38ef20SIan Rogers        "PublicDescription": "This metric represents rate of split store accesses.  Consider aligning your data to the 64-byte cache line granularity. Sample with: MEM_INST_RETIRED.SPLIT_STORES_PS. Related metrics: tma_port_4",
10857d38ef20SIan Rogers        "ScaleUnit": "100%"
10867d38ef20SIan Rogers    },
10877d38ef20SIan Rogers    {
10887d38ef20SIan Rogers        "BriefDescription": "This metric measures fraction of cycles where the Super Queue (SQ) was full taking into account all request-types and both hardware SMT threads (Logical Processors)",
10897d124303SIan Rogers        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_core_clks",
109011e644ebSIan Rogers        "MetricGroup": "BvMB;MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
10917d38ef20SIan Rogers        "MetricName": "tma_sq_full",
1092*307cf0ccSIan Rogers        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
10937d124303SIan Rogers        "PublicDescription": "This metric measures fraction of cycles where the Super Queue (SQ) was full taking into account all request-types and both hardware SMT threads (Logical Processors). Related metrics: tma_fb_full, tma_info_system_dram_bw_use, tma_mem_bandwidth",
10947d38ef20SIan Rogers        "ScaleUnit": "100%"
10957d38ef20SIan Rogers    },
10967d38ef20SIan Rogers    {
10977d38ef20SIan Rogers        "BriefDescription": "This metric estimates how often CPU was stalled  due to RFO store memory accesses; RFO store issue a read-for-ownership request before the write",
10987d124303SIan Rogers        "MetricExpr": "RESOURCE_STALLS.SB / tma_info_thread_clks",
10997d38ef20SIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
11007d38ef20SIan Rogers        "MetricName": "tma_store_bound",
1101*307cf0ccSIan Rogers        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
11027d38ef20SIan Rogers        "PublicDescription": "This metric estimates how often CPU was stalled  due to RFO store memory accesses; RFO store issue a read-for-ownership request before the write. Even though store accesses do not typically stall out-of-order CPUs; there are few cases where stores can lead to actual stalls. This metric will be flagged should RFO stores be a bottleneck. Sample with: MEM_INST_RETIRED.ALL_STORES_PS",
11037d38ef20SIan Rogers        "ScaleUnit": "100%"
11047d38ef20SIan Rogers    },
11057d38ef20SIan Rogers    {
11067d38ef20SIan Rogers        "BriefDescription": "This metric roughly estimates fraction of cycles when the memory subsystem had loads blocked since they could not forward data from earlier (in program order) overlapping stores",
11077d124303SIan Rogers        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_thread_clks",
11087d38ef20SIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
11097d38ef20SIan Rogers        "MetricName": "tma_store_fwd_blk",
1110*307cf0ccSIan Rogers        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
11117d38ef20SIan Rogers        "PublicDescription": "This metric roughly estimates fraction of cycles when the memory subsystem had loads blocked since they could not forward data from earlier (in program order) overlapping stores. To streamline memory operations in the pipeline; a load can avoid waiting for memory if a prior in-flight store is writing the data that the load wants to read (store forwarding process). However; in some cases the load may be blocked for a significant time pending the store forward. For example; when the prior store is writing a smaller region than the load is reading.",
11127d38ef20SIan Rogers        "ScaleUnit": "100%"
11137d38ef20SIan Rogers    },
11147d38ef20SIan Rogers    {
11157d38ef20SIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
11167d38ef20SIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
11177d124303SIan Rogers        "MetricExpr": "(L2_RQSTS.RFO_HIT * 9 * (1 - MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES) + (1 - MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES) * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO)) / tma_info_thread_clks",
111811e644ebSIan Rogers        "MetricGroup": "BvML;LockCont;MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
11197d38ef20SIan Rogers        "MetricName": "tma_store_latency",
1120*307cf0ccSIan Rogers        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
11217d38ef20SIan Rogers        "PublicDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses. Store accesses usually less impact out-of-order core performance; however; holding resources for longer time can lead into undesired implications (e.g. contention on L1D fill-buffer entries - see FB_Full). Related metrics: tma_fb_full, tma_lock_latency",
11227d38ef20SIan Rogers        "ScaleUnit": "100%"
11237d38ef20SIan Rogers    },
11247d38ef20SIan Rogers    {
11257d38ef20SIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
11267d124303SIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_core_clks",
11277d38ef20SIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
11287d38ef20SIan Rogers        "MetricName": "tma_store_op_utilization",
1129*307cf0ccSIan Rogers        "MetricThreshold": "tma_store_op_utilization > 0.6",
11307d38ef20SIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations. Sample with: UOPS_DISPATCHED.PORT_7_8",
11317d38ef20SIan Rogers        "ScaleUnit": "100%"
11327d38ef20SIan Rogers    },
11337d38ef20SIan Rogers    {
11347d38ef20SIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears",
11357d38ef20SIan Rogers        "MetricExpr": "tma_branch_resteers - tma_mispredicts_resteers - tma_clears_resteers",
11366a8ec0b6SIan Rogers        "MetricGroup": "BigFootprint;BvBC;FetchLat;TopdownL4;tma_L4_group;tma_branch_resteers_group",
11377d38ef20SIan Rogers        "MetricName": "tma_unknown_branches",
1138*307cf0ccSIan Rogers        "MetricThreshold": "tma_unknown_branches > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
11394018680dSIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears. These are fetched branches the Branch Prediction Unit was unable to recognize (e.g. first time the branch is fetched or hitting BTB capacity limit) hence called Unknown Branches. Sample with: FRONTEND_RETIRED.UNKNOWN_BRANCH",
11407d38ef20SIan Rogers        "ScaleUnit": "100%"
11417d38ef20SIan Rogers    },
11427d38ef20SIan Rogers    {
11437d38ef20SIan Rogers        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
11447d124303SIan Rogers        "MetricExpr": "INST_RETIRED.X87 * tma_info_thread_uoppi / UOPS_RETIRED.RETIRE_SLOTS",
11457d38ef20SIan Rogers        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
11467d38ef20SIan Rogers        "MetricName": "tma_x87_use",
1147*307cf0ccSIan Rogers        "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
11487d38ef20SIan Rogers        "PublicDescription": "This metric serves as an approximation of legacy x87 usage. It accounts for instructions beyond X87 FP arithmetic operations; hence may be used as a thermometer to avoid X87 high usage and preferably upgrade to modern ISA. See Tip under Tuning Hint.",
11497d38ef20SIan Rogers        "ScaleUnit": "100%"
115069e93213SAndi Kleen    }
115169e93213SAndi Kleen]
1152