1ecd94f1bSKan Liang[
2ecd94f1bSKan Liang    {
36635df2fSIan Rogers        "BriefDescription": "C2 residency percent per package",
46635df2fSIan Rogers        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
5ecd94f1bSKan Liang        "MetricGroup": "Power",
66635df2fSIan Rogers        "MetricName": "C2_Pkg_Residency",
78358b122SIan Rogers        "ScaleUnit": "100%"
88358b122SIan Rogers    },
98358b122SIan Rogers    {
108358b122SIan Rogers        "BriefDescription": "C3 residency percent per core",
118358b122SIan Rogers        "MetricExpr": "cstate_core@c3\\-residency@ / TSC",
128358b122SIan Rogers        "MetricGroup": "Power",
138358b122SIan Rogers        "MetricName": "C3_Core_Residency",
148358b122SIan Rogers        "ScaleUnit": "100%"
158358b122SIan Rogers    },
168358b122SIan Rogers    {
178358b122SIan Rogers        "BriefDescription": "C3 residency percent per package",
188358b122SIan Rogers        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
198358b122SIan Rogers        "MetricGroup": "Power",
208358b122SIan Rogers        "MetricName": "C3_Pkg_Residency",
218358b122SIan Rogers        "ScaleUnit": "100%"
228358b122SIan Rogers    },
238358b122SIan Rogers    {
246635df2fSIan Rogers        "BriefDescription": "C6 residency percent per core",
256635df2fSIan Rogers        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
266635df2fSIan Rogers        "MetricGroup": "Power",
276635df2fSIan Rogers        "MetricName": "C6_Core_Residency",
286635df2fSIan Rogers        "ScaleUnit": "100%"
296635df2fSIan Rogers    },
306635df2fSIan Rogers    {
318358b122SIan Rogers        "BriefDescription": "C6 residency percent per package",
328358b122SIan Rogers        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
338358b122SIan Rogers        "MetricGroup": "Power",
348358b122SIan Rogers        "MetricName": "C6_Pkg_Residency",
358358b122SIan Rogers        "ScaleUnit": "100%"
368358b122SIan Rogers    },
378358b122SIan Rogers    {
386635df2fSIan Rogers        "BriefDescription": "C7 residency percent per core",
396635df2fSIan Rogers        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
406635df2fSIan Rogers        "MetricGroup": "Power",
416635df2fSIan Rogers        "MetricName": "C7_Core_Residency",
426635df2fSIan Rogers        "ScaleUnit": "100%"
436635df2fSIan Rogers    },
446635df2fSIan Rogers    {
458358b122SIan Rogers        "BriefDescription": "C7 residency percent per package",
468358b122SIan Rogers        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
478358b122SIan Rogers        "MetricGroup": "Power",
488358b122SIan Rogers        "MetricName": "C7_Pkg_Residency",
498358b122SIan Rogers        "ScaleUnit": "100%"
506635df2fSIan Rogers    },
516635df2fSIan Rogers    {
526635df2fSIan Rogers        "BriefDescription": "Uncore frequency per die [GHZ]",
536635df2fSIan Rogers        "MetricExpr": "tma_info_socket_clks / #num_dies / duration_time / 1e9",
546635df2fSIan Rogers        "MetricGroup": "SoC",
556635df2fSIan Rogers        "MetricName": "UNCORE_FREQ"
566635df2fSIan Rogers    },
576635df2fSIan Rogers    {
586635df2fSIan Rogers        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
596635df2fSIan Rogers        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
606635df2fSIan Rogers        "MetricGroup": "smi",
616635df2fSIan Rogers        "MetricName": "smi_cycles",
626635df2fSIan Rogers        "MetricThreshold": "smi_cycles > 0.1",
636635df2fSIan Rogers        "ScaleUnit": "100%"
646635df2fSIan Rogers    },
656635df2fSIan Rogers    {
666635df2fSIan Rogers        "BriefDescription": "Number of SMI interrupts.",
676635df2fSIan Rogers        "MetricExpr": "msr@smi@",
686635df2fSIan Rogers        "MetricGroup": "smi",
696635df2fSIan Rogers        "MetricName": "smi_num",
706635df2fSIan Rogers        "ScaleUnit": "1SMI#"
716635df2fSIan Rogers    },
726635df2fSIan Rogers    {
736635df2fSIan Rogers        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
746635df2fSIan Rogers        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_clks",
756635df2fSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
766635df2fSIan Rogers        "MetricName": "tma_4k_aliasing",
776635df2fSIan Rogers        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
786635df2fSIan 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).",
796635df2fSIan Rogers        "ScaleUnit": "100%"
806635df2fSIan Rogers    },
816635df2fSIan Rogers    {
826635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
836635df2fSIan Rogers        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_0 + UOPS_DISPATCHED_PORT.PORT_1 + UOPS_DISPATCHED_PORT.PORT_5 + UOPS_DISPATCHED_PORT.PORT_6) / tma_info_slots",
846635df2fSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
856635df2fSIan Rogers        "MetricName": "tma_alu_op_utilization",
866635df2fSIan Rogers        "MetricThreshold": "tma_alu_op_utilization > 0.6",
876635df2fSIan Rogers        "ScaleUnit": "100%"
886635df2fSIan Rogers    },
896635df2fSIan Rogers    {
906635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
916635df2fSIan Rogers        "MetricExpr": "100 * (FP_ASSIST.ANY + OTHER_ASSISTS.ANY) / tma_info_slots",
926635df2fSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
936635df2fSIan Rogers        "MetricName": "tma_assists",
946635df2fSIan Rogers        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
956635df2fSIan 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: OTHER_ASSISTS.ANY",
966635df2fSIan Rogers        "ScaleUnit": "100%"
976635df2fSIan Rogers    },
986635df2fSIan Rogers    {
996635df2fSIan 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",
1006635df2fSIan Rogers        "MetricExpr": "1 - tma_frontend_bound - (UOPS_ISSUED.ANY + 4 * (INT_MISC.RECOVERY_CYCLES_ANY / 2 if #SMT_on else INT_MISC.RECOVERY_CYCLES)) / tma_info_slots",
1016635df2fSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
1026635df2fSIan Rogers        "MetricName": "tma_backend_bound",
1036635df2fSIan Rogers        "MetricThreshold": "tma_backend_bound > 0.2",
104*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
1056635df2fSIan 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.",
1066635df2fSIan Rogers        "ScaleUnit": "100%"
1076635df2fSIan Rogers    },
1086635df2fSIan Rogers    {
1096635df2fSIan Rogers        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
1106635df2fSIan 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_slots",
1116635df2fSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
1126635df2fSIan Rogers        "MetricName": "tma_bad_speculation",
1136635df2fSIan Rogers        "MetricThreshold": "tma_bad_speculation > 0.15",
114*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
1156635df2fSIan 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.",
1166635df2fSIan Rogers        "ScaleUnit": "100%"
1176635df2fSIan Rogers    },
1186635df2fSIan Rogers    {
1196635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
1206635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1216635df2fSIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
1226635df2fSIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
1236635df2fSIan Rogers        "MetricName": "tma_branch_mispredicts",
1246635df2fSIan Rogers        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
125*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
1266635df2fSIan 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: BR_MISP_RETIRED.ALL_BRANCHES. Related metrics: tma_info_branch_misprediction_cost, tma_info_mispredictions, tma_mispredicts_resteers",
1276635df2fSIan Rogers        "ScaleUnit": "100%"
1286635df2fSIan Rogers    },
1296635df2fSIan Rogers    {
1306635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
1316635df2fSIan Rogers        "MetricExpr": "INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_clks + tma_unknown_branches",
1326635df2fSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
1336635df2fSIan Rogers        "MetricName": "tma_branch_resteers",
1346635df2fSIan Rogers        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
1356635df2fSIan 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",
1366635df2fSIan Rogers        "ScaleUnit": "100%"
1376635df2fSIan Rogers    },
1386635df2fSIan Rogers    {
1396635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
1406635df2fSIan Rogers        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
1416635df2fSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
1426635df2fSIan Rogers        "MetricName": "tma_cisc",
1436635df2fSIan Rogers        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
1446635df2fSIan 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.",
1456635df2fSIan Rogers        "ScaleUnit": "100%"
1466635df2fSIan Rogers    },
1476635df2fSIan Rogers    {
1486635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears",
1496635df2fSIan Rogers        "MetricExpr": "(1 - BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT)) * INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_clks",
1506635df2fSIan Rogers        "MetricGroup": "BadSpec;MachineClears;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueMC",
1516635df2fSIan Rogers        "MetricName": "tma_clears_resteers",
1526635df2fSIan Rogers        "MetricThreshold": "tma_clears_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1536635df2fSIan 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",
1546635df2fSIan Rogers        "ScaleUnit": "100%"
1556635df2fSIan Rogers    },
1566635df2fSIan Rogers    {
1576635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
1586635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1596635df2fSIan Rogers        "MetricExpr": "(44 * tma_info_average_frequency * (MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM * (OCR.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE / (OCR.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE + OCR.DEMAND_DATA_RD.L3_HIT.HIT_OTHER_CORE_FWD))) + 44 * tma_info_average_frequency * MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS) * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_clks",
1606635df2fSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
1616635df2fSIan Rogers        "MetricName": "tma_contested_accesses",
1626635df2fSIan Rogers        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1636635df2fSIan 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_HITM_PS;MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS_PS. Related metrics: tma_data_sharing, tma_false_sharing, tma_machine_clears, tma_remote_cache",
1646635df2fSIan Rogers        "ScaleUnit": "100%"
1656635df2fSIan Rogers    },
1666635df2fSIan Rogers    {
1676635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
1686635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1696635df2fSIan Rogers        "MetricExpr": "tma_backend_bound - tma_memory_bound",
1706635df2fSIan Rogers        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
1716635df2fSIan Rogers        "MetricName": "tma_core_bound",
1726635df2fSIan Rogers        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
173*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
1746635df2fSIan 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).",
1756635df2fSIan Rogers        "ScaleUnit": "100%"
1766635df2fSIan Rogers    },
1776635df2fSIan Rogers    {
1786635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
1796635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
1806635df2fSIan Rogers        "MetricExpr": "44 * tma_info_average_frequency * (MEM_LOAD_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM * (1 - OCR.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE / (OCR.DEMAND_DATA_RD.L3_HIT.HITM_OTHER_CORE + OCR.DEMAND_DATA_RD.L3_HIT.HIT_OTHER_CORE_FWD))) * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_clks",
1816635df2fSIan Rogers        "MetricGroup": "Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
1826635df2fSIan Rogers        "MetricName": "tma_data_sharing",
1836635df2fSIan Rogers        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1846635df2fSIan 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_HIT_PS. Related metrics: tma_contested_accesses, tma_false_sharing, tma_machine_clears, tma_remote_cache",
1856635df2fSIan Rogers        "ScaleUnit": "100%"
1866635df2fSIan Rogers    },
1876635df2fSIan Rogers    {
1886635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles where decoder-0 was the only active decoder",
1896635df2fSIan Rogers        "MetricExpr": "(cpu@INST_DECODED.DECODERS\\,cmask\\=1@ - cpu@INST_DECODED.DECODERS\\,cmask\\=2@) / tma_info_core_clks / 2",
1906635df2fSIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL4;tma_L4_group;tma_issueD0;tma_mite_group",
1916635df2fSIan Rogers        "MetricName": "tma_decoder0_alone",
1926635df2fSIan Rogers        "MetricThreshold": "tma_decoder0_alone > 0.1 & (tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35))",
1936635df2fSIan Rogers        "PublicDescription": "This metric represents fraction of cycles where decoder-0 was the only active decoder. Related metrics: tma_few_uops_instructions",
1946635df2fSIan Rogers        "ScaleUnit": "100%"
1956635df2fSIan Rogers    },
1966635df2fSIan Rogers    {
1976635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
1986635df2fSIan Rogers        "MetricExpr": "ARITH.DIVIDER_ACTIVE / tma_info_clks",
1996635df2fSIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group",
2006635df2fSIan Rogers        "MetricName": "tma_divider",
2016635df2fSIan Rogers        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
2026635df2fSIan 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.DIVIDER_ACTIVE",
2036635df2fSIan Rogers        "ScaleUnit": "100%"
2046635df2fSIan Rogers    },
2056635df2fSIan Rogers    {
2066635df2fSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
2076635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
20831c5ba6cSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L3_MISS / tma_info_clks + (CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_clks - tma_l2_bound - tma_pmm_bound if #has_pmem > 0 else CYCLE_ACTIVITY.STALLS_L3_MISS / tma_info_clks + (CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_clks - tma_l2_bound)",
2096635df2fSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
2106635df2fSIan Rogers        "MetricName": "tma_dram_bound",
2116635df2fSIan Rogers        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
2126635df2fSIan 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_PS",
2136635df2fSIan Rogers        "ScaleUnit": "100%"
2146635df2fSIan Rogers    },
2156635df2fSIan Rogers    {
2166635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
2176635df2fSIan Rogers        "MetricExpr": "(IDQ.ALL_DSB_CYCLES_ANY_UOPS - IDQ.ALL_DSB_CYCLES_4_UOPS) / tma_info_core_clks / 2",
2186635df2fSIan Rogers        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
2196635df2fSIan Rogers        "MetricName": "tma_dsb",
2206635df2fSIan Rogers        "MetricThreshold": "tma_dsb > 0.15 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
2216635df2fSIan 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.",
2226635df2fSIan Rogers        "ScaleUnit": "100%"
2236635df2fSIan Rogers    },
2246635df2fSIan Rogers    {
2256635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
2266635df2fSIan Rogers        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_clks",
2276635df2fSIan Rogers        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
2286635df2fSIan Rogers        "MetricName": "tma_dsb_switches",
2296635df2fSIan Rogers        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
2306635df2fSIan 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_dsb_coverage, tma_info_dsb_misses, tma_info_iptb, tma_lcp",
2316635df2fSIan Rogers        "ScaleUnit": "100%"
2326635df2fSIan Rogers    },
2336635df2fSIan Rogers    {
2346635df2fSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
2356635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
2366635df2fSIan Rogers        "MetricExpr": "min(9 * cpu@DTLB_LOAD_MISSES.STLB_HIT\\,cmask\\=1@ + DTLB_LOAD_MISSES.WALK_ACTIVE, max(CYCLE_ACTIVITY.CYCLES_MEM_ANY - CYCLE_ACTIVITY.CYCLES_L1D_MISS, 0)) / tma_info_clks",
2376635df2fSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
2386635df2fSIan Rogers        "MetricName": "tma_dtlb_load",
2396635df2fSIan Rogers        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
2406635df2fSIan 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, tma_info_memory_data_tlbs",
2416635df2fSIan Rogers        "ScaleUnit": "100%"
2426635df2fSIan Rogers    },
2436635df2fSIan Rogers    {
2446635df2fSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
2456635df2fSIan Rogers        "MetricExpr": "(9 * cpu@DTLB_STORE_MISSES.STLB_HIT\\,cmask\\=1@ + DTLB_STORE_MISSES.WALK_ACTIVE) / tma_info_core_clks",
2466635df2fSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
2476635df2fSIan Rogers        "MetricName": "tma_dtlb_store",
2486635df2fSIan Rogers        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
2496635df2fSIan 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, tma_info_memory_data_tlbs",
2506635df2fSIan Rogers        "ScaleUnit": "100%"
2516635df2fSIan Rogers    },
2526635df2fSIan Rogers    {
2536635df2fSIan Rogers        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
2546635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
2556635df2fSIan Rogers        "MetricExpr": "(110 * tma_info_average_frequency * (OCR.DEMAND_RFO.L3_MISS.REMOTE_HITM + OCR.PF_L2_RFO.L3_MISS.REMOTE_HITM) + 47.5 * tma_info_average_frequency * (OCR.DEMAND_RFO.L3_HIT.HITM_OTHER_CORE + OCR.PF_L2_RFO.L3_HIT.HITM_OTHER_CORE)) / tma_info_clks",
2566635df2fSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
2576635df2fSIan Rogers        "MetricName": "tma_false_sharing",
2586635df2fSIan Rogers        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
2596635df2fSIan Rogers        "PublicDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing. False Sharing is a multithreading hiccup; where multiple Logical Processors contend on different data-elements mapped into the same cache line. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM_PS;OFFCORE_RESPONSE.DEMAND_RFO.L3_HIT.SNOOP_HITM. Related metrics: tma_contested_accesses, tma_data_sharing, tma_machine_clears, tma_remote_cache",
2606635df2fSIan Rogers        "ScaleUnit": "100%"
2616635df2fSIan Rogers    },
2626635df2fSIan Rogers    {
2636635df2fSIan Rogers        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
2646635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
2656635df2fSIan Rogers        "MetricExpr": "tma_info_load_miss_real_latency * cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@ / tma_info_clks",
2666635df2fSIan Rogers        "MetricGroup": "MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
2676635df2fSIan Rogers        "MetricName": "tma_fb_full",
2686635df2fSIan Rogers        "MetricThreshold": "tma_fb_full > 0.3",
2696635df2fSIan 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_dram_bw_use, tma_info_memory_bandwidth, tma_mem_bandwidth, tma_sq_full, tma_store_latency, tma_streaming_stores",
2706635df2fSIan Rogers        "ScaleUnit": "100%"
2716635df2fSIan Rogers    },
2726635df2fSIan Rogers    {
2736635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
2746635df2fSIan Rogers        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
2756635df2fSIan Rogers        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
2766635df2fSIan Rogers        "MetricName": "tma_fetch_bandwidth",
2776635df2fSIan Rogers        "MetricThreshold": "tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35",
278*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
2796635df2fSIan 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_PS;FRONTEND_RETIRED.LATENCY_GE_1_PS;FRONTEND_RETIRED.LATENCY_GE_2_PS. Related metrics: tma_dsb_switches, tma_info_dsb_coverage, tma_info_dsb_misses, tma_info_iptb, tma_lcp",
2806635df2fSIan Rogers        "ScaleUnit": "100%"
2816635df2fSIan Rogers    },
2826635df2fSIan Rogers    {
2836635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
2846635df2fSIan Rogers        "MetricExpr": "4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / tma_info_slots",
2856635df2fSIan Rogers        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
2866635df2fSIan Rogers        "MetricName": "tma_fetch_latency",
2876635df2fSIan Rogers        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
288*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
2896635df2fSIan 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",
2906635df2fSIan Rogers        "ScaleUnit": "100%"
2916635df2fSIan Rogers    },
2926635df2fSIan Rogers    {
2936635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring instructions that that are decoder into two or up to ([SNB+] four; [ADL+] five) uops",
2946635df2fSIan Rogers        "MetricExpr": "tma_heavy_operations - tma_microcode_sequencer",
2956635df2fSIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueD0",
2966635df2fSIan Rogers        "MetricName": "tma_few_uops_instructions",
2976635df2fSIan Rogers        "MetricThreshold": "tma_few_uops_instructions > 0.05 & tma_heavy_operations > 0.1",
2986635df2fSIan Rogers        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring instructions that that are decoder into two or up to ([SNB+] four; [ADL+] five) uops. This highly-correlates with the number of uops in such instructions. Related metrics: tma_decoder0_alone",
2996635df2fSIan Rogers        "ScaleUnit": "100%"
3006635df2fSIan Rogers    },
3016635df2fSIan Rogers    {
3026635df2fSIan Rogers        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
3036635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
3046635df2fSIan Rogers        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
3056635df2fSIan Rogers        "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group",
3066635df2fSIan Rogers        "MetricName": "tma_fp_arith",
3076635df2fSIan Rogers        "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6",
3086635df2fSIan 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.",
3096635df2fSIan Rogers        "ScaleUnit": "100%"
3106635df2fSIan Rogers    },
3116635df2fSIan Rogers    {
3126635df2fSIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
3136635df2fSIan Rogers        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ / UOPS_RETIRED.RETIRE_SLOTS",
3146635df2fSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
3156635df2fSIan Rogers        "MetricName": "tma_fp_scalar",
3166635df2fSIan Rogers        "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
3176635df2fSIan 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",
3186635df2fSIan Rogers        "ScaleUnit": "100%"
3196635df2fSIan Rogers    },
3206635df2fSIan Rogers    {
3216635df2fSIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
3226635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
3236635df2fSIan Rogers        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@ / UOPS_RETIRED.RETIRE_SLOTS",
3246635df2fSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
3256635df2fSIan Rogers        "MetricName": "tma_fp_vector",
3266635df2fSIan Rogers        "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
3276635df2fSIan 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",
3286635df2fSIan Rogers        "ScaleUnit": "100%"
3296635df2fSIan Rogers    },
3306635df2fSIan Rogers    {
3316635df2fSIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors",
3326635df2fSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
3336635df2fSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
3346635df2fSIan Rogers        "MetricName": "tma_fp_vector_128b",
3356635df2fSIan Rogers        "MetricThreshold": "tma_fp_vector_128b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
3366635df2fSIan 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. 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",
3376635df2fSIan Rogers        "ScaleUnit": "100%"
3386635df2fSIan Rogers    },
3396635df2fSIan Rogers    {
3406635df2fSIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors",
3416635df2fSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
3426635df2fSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
3436635df2fSIan Rogers        "MetricName": "tma_fp_vector_256b",
3446635df2fSIan Rogers        "MetricThreshold": "tma_fp_vector_256b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
3456635df2fSIan 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. 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",
3466635df2fSIan Rogers        "ScaleUnit": "100%"
3476635df2fSIan Rogers    },
3486635df2fSIan Rogers    {
3496635df2fSIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 512-bit wide vectors",
3506635df2fSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
3516635df2fSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
3526635df2fSIan Rogers        "MetricName": "tma_fp_vector_512b",
3536635df2fSIan Rogers        "MetricThreshold": "tma_fp_vector_512b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
3546635df2fSIan Rogers        "PublicDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 512-bit wide vectors. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
3556635df2fSIan Rogers        "ScaleUnit": "100%"
3566635df2fSIan Rogers    },
3576635df2fSIan Rogers    {
3586635df2fSIan Rogers        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
3596635df2fSIan Rogers        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_slots",
3606635df2fSIan Rogers        "MetricGroup": "PGO;TmaL1;TopdownL1;tma_L1_group",
3616635df2fSIan Rogers        "MetricName": "tma_frontend_bound",
3626635df2fSIan Rogers        "MetricThreshold": "tma_frontend_bound > 0.15",
363*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
3646635df2fSIan 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",
3656635df2fSIan Rogers        "ScaleUnit": "100%"
3666635df2fSIan Rogers    },
3676635df2fSIan Rogers    {
3686635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring fused instructions -- where one uop can represent multiple contiguous instructions",
3696635df2fSIan Rogers        "MetricExpr": "tma_light_operations * UOPS_RETIRED.MACRO_FUSED / UOPS_RETIRED.RETIRE_SLOTS",
3706635df2fSIan Rogers        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
3716635df2fSIan Rogers        "MetricName": "tma_fused_instructions",
3726635df2fSIan Rogers        "MetricThreshold": "tma_fused_instructions > 0.1 & tma_light_operations > 0.6",
3736635df2fSIan Rogers        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring fused instructions -- where one uop can represent multiple contiguous instructions. The instruction pairs of CMP+JCC or DEC+JCC are commonly used examples.",
3746635df2fSIan Rogers        "ScaleUnit": "100%"
3756635df2fSIan Rogers    },
3766635df2fSIan Rogers    {
3776635df2fSIan 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",
3786635df2fSIan Rogers        "MetricExpr": "(UOPS_RETIRED.RETIRE_SLOTS + UOPS_RETIRED.MACRO_FUSED - INST_RETIRED.ANY) / tma_info_slots",
3796635df2fSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
3806635df2fSIan Rogers        "MetricName": "tma_heavy_operations",
3816635df2fSIan Rogers        "MetricThreshold": "tma_heavy_operations > 0.1",
382*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
3836635df2fSIan 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.",
3846635df2fSIan Rogers        "ScaleUnit": "100%"
3856635df2fSIan Rogers    },
3866635df2fSIan Rogers    {
3876635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses",
3886635df2fSIan Rogers        "MetricExpr": "(ICACHE_16B.IFDATA_STALL + 2 * cpu@ICACHE_16B.IFDATA_STALL\\,cmask\\=1\\,edge@) / tma_info_clks",
3896635df2fSIan Rogers        "MetricGroup": "BigFoot;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
3906635df2fSIan Rogers        "MetricName": "tma_icache_misses",
3916635df2fSIan Rogers        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
3926635df2fSIan 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",
3936635df2fSIan Rogers        "ScaleUnit": "100%"
3946635df2fSIan Rogers    },
3956635df2fSIan Rogers    {
3966635df2fSIan Rogers        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
3976635df2fSIan Rogers        "MetricExpr": "tma_info_turbo_utilization * TSC / 1e9 / duration_time",
3986635df2fSIan Rogers        "MetricGroup": "Power;Summary",
3996635df2fSIan Rogers        "MetricName": "tma_info_average_frequency"
4006635df2fSIan Rogers    },
4016635df2fSIan Rogers    {
4026635df2fSIan Rogers        "BriefDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code footprint programs (i-side cache; TLB and BTB misses)",
4036635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
4046635df2fSIan Rogers        "MetricExpr": "100 * tma_fetch_latency * (tma_itlb_misses + tma_icache_misses + tma_unknown_branches) / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches)",
4056635df2fSIan Rogers        "MetricGroup": "BigFoot;Fed;Frontend;IcMiss;MemoryTLB;tma_issueBC",
4066635df2fSIan Rogers        "MetricName": "tma_info_big_code",
4076635df2fSIan Rogers        "MetricThreshold": "tma_info_big_code > 20",
4086635df2fSIan Rogers        "PublicDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code footprint programs (i-side cache; TLB and BTB misses). Related metrics: tma_info_branching_overhead"
4096635df2fSIan Rogers    },
4106635df2fSIan Rogers    {
4116635df2fSIan Rogers        "BriefDescription": "Branch instructions per taken branch.",
4126635df2fSIan Rogers        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
4136635df2fSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
4146635df2fSIan Rogers        "MetricName": "tma_info_bptkbranch"
4156635df2fSIan Rogers    },
4166635df2fSIan Rogers    {
4176635df2fSIan Rogers        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
4186635df2fSIan Rogers        "MetricExpr": "(tma_branch_mispredicts + tma_fetch_latency * tma_mispredicts_resteers / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches)) * tma_info_slots / BR_MISP_RETIRED.ALL_BRANCHES",
4196635df2fSIan Rogers        "MetricGroup": "Bad;BrMispredicts;tma_issueBM",
4206635df2fSIan Rogers        "MetricName": "tma_info_branch_misprediction_cost",
4216635df2fSIan Rogers        "PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear). Related metrics: tma_branch_mispredicts, tma_info_mispredictions, tma_mispredicts_resteers"
4226635df2fSIan Rogers    },
4236635df2fSIan Rogers    {
4246635df2fSIan Rogers        "BriefDescription": "Total pipeline cost of branch related instructions (used for program control-flow including function calls)",
4256635df2fSIan Rogers        "MetricExpr": "100 * ((BR_INST_RETIRED.CONDITIONAL + 3 * BR_INST_RETIRED.NEAR_CALL + (BR_INST_RETIRED.NEAR_TAKEN - (BR_INST_RETIRED.CONDITIONAL - BR_INST_RETIRED.NOT_TAKEN) - 2 * BR_INST_RETIRED.NEAR_CALL)) / tma_info_slots)",
4266635df2fSIan Rogers        "MetricGroup": "Ret;tma_issueBC",
4276635df2fSIan Rogers        "MetricName": "tma_info_branching_overhead",
4286635df2fSIan Rogers        "MetricThreshold": "tma_info_branching_overhead > 10",
4296635df2fSIan Rogers        "PublicDescription": "Total pipeline cost of branch related instructions (used for program control-flow including function calls). Related metrics: tma_info_big_code"
4306635df2fSIan Rogers    },
4316635df2fSIan Rogers    {
4326635df2fSIan Rogers        "BriefDescription": "Fraction of branches that are CALL or RET",
4336635df2fSIan Rogers        "MetricExpr": "(BR_INST_RETIRED.NEAR_CALL + BR_INST_RETIRED.NEAR_RETURN) / BR_INST_RETIRED.ALL_BRANCHES",
4346635df2fSIan Rogers        "MetricGroup": "Bad;Branches",
4356635df2fSIan Rogers        "MetricName": "tma_info_callret"
4366635df2fSIan Rogers    },
4376635df2fSIan Rogers    {
4386635df2fSIan Rogers        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
4396635df2fSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
4406635df2fSIan Rogers        "MetricGroup": "Pipeline",
4416635df2fSIan Rogers        "MetricName": "tma_info_clks"
4426635df2fSIan Rogers    },
4436635df2fSIan Rogers    {
4446635df2fSIan Rogers        "BriefDescription": "STLB (2nd level TLB) code speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
4456635df2fSIan Rogers        "MetricExpr": "1e3 * ITLB_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
4466635df2fSIan Rogers        "MetricGroup": "Fed;MemoryTLB",
4476635df2fSIan Rogers        "MetricName": "tma_info_code_stlb_mpki"
4486635df2fSIan Rogers    },
4496635df2fSIan Rogers    {
4506635df2fSIan Rogers        "BriefDescription": "Fraction of branches that are non-taken conditionals",
4516635df2fSIan Rogers        "MetricExpr": "BR_INST_RETIRED.NOT_TAKEN / BR_INST_RETIRED.ALL_BRANCHES",
4526635df2fSIan Rogers        "MetricGroup": "Bad;Branches;CodeGen;PGO",
4536635df2fSIan Rogers        "MetricName": "tma_info_cond_nt"
4546635df2fSIan Rogers    },
4556635df2fSIan Rogers    {
4566635df2fSIan Rogers        "BriefDescription": "Fraction of branches that are taken conditionals",
4576635df2fSIan Rogers        "MetricExpr": "(BR_INST_RETIRED.CONDITIONAL - BR_INST_RETIRED.NOT_TAKEN) / BR_INST_RETIRED.ALL_BRANCHES",
4586635df2fSIan Rogers        "MetricGroup": "Bad;Branches;CodeGen;PGO",
4596635df2fSIan Rogers        "MetricName": "tma_info_cond_tk"
4606635df2fSIan Rogers    },
4616635df2fSIan Rogers    {
4626635df2fSIan Rogers        "BriefDescription": "Probability of Core Bound bottleneck hidden by SMT-profiling artifacts",
4636635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
4646635df2fSIan Rogers        "MetricExpr": "(100 * (1 - tma_core_bound / tma_ports_utilization if tma_core_bound < tma_ports_utilization else 1) if tma_info_smt_2t_utilization > 0.5 else 0)",
4656635df2fSIan Rogers        "MetricGroup": "Cor;SMT",
4666635df2fSIan Rogers        "MetricName": "tma_info_core_bound_likely",
4676635df2fSIan Rogers        "MetricThreshold": "tma_info_core_bound_likely > 0.5"
4686635df2fSIan Rogers    },
4696635df2fSIan Rogers    {
4706635df2fSIan Rogers        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
4716635df2fSIan 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_clks))",
4726635df2fSIan Rogers        "MetricGroup": "SMT",
4736635df2fSIan Rogers        "MetricName": "tma_info_core_clks"
4746635df2fSIan Rogers    },
4756635df2fSIan Rogers    {
4766635df2fSIan Rogers        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
4776635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_clks",
4786635df2fSIan Rogers        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
4796635df2fSIan Rogers        "MetricName": "tma_info_coreipc"
4806635df2fSIan Rogers    },
4816635df2fSIan Rogers    {
4826635df2fSIan Rogers        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
4836635df2fSIan Rogers        "MetricExpr": "1 / tma_info_ipc",
4846635df2fSIan Rogers        "MetricGroup": "Mem;Pipeline",
4856635df2fSIan Rogers        "MetricName": "tma_info_cpi"
4866635df2fSIan Rogers    },
4876635df2fSIan Rogers    {
4886635df2fSIan Rogers        "BriefDescription": "Average CPU Utilization",
4896635df2fSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
4906635df2fSIan Rogers        "MetricGroup": "HPC;Summary",
4916635df2fSIan Rogers        "MetricName": "tma_info_cpu_utilization"
4926635df2fSIan Rogers    },
4936635df2fSIan Rogers    {
4946635df2fSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss data reads",
4956635df2fSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
4966635df2fSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
4976635df2fSIan Rogers        "MetricName": "tma_info_data_l2_mlp"
4986635df2fSIan Rogers    },
4996635df2fSIan Rogers    {
5006635df2fSIan Rogers        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
5016635df2fSIan Rogers        "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
5026635df2fSIan Rogers        "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
5036635df2fSIan Rogers        "MetricName": "tma_info_dram_bw_use",
5046635df2fSIan Rogers        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_info_memory_bandwidth, tma_mem_bandwidth, tma_sq_full"
5056635df2fSIan Rogers    },
5066635df2fSIan Rogers    {
5076635df2fSIan Rogers        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
5086635df2fSIan Rogers        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
5096635df2fSIan Rogers        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
5106635df2fSIan Rogers        "MetricName": "tma_info_dsb_coverage",
5116635df2fSIan Rogers        "MetricThreshold": "tma_info_dsb_coverage < 0.7 & tma_info_ipc / 4 > 0.35",
5126635df2fSIan 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_dsb_misses, tma_info_iptb, tma_lcp"
5136635df2fSIan Rogers    },
5146635df2fSIan Rogers    {
5156635df2fSIan Rogers        "BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fetch_BW Bottleneck",
5166635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
5176635df2fSIan Rogers        "MetricExpr": "100 * (tma_fetch_latency * tma_dsb_switches / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches) + tma_fetch_bandwidth * tma_mite / (tma_dsb + tma_mite))",
5186635df2fSIan Rogers        "MetricGroup": "DSBmiss;Fed;tma_issueFB",
5196635df2fSIan Rogers        "MetricName": "tma_info_dsb_misses",
5206635df2fSIan Rogers        "MetricThreshold": "tma_info_dsb_misses > 10",
5216635df2fSIan Rogers        "PublicDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fetch_BW Bottleneck. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_dsb_coverage, tma_info_iptb, tma_lcp"
5226635df2fSIan Rogers    },
5236635df2fSIan Rogers    {
5246635df2fSIan Rogers        "BriefDescription": "Average number of cycles of a switch from the DSB fetch-unit to MITE fetch unit - see DSB_Switches tree node for details.",
5256635df2fSIan Rogers        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / DSB2MITE_SWITCHES.COUNT",
5266635df2fSIan Rogers        "MetricGroup": "DSBmiss",
5276635df2fSIan Rogers        "MetricName": "tma_info_dsb_switch_cost"
5286635df2fSIan Rogers    },
5296635df2fSIan Rogers    {
5306635df2fSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-thread",
5316635df2fSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
5326635df2fSIan Rogers        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
5336635df2fSIan Rogers        "MetricName": "tma_info_execute"
5346635df2fSIan Rogers    },
5356635df2fSIan Rogers    {
5366635df2fSIan Rogers        "BriefDescription": "The ratio of Executed- by Issued-Uops",
5376635df2fSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
5386635df2fSIan Rogers        "MetricGroup": "Cor;Pipeline",
5396635df2fSIan Rogers        "MetricName": "tma_info_execute_per_issue",
5406635df2fSIan 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."
5416635df2fSIan Rogers    },
5426635df2fSIan Rogers    {
5436635df2fSIan Rogers        "BriefDescription": "Fill Buffer (FB) hits per kilo instructions for retired demand loads (L1D misses that merge into ongoing miss-handling entries)",
5446635df2fSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.FB_HIT / INST_RETIRED.ANY",
5456635df2fSIan Rogers        "MetricGroup": "CacheMisses;Mem",
5466635df2fSIan Rogers        "MetricName": "tma_info_fb_hpki"
5476635df2fSIan Rogers    },
5486635df2fSIan Rogers    {
5496635df2fSIan Rogers        "BriefDescription": "Average number of Uops issued by front-end when it issued something",
5506635df2fSIan Rogers        "MetricExpr": "UOPS_ISSUED.ANY / cpu@UOPS_ISSUED.ANY\\,cmask\\=1@",
5516635df2fSIan Rogers        "MetricGroup": "Fed;FetchBW",
5526635df2fSIan Rogers        "MetricName": "tma_info_fetch_upc"
5536635df2fSIan Rogers    },
5546635df2fSIan Rogers    {
5556635df2fSIan Rogers        "BriefDescription": "Floating Point Operations Per Cycle",
5566635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
5576635df2fSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * (FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE) + 8 * (FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE) + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) / tma_info_core_clks",
5586635df2fSIan Rogers        "MetricGroup": "Flops;Ret",
5596635df2fSIan Rogers        "MetricName": "tma_info_flopc"
5606635df2fSIan Rogers    },
5616635df2fSIan Rogers    {
5626635df2fSIan Rogers        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
5636635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
5646635df2fSIan Rogers        "MetricExpr": "(cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@) / (2 * tma_info_core_clks)",
5656635df2fSIan Rogers        "MetricGroup": "Cor;Flops;HPC",
5666635df2fSIan Rogers        "MetricName": "tma_info_fp_arith_utilization",
5676635df2fSIan 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)."
5686635df2fSIan Rogers    },
5696635df2fSIan Rogers    {
5706635df2fSIan Rogers        "BriefDescription": "Giga Floating Point Operations Per Second",
5716635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
5726635df2fSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * (FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE) + 8 * (FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE) + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE) / 1e9 / duration_time",
5736635df2fSIan Rogers        "MetricGroup": "Cor;Flops;HPC",
5746635df2fSIan Rogers        "MetricName": "tma_info_gflops",
5756635df2fSIan Rogers        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width and AMX engine."
5766635df2fSIan Rogers    },
5776635df2fSIan Rogers    {
5786635df2fSIan Rogers        "BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bottleneck",
5796635df2fSIan Rogers        "MetricExpr": "100 * (tma_fetch_latency * tma_icache_misses / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches))",
5806635df2fSIan Rogers        "MetricGroup": "Fed;FetchLat;IcMiss;tma_issueFL",
5816635df2fSIan Rogers        "MetricName": "tma_info_ic_misses",
5826635df2fSIan Rogers        "MetricThreshold": "tma_info_ic_misses > 5",
5836635df2fSIan Rogers        "PublicDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bottleneck. Related metrics: "
5846635df2fSIan Rogers    },
5856635df2fSIan Rogers    {
5866635df2fSIan Rogers        "BriefDescription": "Average Latency for L1 instruction cache misses",
5876635df2fSIan Rogers        "MetricExpr": "ICACHE_16B.IFDATA_STALL / cpu@ICACHE_16B.IFDATA_STALL\\,cmask\\=1\\,edge@ + 2",
5886635df2fSIan Rogers        "MetricGroup": "Fed;FetchLat;IcMiss",
5896635df2fSIan Rogers        "MetricName": "tma_info_icache_miss_latency"
5906635df2fSIan Rogers    },
5916635df2fSIan Rogers    {
5926635df2fSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
5936635df2fSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / (UOPS_EXECUTED.CORE_CYCLES_GE_1 / 2 if #SMT_on else UOPS_EXECUTED.CORE_CYCLES_GE_1)",
5946635df2fSIan Rogers        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
5956635df2fSIan Rogers        "MetricName": "tma_info_ilp"
5966635df2fSIan Rogers    },
5976635df2fSIan Rogers    {
5986635df2fSIan Rogers        "BriefDescription": "Total pipeline cost of instruction fetch bandwidth related bottlenecks",
5996635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
6006635df2fSIan Rogers        "MetricExpr": "100 * (tma_frontend_bound - tma_fetch_latency * tma_mispredicts_resteers / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches)) - tma_info_big_code",
6016635df2fSIan Rogers        "MetricGroup": "Fed;FetchBW;Frontend",
6026635df2fSIan Rogers        "MetricName": "tma_info_instruction_fetch_bw",
6036635df2fSIan Rogers        "MetricThreshold": "tma_info_instruction_fetch_bw > 20"
6046635df2fSIan Rogers    },
6056635df2fSIan Rogers    {
6066635df2fSIan Rogers        "BriefDescription": "Total number of retired Instructions",
6076635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY",
6086635df2fSIan Rogers        "MetricGroup": "Summary;TmaL1;tma_L1_group",
6096635df2fSIan Rogers        "MetricName": "tma_info_instructions",
6106635df2fSIan Rogers        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
6116635df2fSIan Rogers    },
6126635df2fSIan Rogers    {
6136635df2fSIan Rogers        "BriefDescription": "Average IO (network or disk) Bandwidth Use for Reads [GB / sec]",
6146635df2fSIan Rogers        "MetricExpr": "(UNC_IIO_DATA_REQ_OF_CPU.MEM_WRITE.PART0 + UNC_IIO_DATA_REQ_OF_CPU.MEM_WRITE.PART1 + UNC_IIO_DATA_REQ_OF_CPU.MEM_WRITE.PART2 + UNC_IIO_DATA_REQ_OF_CPU.MEM_WRITE.PART3) * 4 / 1e9 / duration_time",
6156635df2fSIan Rogers        "MetricGroup": "IoBW;Mem;Server;SoC",
6166635df2fSIan Rogers        "MetricName": "tma_info_io_read_bw"
6176635df2fSIan Rogers    },
6186635df2fSIan Rogers    {
6196635df2fSIan Rogers        "BriefDescription": "Average IO (network or disk) Bandwidth Use for Writes [GB / sec]",
6206635df2fSIan Rogers        "MetricExpr": "(UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART0 + UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART1 + UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART2 + UNC_IIO_DATA_REQ_OF_CPU.MEM_READ.PART3) * 4 / 1e9 / duration_time",
6216635df2fSIan Rogers        "MetricGroup": "IoBW;Mem;Server;SoC",
6226635df2fSIan Rogers        "MetricName": "tma_info_io_write_bw"
6236635df2fSIan Rogers    },
6246635df2fSIan Rogers    {
6256635df2fSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
6266635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
6276635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0xfc@)",
6286635df2fSIan Rogers        "MetricGroup": "Flops;InsType",
6296635df2fSIan Rogers        "MetricName": "tma_info_iparith",
6306635df2fSIan Rogers        "MetricThreshold": "tma_info_iparith < 10",
6316635df2fSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW."
6326635df2fSIan Rogers    },
6336635df2fSIan Rogers    {
6346635df2fSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
6356635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE)",
6366635df2fSIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
6376635df2fSIan Rogers        "MetricName": "tma_info_iparith_avx128",
6386635df2fSIan Rogers        "MetricThreshold": "tma_info_iparith_avx128 < 10",
6396635df2fSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
6406635df2fSIan Rogers    },
6416635df2fSIan Rogers    {
6426635df2fSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
6436635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
6446635df2fSIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
6456635df2fSIan Rogers        "MetricName": "tma_info_iparith_avx256",
6466635df2fSIan Rogers        "MetricThreshold": "tma_info_iparith_avx256 < 10",
6476635df2fSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
6486635df2fSIan Rogers    },
6496635df2fSIan Rogers    {
6506635df2fSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX 512-bit instruction (lower number means higher occurrence rate)",
6516635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE)",
6526635df2fSIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
6536635df2fSIan Rogers        "MetricName": "tma_info_iparith_avx512",
6546635df2fSIan Rogers        "MetricThreshold": "tma_info_iparith_avx512 < 10",
6556635df2fSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX 512-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
6566635df2fSIan Rogers    },
6576635df2fSIan Rogers    {
6586635df2fSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
6596635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
6606635df2fSIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
6616635df2fSIan Rogers        "MetricName": "tma_info_iparith_scalar_dp",
6626635df2fSIan Rogers        "MetricThreshold": "tma_info_iparith_scalar_dp < 10",
6636635df2fSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
6646635df2fSIan Rogers    },
6656635df2fSIan Rogers    {
6666635df2fSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
6676635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
6686635df2fSIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
6696635df2fSIan Rogers        "MetricName": "tma_info_iparith_scalar_sp",
6706635df2fSIan Rogers        "MetricThreshold": "tma_info_iparith_scalar_sp < 10",
6716635df2fSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
6726635df2fSIan Rogers    },
6736635df2fSIan Rogers    {
6746635df2fSIan Rogers        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
6756635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
6766635df2fSIan Rogers        "MetricGroup": "Branches;Fed;InsType",
6776635df2fSIan Rogers        "MetricName": "tma_info_ipbranch",
6786635df2fSIan Rogers        "MetricThreshold": "tma_info_ipbranch < 8"
6796635df2fSIan Rogers    },
6806635df2fSIan Rogers    {
6816635df2fSIan Rogers        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
6826635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_clks",
6836635df2fSIan Rogers        "MetricGroup": "Ret;Summary",
6846635df2fSIan Rogers        "MetricName": "tma_info_ipc"
6856635df2fSIan Rogers    },
6866635df2fSIan Rogers    {
6876635df2fSIan Rogers        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
6886635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
6896635df2fSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
6906635df2fSIan Rogers        "MetricName": "tma_info_ipcall",
6916635df2fSIan Rogers        "MetricThreshold": "tma_info_ipcall < 200"
6926635df2fSIan Rogers    },
6936635df2fSIan Rogers    {
6946635df2fSIan Rogers        "BriefDescription": "Instructions per non-speculative DSB miss (lower number means higher occurrence rate)",
6956635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FRONTEND_RETIRED.ANY_DSB_MISS",
6966635df2fSIan Rogers        "MetricGroup": "DSBmiss;Fed",
6976635df2fSIan Rogers        "MetricName": "tma_info_ipdsb_miss_ret",
6986635df2fSIan Rogers        "MetricThreshold": "tma_info_ipdsb_miss_ret < 50"
6996635df2fSIan Rogers    },
7006635df2fSIan Rogers    {
7016635df2fSIan 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]",
7026635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
7036635df2fSIan Rogers        "MetricGroup": "Branches;OS",
7046635df2fSIan Rogers        "MetricName": "tma_info_ipfarbranch",
7056635df2fSIan Rogers        "MetricThreshold": "tma_info_ipfarbranch < 1e6"
7066635df2fSIan Rogers    },
7076635df2fSIan Rogers    {
7086635df2fSIan Rogers        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
7096635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
7106635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * (FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE) + 8 * (FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.512B_PACKED_DOUBLE) + 16 * FP_ARITH_INST_RETIRED.512B_PACKED_SINGLE)",
7116635df2fSIan Rogers        "MetricGroup": "Flops;InsType",
7126635df2fSIan Rogers        "MetricName": "tma_info_ipflop",
7136635df2fSIan Rogers        "MetricThreshold": "tma_info_ipflop < 10"
7146635df2fSIan Rogers    },
7156635df2fSIan Rogers    {
7166635df2fSIan Rogers        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
7176635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_LOADS",
7186635df2fSIan Rogers        "MetricGroup": "InsType",
7196635df2fSIan Rogers        "MetricName": "tma_info_ipload",
7206635df2fSIan Rogers        "MetricThreshold": "tma_info_ipload < 3"
7216635df2fSIan Rogers    },
7226635df2fSIan Rogers    {
7236635df2fSIan Rogers        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
7246635df2fSIan Rogers        "MetricExpr": "tma_info_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * cpu@BR_MISP_EXEC.ALL_BRANCHES\\,umask\\=0xE4@)",
7256635df2fSIan Rogers        "MetricGroup": "Bad;BrMispredicts",
7266635df2fSIan Rogers        "MetricName": "tma_info_ipmisp_indirect",
7276635df2fSIan Rogers        "MetricThreshold": "tma_info_ipmisp_indirect < 1e3"
7286635df2fSIan Rogers    },
7296635df2fSIan Rogers    {
7306635df2fSIan Rogers        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
7316635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
7326635df2fSIan Rogers        "MetricGroup": "Bad;BadSpec;BrMispredicts",
7336635df2fSIan Rogers        "MetricName": "tma_info_ipmispredict",
7346635df2fSIan Rogers        "MetricThreshold": "tma_info_ipmispredict < 200"
7356635df2fSIan Rogers    },
7366635df2fSIan Rogers    {
7376635df2fSIan Rogers        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
7386635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_STORES",
7396635df2fSIan Rogers        "MetricGroup": "InsType",
7406635df2fSIan Rogers        "MetricName": "tma_info_ipstore",
7416635df2fSIan Rogers        "MetricThreshold": "tma_info_ipstore < 8"
7426635df2fSIan Rogers    },
7436635df2fSIan Rogers    {
7446635df2fSIan Rogers        "BriefDescription": "Instructions per Software prefetch instruction (of any type: NTA/T0/T1/T2/Prefetch) (lower number means higher occurrence rate)",
7456635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / cpu@SW_PREFETCH_ACCESS.T0\\,umask\\=0xF@",
7466635df2fSIan Rogers        "MetricGroup": "Prefetches",
7476635df2fSIan Rogers        "MetricName": "tma_info_ipswpf",
7486635df2fSIan Rogers        "MetricThreshold": "tma_info_ipswpf < 100"
7496635df2fSIan Rogers    },
7506635df2fSIan Rogers    {
7516635df2fSIan Rogers        "BriefDescription": "Instruction per taken branch",
7526635df2fSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
7536635df2fSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
7546635df2fSIan Rogers        "MetricName": "tma_info_iptb",
7556635df2fSIan Rogers        "MetricThreshold": "tma_info_iptb < 9",
7566635df2fSIan Rogers        "PublicDescription": "Instruction per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_dsb_coverage, tma_info_dsb_misses, tma_lcp"
7576635df2fSIan Rogers    },
7586635df2fSIan Rogers    {
7596635df2fSIan Rogers        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
7606635df2fSIan Rogers        "MetricExpr": "tma_info_instructions / BACLEARS.ANY",
7616635df2fSIan Rogers        "MetricGroup": "Fed",
7626635df2fSIan Rogers        "MetricName": "tma_info_ipunknown_branch"
7636635df2fSIan Rogers    },
7646635df2fSIan Rogers    {
7656635df2fSIan Rogers        "BriefDescription": "Fraction of branches that are unconditional (direct or indirect) jumps",
7666635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
7676635df2fSIan Rogers        "MetricExpr": "(BR_INST_RETIRED.NEAR_TAKEN - (BR_INST_RETIRED.CONDITIONAL - BR_INST_RETIRED.NOT_TAKEN) - 2 * BR_INST_RETIRED.NEAR_CALL) / BR_INST_RETIRED.ALL_BRANCHES",
7686635df2fSIan Rogers        "MetricGroup": "Bad;Branches",
7696635df2fSIan Rogers        "MetricName": "tma_info_jump"
7706635df2fSIan Rogers    },
7716635df2fSIan Rogers    {
7726635df2fSIan Rogers        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
7736635df2fSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
7746635df2fSIan Rogers        "MetricGroup": "OS",
7756635df2fSIan Rogers        "MetricName": "tma_info_kernel_cpi"
7766635df2fSIan Rogers    },
7776635df2fSIan Rogers    {
7786635df2fSIan Rogers        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
7796635df2fSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
7806635df2fSIan Rogers        "MetricGroup": "OS",
7816635df2fSIan Rogers        "MetricName": "tma_info_kernel_utilization",
7826635df2fSIan Rogers        "MetricThreshold": "tma_info_kernel_utilization > 0.05"
7836635df2fSIan Rogers    },
7846635df2fSIan Rogers    {
7856635df2fSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
7866635df2fSIan Rogers        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
7876635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW",
7886635df2fSIan Rogers        "MetricName": "tma_info_l1d_cache_fill_bw"
7896635df2fSIan Rogers    },
7906635df2fSIan Rogers    {
7916635df2fSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
7926635df2fSIan Rogers        "MetricExpr": "tma_info_l1d_cache_fill_bw",
7936635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW",
7946635df2fSIan Rogers        "MetricName": "tma_info_l1d_cache_fill_bw_1t"
7956635df2fSIan Rogers    },
7966635df2fSIan Rogers    {
7976635df2fSIan Rogers        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
7986635df2fSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L1_MISS / INST_RETIRED.ANY",
7996635df2fSIan Rogers        "MetricGroup": "CacheMisses;Mem",
8006635df2fSIan Rogers        "MetricName": "tma_info_l1mpki"
8016635df2fSIan Rogers    },
8026635df2fSIan Rogers    {
8036635df2fSIan Rogers        "BriefDescription": "L1 cache true misses per kilo instruction for all demand loads (including speculative)",
8046635df2fSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.ALL_DEMAND_DATA_RD / INST_RETIRED.ANY",
8056635df2fSIan Rogers        "MetricGroup": "CacheMisses;Mem",
8066635df2fSIan Rogers        "MetricName": "tma_info_l1mpki_load"
8076635df2fSIan Rogers    },
8086635df2fSIan Rogers    {
8096635df2fSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
8106635df2fSIan Rogers        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
8116635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW",
8126635df2fSIan Rogers        "MetricName": "tma_info_l2_cache_fill_bw"
8136635df2fSIan Rogers    },
8146635df2fSIan Rogers    {
8156635df2fSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
8166635df2fSIan Rogers        "MetricExpr": "tma_info_l2_cache_fill_bw",
8176635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW",
8186635df2fSIan Rogers        "MetricName": "tma_info_l2_cache_fill_bw_1t"
8196635df2fSIan Rogers    },
8206635df2fSIan Rogers    {
8216635df2fSIan Rogers        "BriefDescription": "Rate of non silent evictions from the L2 cache per Kilo instruction",
8226635df2fSIan Rogers        "MetricExpr": "1e3 * L2_LINES_OUT.NON_SILENT / tma_info_instructions",
8236635df2fSIan Rogers        "MetricGroup": "L2Evicts;Mem;Server",
8246635df2fSIan Rogers        "MetricName": "tma_info_l2_evictions_nonsilent_pki"
8256635df2fSIan Rogers    },
8266635df2fSIan Rogers    {
8276635df2fSIan Rogers        "BriefDescription": "Rate of silent evictions from the L2 cache per Kilo instruction where the evicted lines are dropped (no writeback to L3 or memory)",
8286635df2fSIan Rogers        "MetricExpr": "1e3 * L2_LINES_OUT.SILENT / tma_info_instructions",
8296635df2fSIan Rogers        "MetricGroup": "L2Evicts;Mem;Server",
8306635df2fSIan Rogers        "MetricName": "tma_info_l2_evictions_silent_pki"
8316635df2fSIan Rogers    },
8326635df2fSIan Rogers    {
8336635df2fSIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
8346635df2fSIan Rogers        "MetricExpr": "1e3 * (L2_RQSTS.REFERENCES - L2_RQSTS.MISS) / INST_RETIRED.ANY",
8356635df2fSIan Rogers        "MetricGroup": "CacheMisses;Mem",
8366635df2fSIan Rogers        "MetricName": "tma_info_l2hpki_all"
8376635df2fSIan Rogers    },
8386635df2fSIan Rogers    {
8396635df2fSIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
8406635df2fSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
8416635df2fSIan Rogers        "MetricGroup": "CacheMisses;Mem",
8426635df2fSIan Rogers        "MetricName": "tma_info_l2hpki_load"
8436635df2fSIan Rogers    },
8446635df2fSIan Rogers    {
8456635df2fSIan Rogers        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
8466635df2fSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
8476635df2fSIan Rogers        "MetricGroup": "Backend;CacheMisses;Mem",
8486635df2fSIan Rogers        "MetricName": "tma_info_l2mpki"
8496635df2fSIan Rogers    },
8506635df2fSIan Rogers    {
8516635df2fSIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
8526635df2fSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.MISS / INST_RETIRED.ANY",
8536635df2fSIan Rogers        "MetricGroup": "CacheMisses;Mem;Offcore",
8546635df2fSIan Rogers        "MetricName": "tma_info_l2mpki_all"
8556635df2fSIan Rogers    },
8566635df2fSIan Rogers    {
8576635df2fSIan Rogers        "BriefDescription": "L2 cache true code cacheline misses per kilo instruction",
8586635df2fSIan Rogers        "MetricExpr": "1e3 * FRONTEND_RETIRED.L2_MISS / INST_RETIRED.ANY",
8596635df2fSIan Rogers        "MetricGroup": "IcMiss",
8606635df2fSIan Rogers        "MetricName": "tma_info_l2mpki_code"
8616635df2fSIan Rogers    },
8626635df2fSIan Rogers    {
8636635df2fSIan Rogers        "BriefDescription": "L2 cache speculative code cacheline misses per kilo instruction",
8646635df2fSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.CODE_RD_MISS / INST_RETIRED.ANY",
8656635df2fSIan Rogers        "MetricGroup": "IcMiss",
8666635df2fSIan Rogers        "MetricName": "tma_info_l2mpki_code_all"
8676635df2fSIan Rogers    },
8686635df2fSIan Rogers    {
8696635df2fSIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
8706635df2fSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
8716635df2fSIan Rogers        "MetricGroup": "CacheMisses;Mem",
8726635df2fSIan Rogers        "MetricName": "tma_info_l2mpki_load"
8736635df2fSIan Rogers    },
8746635df2fSIan Rogers    {
8756635df2fSIan Rogers        "BriefDescription": "Average per-core data access bandwidth to the L3 cache [GB / sec]",
8766635df2fSIan Rogers        "MetricExpr": "64 * OFFCORE_REQUESTS.ALL_REQUESTS / 1e9 / duration_time",
8776635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore",
8786635df2fSIan Rogers        "MetricName": "tma_info_l3_cache_access_bw"
8796635df2fSIan Rogers    },
8806635df2fSIan Rogers    {
8816635df2fSIan Rogers        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
8826635df2fSIan Rogers        "MetricExpr": "tma_info_l3_cache_access_bw",
8836635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore",
8846635df2fSIan Rogers        "MetricName": "tma_info_l3_cache_access_bw_1t"
8856635df2fSIan Rogers    },
8866635df2fSIan Rogers    {
8876635df2fSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
8886635df2fSIan Rogers        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
8896635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW",
8906635df2fSIan Rogers        "MetricName": "tma_info_l3_cache_fill_bw"
8916635df2fSIan Rogers    },
8926635df2fSIan Rogers    {
8936635df2fSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
8946635df2fSIan Rogers        "MetricExpr": "tma_info_l3_cache_fill_bw",
8956635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW",
8966635df2fSIan Rogers        "MetricName": "tma_info_l3_cache_fill_bw_1t"
8976635df2fSIan Rogers    },
8986635df2fSIan Rogers    {
8996635df2fSIan Rogers        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
9006635df2fSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_RETIRED.L3_MISS / INST_RETIRED.ANY",
9016635df2fSIan Rogers        "MetricGroup": "CacheMisses;Mem",
9026635df2fSIan Rogers        "MetricName": "tma_info_l3mpki"
9036635df2fSIan Rogers    },
9046635df2fSIan Rogers    {
9056635df2fSIan Rogers        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
9066635df2fSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
9076635df2fSIan Rogers        "MetricGroup": "Memory_Lat;Offcore",
9086635df2fSIan Rogers        "MetricName": "tma_info_load_l2_miss_latency"
9096635df2fSIan Rogers    },
9106635df2fSIan Rogers    {
9116635df2fSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
9126635df2fSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
9136635df2fSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
9146635df2fSIan Rogers        "MetricName": "tma_info_load_l2_mlp"
9156635df2fSIan Rogers    },
9166635df2fSIan Rogers    {
9176635df2fSIan Rogers        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
9186635df2fSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_RETIRED.L1_MISS + MEM_LOAD_RETIRED.FB_HIT)",
9196635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBound;MemoryLat",
9206635df2fSIan Rogers        "MetricName": "tma_info_load_miss_real_latency"
9216635df2fSIan Rogers    },
9226635df2fSIan Rogers    {
9236635df2fSIan Rogers        "BriefDescription": "STLB (2nd level TLB) data load speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
9246635df2fSIan Rogers        "MetricExpr": "1e3 * DTLB_LOAD_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
9256635df2fSIan Rogers        "MetricGroup": "Mem;MemoryTLB",
9266635df2fSIan Rogers        "MetricName": "tma_info_load_stlb_mpki"
9276635df2fSIan Rogers    },
9286635df2fSIan Rogers    {
9296635df2fSIan Rogers        "BriefDescription": "Average latency of data read request to external DRAM memory [in nanoseconds]",
9306635df2fSIan Rogers        "MetricExpr": "1e9 * (UNC_M_RPQ_OCCUPANCY / UNC_M_RPQ_INSERTS) / imc_0@event\\=0x0@",
9316635df2fSIan Rogers        "MetricGroup": "Mem;MemoryLat;Server;SoC",
9326635df2fSIan Rogers        "MetricName": "tma_info_mem_dram_read_latency",
9336635df2fSIan Rogers        "PublicDescription": "Average latency of data read request to external DRAM memory [in nanoseconds]. Accounts for demand loads and L1/L2 data-read prefetches"
9346635df2fSIan Rogers    },
9356635df2fSIan Rogers    {
9366635df2fSIan Rogers        "BriefDescription": "Average number of parallel data read requests to external memory",
9376635df2fSIan Rogers        "MetricExpr": "UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD / UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD@thresh\\=1@",
9386635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW;SoC",
9396635df2fSIan Rogers        "MetricName": "tma_info_mem_parallel_reads",
9406635df2fSIan Rogers        "PublicDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches"
9416635df2fSIan Rogers    },
9426635df2fSIan Rogers    {
9436635df2fSIan Rogers        "BriefDescription": "Average latency of data read request to external 3D X-Point memory [in nanoseconds]",
94431c5ba6cSIan Rogers        "MetricExpr": "(1e9 * (UNC_M_PMM_RPQ_OCCUPANCY.ALL / UNC_M_PMM_RPQ_INSERTS) / imc_0@event\\=0x0@ if #has_pmem > 0 else 0)",
9456635df2fSIan Rogers        "MetricGroup": "Mem;MemoryLat;Server;SoC",
9466635df2fSIan Rogers        "MetricName": "tma_info_mem_pmm_read_latency",
9476635df2fSIan Rogers        "PublicDescription": "Average latency of data read request to external 3D X-Point memory [in nanoseconds]. Accounts for demand loads and L1/L2 data-read prefetches"
9486635df2fSIan Rogers    },
9496635df2fSIan Rogers    {
9506635df2fSIan Rogers        "BriefDescription": "Average latency of data read request to external memory (in nanoseconds)",
9516635df2fSIan Rogers        "MetricExpr": "1e9 * (UNC_CHA_TOR_OCCUPANCY.IA_MISS_DRD / UNC_CHA_TOR_INSERTS.IA_MISS_DRD) / (tma_info_socket_clks / duration_time)",
9526635df2fSIan Rogers        "MetricGroup": "Mem;MemoryLat;SoC",
9536635df2fSIan Rogers        "MetricName": "tma_info_mem_read_latency",
9546635df2fSIan Rogers        "PublicDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches. ([RKL+]memory-controller only)"
9556635df2fSIan Rogers    },
9566635df2fSIan Rogers    {
9576635df2fSIan Rogers        "BriefDescription": "Total pipeline cost of (external) Memory Bandwidth related bottlenecks",
9586635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
9596635df2fSIan Rogers        "MetricExpr": "100 * tma_memory_bound * (tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * (tma_mem_bandwidth / (tma_mem_bandwidth + tma_mem_latency)) + tma_l3_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * (tma_sq_full / (tma_contested_accesses + tma_data_sharing + tma_l3_hit_latency + tma_sq_full))) + tma_l1_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * (tma_fb_full / (tma_4k_aliasing + tma_dtlb_load + tma_fb_full + tma_lock_latency + tma_split_loads + tma_store_fwd_blk))",
9606635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore;tma_issueBW",
9616635df2fSIan Rogers        "MetricName": "tma_info_memory_bandwidth",
9626635df2fSIan Rogers        "MetricThreshold": "tma_info_memory_bandwidth > 20",
9636635df2fSIan Rogers        "PublicDescription": "Total pipeline cost of (external) Memory Bandwidth related bottlenecks. Related metrics: tma_fb_full, tma_info_dram_bw_use, tma_mem_bandwidth, tma_sq_full"
9646635df2fSIan Rogers    },
9656635df2fSIan Rogers    {
9666635df2fSIan Rogers        "BriefDescription": "Total pipeline cost of Memory Address Translation related bottlenecks (data-side TLBs)",
9676635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
9686635df2fSIan Rogers        "MetricExpr": "100 * tma_memory_bound * (tma_l1_bound / max(tma_memory_bound, tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * (tma_dtlb_load / max(tma_l1_bound, tma_4k_aliasing + tma_dtlb_load + tma_fb_full + tma_lock_latency + tma_split_loads + tma_store_fwd_blk)) + tma_store_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * (tma_dtlb_store / (tma_dtlb_store + tma_false_sharing + tma_split_stores + tma_store_latency)))",
9696635df2fSIan Rogers        "MetricGroup": "Mem;MemoryTLB;Offcore;tma_issueTLB",
9706635df2fSIan Rogers        "MetricName": "tma_info_memory_data_tlbs",
9716635df2fSIan Rogers        "MetricThreshold": "tma_info_memory_data_tlbs > 20",
9726635df2fSIan Rogers        "PublicDescription": "Total pipeline cost of Memory Address Translation related bottlenecks (data-side TLBs). Related metrics: tma_dtlb_load, tma_dtlb_store"
9736635df2fSIan Rogers    },
9746635df2fSIan Rogers    {
9756635df2fSIan Rogers        "BriefDescription": "Total pipeline cost of Memory Latency related bottlenecks (external memory and off-core caches)",
9766635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
9776635df2fSIan Rogers        "MetricExpr": "100 * tma_memory_bound * (tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * (tma_mem_latency / (tma_mem_bandwidth + tma_mem_latency)) + tma_l3_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound) * (tma_l3_hit_latency / (tma_contested_accesses + tma_data_sharing + tma_l3_hit_latency + tma_sq_full)) + tma_l2_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_pmm_bound + tma_store_bound))",
9786635df2fSIan Rogers        "MetricGroup": "Mem;MemoryLat;Offcore;tma_issueLat",
9796635df2fSIan Rogers        "MetricName": "tma_info_memory_latency",
9806635df2fSIan Rogers        "MetricThreshold": "tma_info_memory_latency > 20",
9816635df2fSIan Rogers        "PublicDescription": "Total pipeline cost of Memory Latency related bottlenecks (external memory and off-core caches). Related metrics: tma_l3_hit_latency, tma_mem_latency"
9826635df2fSIan Rogers    },
9836635df2fSIan Rogers    {
9846635df2fSIan Rogers        "BriefDescription": "Total pipeline cost of Branch Misprediction related bottlenecks",
9856635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
9866635df2fSIan Rogers        "MetricExpr": "100 * (tma_branch_mispredicts + tma_fetch_latency * tma_mispredicts_resteers / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches))",
9876635df2fSIan Rogers        "MetricGroup": "Bad;BadSpec;BrMispredicts;tma_issueBM",
9886635df2fSIan Rogers        "MetricName": "tma_info_mispredictions",
9896635df2fSIan Rogers        "MetricThreshold": "tma_info_mispredictions > 20",
9906635df2fSIan Rogers        "PublicDescription": "Total pipeline cost of Branch Misprediction related bottlenecks. Related metrics: tma_branch_mispredicts, tma_info_branch_misprediction_cost, tma_mispredicts_resteers"
9916635df2fSIan Rogers    },
9926635df2fSIan Rogers    {
9936635df2fSIan Rogers        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
9946635df2fSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
9956635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW;MemoryBound",
9966635df2fSIan Rogers        "MetricName": "tma_info_mlp",
9976635df2fSIan Rogers        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
9986635df2fSIan Rogers    },
9996635df2fSIan Rogers    {
10006635df2fSIan Rogers        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
10016635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
10026635df2fSIan Rogers        "MetricExpr": "(ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING + EPT.WALK_PENDING) / (2 * tma_info_core_clks)",
10036635df2fSIan Rogers        "MetricGroup": "Mem;MemoryTLB",
10046635df2fSIan Rogers        "MetricName": "tma_info_page_walks_utilization",
10056635df2fSIan Rogers        "MetricThreshold": "tma_info_page_walks_utilization > 0.5"
10066635df2fSIan Rogers    },
10076635df2fSIan Rogers    {
10086635df2fSIan Rogers        "BriefDescription": "Average 3DXP Memory Bandwidth Use for reads [GB / sec]",
100931c5ba6cSIan Rogers        "MetricExpr": "(64 * UNC_M_PMM_RPQ_INSERTS / 1e9 / duration_time if #has_pmem > 0 else 0)",
10106635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW;Server;SoC",
10116635df2fSIan Rogers        "MetricName": "tma_info_pmm_read_bw"
10126635df2fSIan Rogers    },
10136635df2fSIan Rogers    {
10146635df2fSIan Rogers        "BriefDescription": "Average 3DXP Memory Bandwidth Use for Writes [GB / sec]",
101531c5ba6cSIan Rogers        "MetricExpr": "(64 * UNC_M_PMM_WPQ_INSERTS / 1e9 / duration_time if #has_pmem > 0 else 0)",
10166635df2fSIan Rogers        "MetricGroup": "Mem;MemoryBW;Server;SoC",
10176635df2fSIan Rogers        "MetricName": "tma_info_pmm_write_bw"
10186635df2fSIan Rogers    },
10196635df2fSIan Rogers    {
10206635df2fSIan Rogers        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for baseline license level 0",
10216635df2fSIan Rogers        "MetricExpr": "(CORE_POWER.LVL0_TURBO_LICENSE / 2 / tma_info_core_clks if #SMT_on else CORE_POWER.LVL0_TURBO_LICENSE / tma_info_core_clks)",
10226635df2fSIan Rogers        "MetricGroup": "Power",
10236635df2fSIan Rogers        "MetricName": "tma_info_power_license0_utilization",
10246635df2fSIan Rogers        "PublicDescription": "Fraction of Core cycles where the core was running with power-delivery for baseline license level 0.  This includes non-AVX codes, SSE, AVX 128-bit, and low-current AVX 256-bit codes."
10256635df2fSIan Rogers    },
10266635df2fSIan Rogers    {
10276635df2fSIan Rogers        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 1",
10286635df2fSIan Rogers        "MetricExpr": "(CORE_POWER.LVL1_TURBO_LICENSE / 2 / tma_info_core_clks if #SMT_on else CORE_POWER.LVL1_TURBO_LICENSE / tma_info_core_clks)",
10296635df2fSIan Rogers        "MetricGroup": "Power",
10306635df2fSIan Rogers        "MetricName": "tma_info_power_license1_utilization",
10316635df2fSIan Rogers        "MetricThreshold": "tma_info_power_license1_utilization > 0.5",
10326635df2fSIan Rogers        "PublicDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 1.  This includes high current AVX 256-bit instructions as well as low current AVX 512-bit instructions."
10336635df2fSIan Rogers    },
10346635df2fSIan Rogers    {
10356635df2fSIan Rogers        "BriefDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 2 (introduced in SKX)",
10366635df2fSIan Rogers        "MetricExpr": "(CORE_POWER.LVL2_TURBO_LICENSE / 2 / tma_info_core_clks if #SMT_on else CORE_POWER.LVL2_TURBO_LICENSE / tma_info_core_clks)",
10376635df2fSIan Rogers        "MetricGroup": "Power",
10386635df2fSIan Rogers        "MetricName": "tma_info_power_license2_utilization",
10396635df2fSIan Rogers        "MetricThreshold": "tma_info_power_license2_utilization > 0.5",
10406635df2fSIan Rogers        "PublicDescription": "Fraction of Core cycles where the core was running with power-delivery for license level 2 (introduced in SKX).  This includes high current AVX 512-bit instructions."
10416635df2fSIan Rogers    },
10426635df2fSIan Rogers    {
10436635df2fSIan Rogers        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
10446635df2fSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
10456635df2fSIan Rogers        "MetricGroup": "Pipeline;Ret",
10466635df2fSIan Rogers        "MetricName": "tma_info_retire"
10476635df2fSIan Rogers    },
10486635df2fSIan Rogers    {
10496635df2fSIan Rogers        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
10506635df2fSIan Rogers        "MetricExpr": "4 * tma_info_core_clks",
10516635df2fSIan Rogers        "MetricGroup": "TmaL1;tma_L1_group",
10526635df2fSIan Rogers        "MetricName": "tma_info_slots"
10536635df2fSIan Rogers    },
10546635df2fSIan Rogers    {
10556635df2fSIan Rogers        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
10566635df2fSIan Rogers        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
10576635df2fSIan Rogers        "MetricGroup": "SMT",
10586635df2fSIan Rogers        "MetricName": "tma_info_smt_2t_utilization"
10596635df2fSIan Rogers    },
10606635df2fSIan Rogers    {
10616635df2fSIan Rogers        "BriefDescription": "Socket actual clocks when any core is active on that socket",
10626635df2fSIan Rogers        "MetricExpr": "cha_0@event\\=0x0@",
10636635df2fSIan Rogers        "MetricGroup": "SoC",
10646635df2fSIan Rogers        "MetricName": "tma_info_socket_clks"
10656635df2fSIan Rogers    },
10666635df2fSIan Rogers    {
10676635df2fSIan Rogers        "BriefDescription": "STLB (2nd level TLB) data store speculative misses per kilo instruction (misses of any page-size that complete the page walk)",
10686635df2fSIan Rogers        "MetricExpr": "1e3 * DTLB_STORE_MISSES.WALK_COMPLETED / INST_RETIRED.ANY",
10696635df2fSIan Rogers        "MetricGroup": "Mem;MemoryTLB",
10706635df2fSIan Rogers        "MetricName": "tma_info_store_stlb_mpki"
10716635df2fSIan Rogers    },
10726635df2fSIan Rogers    {
10736635df2fSIan Rogers        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
10746635df2fSIan Rogers        "MetricExpr": "tma_info_clks / CPU_CLK_UNHALTED.REF_TSC",
10756635df2fSIan Rogers        "MetricGroup": "Power",
10766635df2fSIan Rogers        "MetricName": "tma_info_turbo_utilization"
10776635df2fSIan Rogers    },
10786635df2fSIan Rogers    {
10796635df2fSIan Rogers        "BriefDescription": "Uops Per Instruction",
10806635df2fSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
10816635df2fSIan Rogers        "MetricGroup": "Pipeline;Ret;Retire",
10826635df2fSIan Rogers        "MetricName": "tma_info_uoppi",
10836635df2fSIan Rogers        "MetricThreshold": "tma_info_uoppi > 1.05"
10846635df2fSIan Rogers    },
10856635df2fSIan Rogers    {
10866635df2fSIan Rogers        "BriefDescription": "Instruction per taken branch",
10876635df2fSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
10886635df2fSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW",
10896635df2fSIan Rogers        "MetricName": "tma_info_uptb",
10906635df2fSIan Rogers        "MetricThreshold": "tma_info_uptb < 6"
10916635df2fSIan Rogers    },
10926635df2fSIan Rogers    {
10936635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
10946635df2fSIan Rogers        "MetricExpr": "ICACHE_64B.IFTAG_STALL / tma_info_clks",
10956635df2fSIan Rogers        "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
10966635df2fSIan Rogers        "MetricName": "tma_itlb_misses",
10976635df2fSIan Rogers        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
10986635df2fSIan 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",
10996635df2fSIan Rogers        "ScaleUnit": "100%"
11006635df2fSIan Rogers    },
11016635df2fSIan Rogers    {
11026635df2fSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
11036635df2fSIan Rogers        "MetricExpr": "max((CYCLE_ACTIVITY.STALLS_MEM_ANY - CYCLE_ACTIVITY.STALLS_L1D_MISS) / tma_info_clks, 0)",
11046635df2fSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
11056635df2fSIan Rogers        "MetricName": "tma_l1_bound",
11066635df2fSIan Rogers        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
11076635df2fSIan Rogers        "PublicDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache.  The L1 data 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 L1. 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_PS;MEM_LOAD_RETIRED.FB_HIT_PS. Related metrics: tma_clears_resteers, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches, tma_ports_utilized_1",
11086635df2fSIan Rogers        "ScaleUnit": "100%"
11096635df2fSIan Rogers    },
11106635df2fSIan Rogers    {
11116635df2fSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
11126635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
11136635df2fSIan Rogers        "MetricExpr": "MEM_LOAD_RETIRED.L2_HIT * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) / (MEM_LOAD_RETIRED.L2_HIT * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@) * ((CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_clks)",
11146635df2fSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
11156635df2fSIan Rogers        "MetricName": "tma_l2_bound",
11166635df2fSIan Rogers        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
11176635df2fSIan 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_PS",
11186635df2fSIan Rogers        "ScaleUnit": "100%"
11196635df2fSIan Rogers    },
11206635df2fSIan Rogers    {
11216635df2fSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
11226635df2fSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L2_MISS - CYCLE_ACTIVITY.STALLS_L3_MISS) / tma_info_clks",
11236635df2fSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
11246635df2fSIan Rogers        "MetricName": "tma_l3_bound",
11256635df2fSIan Rogers        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
11266635df2fSIan 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",
11276635df2fSIan Rogers        "ScaleUnit": "100%"
11286635df2fSIan Rogers    },
11296635df2fSIan Rogers    {
11306635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
11316635df2fSIan Rogers        "MetricExpr": "17 * tma_info_average_frequency * MEM_LOAD_RETIRED.L3_HIT * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_clks",
11326635df2fSIan Rogers        "MetricGroup": "MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
11336635df2fSIan Rogers        "MetricName": "tma_l3_hit_latency",
11346635df2fSIan Rogers        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
11356635df2fSIan Rogers        "PublicDescription": "This metric represents 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_info_memory_latency, tma_mem_latency",
11366635df2fSIan Rogers        "ScaleUnit": "100%"
11376635df2fSIan Rogers    },
11386635df2fSIan Rogers    {
11396635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
11406635df2fSIan Rogers        "MetricExpr": "ILD_STALL.LCP / tma_info_clks",
11416635df2fSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
11426635df2fSIan Rogers        "MetricName": "tma_lcp",
11436635df2fSIan Rogers        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
11446635df2fSIan 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_dsb_coverage, tma_info_dsb_misses, tma_info_iptb",
11456635df2fSIan Rogers        "ScaleUnit": "100%"
11466635df2fSIan Rogers    },
11476635df2fSIan Rogers    {
11486635df2fSIan 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)",
11496635df2fSIan Rogers        "MetricExpr": "tma_retiring - tma_heavy_operations",
11506635df2fSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
11516635df2fSIan Rogers        "MetricName": "tma_light_operations",
11526635df2fSIan Rogers        "MetricThreshold": "tma_light_operations > 0.6",
1153*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
11546635df2fSIan 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 software 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. Sample with: INST_RETIRED.PREC_DIST",
11556635df2fSIan Rogers        "ScaleUnit": "100%"
11566635df2fSIan Rogers    },
11576635df2fSIan Rogers    {
11586635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
11596635df2fSIan 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_clks)",
11606635df2fSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
11616635df2fSIan Rogers        "MetricName": "tma_load_op_utilization",
11626635df2fSIan Rogers        "MetricThreshold": "tma_load_op_utilization > 0.6",
11636635df2fSIan 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",
11646635df2fSIan Rogers        "ScaleUnit": "100%"
11656635df2fSIan Rogers    },
11666635df2fSIan Rogers    {
11676635df2fSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the (first level) DTLB was missed by load accesses, that later on hit in second-level TLB (STLB)",
11686635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
11696635df2fSIan Rogers        "MetricExpr": "tma_dtlb_load - tma_load_stlb_miss",
11706635df2fSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_load_group",
11716635df2fSIan Rogers        "MetricName": "tma_load_stlb_hit",
11726635df2fSIan Rogers        "MetricThreshold": "tma_load_stlb_hit > 0.05 & (tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
11736635df2fSIan Rogers        "ScaleUnit": "100%"
11746635df2fSIan Rogers    },
11756635df2fSIan Rogers    {
11766635df2fSIan Rogers        "BriefDescription": "This metric estimates the fraction of cycles where the Second-level TLB (STLB) was missed by load accesses, performing a hardware page walk",
11776635df2fSIan Rogers        "MetricExpr": "DTLB_LOAD_MISSES.WALK_ACTIVE / tma_info_clks",
11786635df2fSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_load_group",
11796635df2fSIan Rogers        "MetricName": "tma_load_stlb_miss",
11806635df2fSIan Rogers        "MetricThreshold": "tma_load_stlb_miss > 0.05 & (tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
11816635df2fSIan Rogers        "ScaleUnit": "100%"
11826635df2fSIan Rogers    },
11836635df2fSIan Rogers    {
11846635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory",
11856635df2fSIan Rogers        "MetricExpr": "59.5 * tma_info_average_frequency * MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_clks",
11866635df2fSIan Rogers        "MetricGroup": "Server;TopdownL5;tma_L5_group;tma_mem_latency_group",
11876635df2fSIan Rogers        "MetricName": "tma_local_dram",
11886635df2fSIan Rogers        "MetricThreshold": "tma_local_dram > 0.1 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
11896635df2fSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory. Caching will improve the latency and increase performance. Sample with: MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM_PS",
11906635df2fSIan Rogers        "ScaleUnit": "100%"
11916635df2fSIan Rogers    },
11926635df2fSIan Rogers    {
11936635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
11946635df2fSIan Rogers        "MetricExpr": "(12 * max(0, MEM_INST_RETIRED.LOCK_LOADS - L2_RQSTS.ALL_RFO) + MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES * (11 * L2_RQSTS.RFO_HIT + min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO))) / tma_info_clks",
11956635df2fSIan Rogers        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
11966635df2fSIan Rogers        "MetricName": "tma_lock_latency",
11976635df2fSIan Rogers        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
11986635df2fSIan 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_PS. Related metrics: tma_store_latency",
11996635df2fSIan Rogers        "ScaleUnit": "100%"
12006635df2fSIan Rogers    },
12016635df2fSIan Rogers    {
12026635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
12036635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
12046635df2fSIan Rogers        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
12056635df2fSIan Rogers        "MetricGroup": "BadSpec;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
12066635df2fSIan Rogers        "MetricName": "tma_machine_clears",
12076635df2fSIan Rogers        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
1208*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
12096635df2fSIan 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",
12106635df2fSIan Rogers        "ScaleUnit": "100%"
12116635df2fSIan Rogers    },
12126635df2fSIan Rogers    {
12136635df2fSIan 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)",
12146635df2fSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=4@) / tma_info_clks",
12156635df2fSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
12166635df2fSIan Rogers        "MetricName": "tma_mem_bandwidth",
12176635df2fSIan Rogers        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
12186635df2fSIan 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).  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_dram_bw_use, tma_info_memory_bandwidth, tma_sq_full",
12196635df2fSIan Rogers        "ScaleUnit": "100%"
12206635df2fSIan Rogers    },
12216635df2fSIan Rogers    {
12226635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)",
12236635df2fSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_clks - tma_mem_bandwidth",
12246635df2fSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
12256635df2fSIan Rogers        "MetricName": "tma_mem_latency",
12266635df2fSIan Rogers        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
12276635df2fSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM).  This metric does not aggregate requests from other Logical Processors/Physical Cores/sockets (see Uncore counters for that). Related metrics: tma_info_memory_latency, tma_l3_hit_latency",
12286635df2fSIan Rogers        "ScaleUnit": "100%"
12296635df2fSIan Rogers    },
12306635df2fSIan Rogers    {
12316635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
12326635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
12336635df2fSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_MEM_ANY + EXE_ACTIVITY.BOUND_ON_STORES) / (CYCLE_ACTIVITY.STALLS_TOTAL + (EXE_ACTIVITY.1_PORTS_UTIL + tma_retiring * EXE_ACTIVITY.2_PORTS_UTIL) + EXE_ACTIVITY.BOUND_ON_STORES) * tma_backend_bound",
12346635df2fSIan Rogers        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
12356635df2fSIan Rogers        "MetricName": "tma_memory_bound",
12366635df2fSIan Rogers        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
1237*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
12386635df2fSIan 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).",
12396635df2fSIan Rogers        "ScaleUnit": "100%"
12406635df2fSIan Rogers    },
12416635df2fSIan Rogers    {
12426635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring memory operations -- uops for memory load or store accesses.",
12436635df2fSIan Rogers        "MetricExpr": "tma_light_operations * MEM_INST_RETIRED.ANY / INST_RETIRED.ANY",
12446635df2fSIan Rogers        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
12456635df2fSIan Rogers        "MetricName": "tma_memory_operations",
12466635df2fSIan Rogers        "MetricThreshold": "tma_memory_operations > 0.1 & tma_light_operations > 0.6",
12476635df2fSIan Rogers        "ScaleUnit": "100%"
12486635df2fSIan Rogers    },
12496635df2fSIan Rogers    {
12506635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
12516635df2fSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_slots",
12526635df2fSIan Rogers        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
12536635df2fSIan Rogers        "MetricName": "tma_microcode_sequencer",
12546635df2fSIan Rogers        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
12556635df2fSIan 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: IDQ.MS_UOPS. Related metrics: tma_clears_resteers, tma_l1_bound, tma_machine_clears, tma_ms_switches",
12566635df2fSIan Rogers        "ScaleUnit": "100%"
12576635df2fSIan Rogers    },
12586635df2fSIan Rogers    {
12596635df2fSIan 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",
12606635df2fSIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * INT_MISC.CLEAR_RESTEER_CYCLES / tma_info_clks",
12616635df2fSIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueBM",
12626635df2fSIan Rogers        "MetricName": "tma_mispredicts_resteers",
12636635df2fSIan Rogers        "MetricThreshold": "tma_mispredicts_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
12646635df2fSIan 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_branch_misprediction_cost, tma_info_mispredictions",
12656635df2fSIan Rogers        "ScaleUnit": "100%"
12666635df2fSIan Rogers    },
12676635df2fSIan Rogers    {
12686635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
12696635df2fSIan Rogers        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_clks / 2",
12706635df2fSIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
12716635df2fSIan Rogers        "MetricName": "tma_mite",
12726635df2fSIan Rogers        "MetricThreshold": "tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
12736635df2fSIan 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",
12746635df2fSIan Rogers        "ScaleUnit": "100%"
12756635df2fSIan Rogers    },
12766635df2fSIan Rogers    {
12776635df2fSIan Rogers        "BriefDescription": "The Mixing_Vectors metric gives the percentage of injected blend uops out of all uops issued",
12786635df2fSIan Rogers        "MetricExpr": "UOPS_ISSUED.VECTOR_WIDTH_MISMATCH / UOPS_ISSUED.ANY",
12796635df2fSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_issueMV;tma_ports_utilized_0_group",
12806635df2fSIan Rogers        "MetricName": "tma_mixing_vectors",
12816635df2fSIan Rogers        "MetricThreshold": "tma_mixing_vectors > 0.05",
12826635df2fSIan Rogers        "PublicDescription": "The Mixing_Vectors metric gives the percentage of injected blend uops out of all uops issued. Usually a Mixing_Vectors over 5% is worth investigating. Read more in Appendix B1 of the Optimizations Guide for this topic. Related metrics: tma_ms_switches",
12836635df2fSIan Rogers        "ScaleUnit": "100%"
12846635df2fSIan Rogers    },
12856635df2fSIan Rogers    {
12866635df2fSIan 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)",
12876635df2fSIan Rogers        "MetricExpr": "2 * IDQ.MS_SWITCHES / tma_info_clks",
12886635df2fSIan Rogers        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
12896635df2fSIan Rogers        "MetricName": "tma_ms_switches",
12906635df2fSIan Rogers        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
12916635df2fSIan 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",
12926635df2fSIan Rogers        "ScaleUnit": "100%"
12936635df2fSIan Rogers    },
12946635df2fSIan Rogers    {
12956635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring branch instructions that were not fused",
12966635df2fSIan Rogers        "MetricExpr": "tma_light_operations * (BR_INST_RETIRED.ALL_BRANCHES - UOPS_RETIRED.MACRO_FUSED) / UOPS_RETIRED.RETIRE_SLOTS",
12976635df2fSIan Rogers        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
12986635df2fSIan Rogers        "MetricName": "tma_non_fused_branches",
12996635df2fSIan Rogers        "MetricThreshold": "tma_non_fused_branches > 0.1 & tma_light_operations > 0.6",
13006635df2fSIan Rogers        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring branch instructions that were not fused. Non-conditional branches like direct JMP or CALL would count here. Can be used to examine fusible conditional jumps that were not fused.",
13016635df2fSIan Rogers        "ScaleUnit": "100%"
13026635df2fSIan Rogers    },
13036635df2fSIan Rogers    {
13046635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring NOP (no op) instructions",
13056635df2fSIan Rogers        "MetricExpr": "tma_light_operations * INST_RETIRED.NOP / UOPS_RETIRED.RETIRE_SLOTS",
13066635df2fSIan Rogers        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
13076635df2fSIan Rogers        "MetricName": "tma_nop_instructions",
13086635df2fSIan Rogers        "MetricThreshold": "tma_nop_instructions > 0.1 & tma_light_operations > 0.6",
13096635df2fSIan Rogers        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring NOP (no op) instructions. Compilers often use NOPs for certain address alignments - e.g. start address of a function or loop body. Sample with: INST_RETIRED.NOP",
13106635df2fSIan Rogers        "ScaleUnit": "100%"
13116635df2fSIan Rogers    },
13126635df2fSIan Rogers    {
13136635df2fSIan Rogers        "BriefDescription": "This metric represents the remaining light uops fraction the CPU has executed - remaining means not covered by other sibling nodes",
13146635df2fSIan Rogers        "MetricExpr": "max(0, tma_light_operations - (tma_fp_arith + tma_memory_operations + tma_fused_instructions + tma_non_fused_branches + tma_nop_instructions))",
13156635df2fSIan Rogers        "MetricGroup": "Pipeline;TopdownL3;tma_L3_group;tma_light_operations_group",
13166635df2fSIan Rogers        "MetricName": "tma_other_light_ops",
13176635df2fSIan Rogers        "MetricThreshold": "tma_other_light_ops > 0.3 & tma_light_operations > 0.6",
13186635df2fSIan Rogers        "PublicDescription": "This metric represents the remaining light uops fraction the CPU has executed - remaining means not covered by other sibling nodes. May undercount due to FMA double counting",
13196635df2fSIan Rogers        "ScaleUnit": "100%"
13206635df2fSIan Rogers    },
13216635df2fSIan Rogers    {
13226635df2fSIan Rogers        "BriefDescription": "This metric roughly estimates (based on idle latencies) how often the CPU was stalled on accesses to external 3D-Xpoint (Crystal Ridge, a.k.a",
13236635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
132431c5ba6cSIan Rogers        "MetricExpr": "(((1 - ((19 * (MEM_LOAD_L3_MISS_RETIRED.REMOTE_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS)) + 10 * (MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + MEM_LOAD_L3_MISS_RETIRED.REMOTE_FWD * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + MEM_LOAD_L3_MISS_RETIRED.REMOTE_HITM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS))) / (19 * (MEM_LOAD_L3_MISS_RETIRED.REMOTE_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS)) + 10 * (MEM_LOAD_L3_MISS_RETIRED.LOCAL_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + MEM_LOAD_L3_MISS_RETIRED.REMOTE_FWD * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) + MEM_LOAD_L3_MISS_RETIRED.REMOTE_HITM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS)) + (25 * (MEM_LOAD_RETIRED.LOCAL_PMM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) if #has_pmem > 0 else 0) + 33 * (MEM_LOAD_L3_MISS_RETIRED.REMOTE_PMM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) if #has_pmem > 0 else 0))) if #has_pmem > 0 else 0)) * (CYCLE_ACTIVITY.STALLS_L3_MISS / tma_info_clks + (CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_clks - tma_l2_bound) if 1e6 * (MEM_LOAD_L3_MISS_RETIRED.REMOTE_PMM + MEM_LOAD_RETIRED.LOCAL_PMM) > MEM_LOAD_RETIRED.L1_MISS else 0) if #has_pmem > 0 else 0)",
13256635df2fSIan Rogers        "MetricGroup": "MemoryBound;Server;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
13266635df2fSIan Rogers        "MetricName": "tma_pmm_bound",
13276635df2fSIan Rogers        "MetricThreshold": "tma_pmm_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
13286635df2fSIan Rogers        "PublicDescription": "This metric roughly estimates (based on idle latencies) how often the CPU was stalled on accesses to external 3D-Xpoint (Crystal Ridge, a.k.a. IXP) memory by loads, PMM stands for Persistent Memory Module.",
13296635df2fSIan Rogers        "ScaleUnit": "100%"
13306635df2fSIan Rogers    },
13316635df2fSIan Rogers    {
13326635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
13336635df2fSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_clks",
13346635df2fSIan Rogers        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
13356635df2fSIan Rogers        "MetricName": "tma_port_0",
13366635df2fSIan Rogers        "MetricThreshold": "tma_port_0 > 0.6",
13376635df2fSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch). Sample with: UOPS_DISPATCHED_PORT.PORT_0. 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",
13386635df2fSIan Rogers        "ScaleUnit": "100%"
13396635df2fSIan Rogers    },
13406635df2fSIan Rogers    {
13416635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
13426635df2fSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_clks",
13436635df2fSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
13446635df2fSIan Rogers        "MetricName": "tma_port_1",
13456635df2fSIan Rogers        "MetricThreshold": "tma_port_1 > 0.6",
13466635df2fSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU). Sample with: UOPS_DISPATCHED_PORT.PORT_1. 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",
13476635df2fSIan Rogers        "ScaleUnit": "100%"
13486635df2fSIan Rogers    },
13496635df2fSIan Rogers    {
13506635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
13516635df2fSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_clks",
13526635df2fSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
13536635df2fSIan Rogers        "MetricName": "tma_port_2",
13546635df2fSIan Rogers        "MetricThreshold": "tma_port_2 > 0.6",
13556635df2fSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads). Sample with: UOPS_DISPATCHED_PORT.PORT_2",
13566635df2fSIan Rogers        "ScaleUnit": "100%"
13576635df2fSIan Rogers    },
13586635df2fSIan Rogers    {
13596635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
13606635df2fSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_clks",
13616635df2fSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
13626635df2fSIan Rogers        "MetricName": "tma_port_3",
13636635df2fSIan Rogers        "MetricThreshold": "tma_port_3 > 0.6",
13646635df2fSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads). Sample with: UOPS_DISPATCHED_PORT.PORT_3",
13656635df2fSIan Rogers        "ScaleUnit": "100%"
13666635df2fSIan Rogers    },
13676635df2fSIan Rogers    {
13686635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
13696635df2fSIan Rogers        "MetricExpr": "tma_store_op_utilization",
13706635df2fSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
13716635df2fSIan Rogers        "MetricName": "tma_port_4",
13726635df2fSIan Rogers        "MetricThreshold": "tma_port_4 > 0.6",
13736635df2fSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data). Sample with: UOPS_DISPATCHED_PORT.PORT_4. Related metrics: tma_split_stores",
13746635df2fSIan Rogers        "ScaleUnit": "100%"
13756635df2fSIan Rogers    },
13766635df2fSIan Rogers    {
13776635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
13786635df2fSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_clks",
13796635df2fSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
13806635df2fSIan Rogers        "MetricName": "tma_port_5",
13816635df2fSIan Rogers        "MetricThreshold": "tma_port_5 > 0.6",
13826635df2fSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU). Sample with: UOPS_DISPATCHED.PORT_5. 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",
13836635df2fSIan Rogers        "ScaleUnit": "100%"
13846635df2fSIan Rogers    },
13856635df2fSIan Rogers    {
13866635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU)",
13876635df2fSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_6 / tma_info_core_clks",
13886635df2fSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
13896635df2fSIan Rogers        "MetricName": "tma_port_6",
13906635df2fSIan Rogers        "MetricThreshold": "tma_port_6 > 0.6",
13916635df2fSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU). Sample with: UOPS_DISPATCHED_PORT.PORT_6. 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",
13926635df2fSIan Rogers        "ScaleUnit": "100%"
13936635df2fSIan Rogers    },
13946635df2fSIan Rogers    {
13956635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address)",
13966635df2fSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_7 / tma_info_core_clks",
13976635df2fSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_store_op_utilization_group",
13986635df2fSIan Rogers        "MetricName": "tma_port_7",
13996635df2fSIan Rogers        "MetricThreshold": "tma_port_7 > 0.6",
14006635df2fSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address). Sample with: UOPS_DISPATCHED_PORT.PORT_7",
14016635df2fSIan Rogers        "ScaleUnit": "100%"
14026635df2fSIan Rogers    },
14036635df2fSIan Rogers    {
14046635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
14056635df2fSIan Rogers        "MetricExpr": "((EXE_ACTIVITY.EXE_BOUND_0_PORTS + (EXE_ACTIVITY.1_PORTS_UTIL + tma_retiring * EXE_ACTIVITY.2_PORTS_UTIL)) / tma_info_clks if ARITH.DIVIDER_ACTIVE < CYCLE_ACTIVITY.STALLS_TOTAL - CYCLE_ACTIVITY.STALLS_MEM_ANY else (EXE_ACTIVITY.1_PORTS_UTIL + tma_retiring * EXE_ACTIVITY.2_PORTS_UTIL) / tma_info_clks)",
14066635df2fSIan Rogers        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
14076635df2fSIan Rogers        "MetricName": "tma_ports_utilization",
14086635df2fSIan Rogers        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
14096635df2fSIan 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.",
14106635df2fSIan Rogers        "ScaleUnit": "100%"
14116635df2fSIan Rogers    },
14126635df2fSIan Rogers    {
14136635df2fSIan 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)",
14146635df2fSIan Rogers        "MetricExpr": "(UOPS_EXECUTED.CORE_CYCLES_NONE / 2 if #SMT_on else CYCLE_ACTIVITY.STALLS_TOTAL - CYCLE_ACTIVITY.STALLS_MEM_ANY) / tma_info_core_clks",
14156635df2fSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
14166635df2fSIan Rogers        "MetricName": "tma_ports_utilized_0",
14176635df2fSIan Rogers        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
14186635df2fSIan 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.",
14196635df2fSIan Rogers        "ScaleUnit": "100%"
14206635df2fSIan Rogers    },
14216635df2fSIan Rogers    {
14226635df2fSIan 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)",
14236635df2fSIan Rogers        "MetricExpr": "((UOPS_EXECUTED.CORE_CYCLES_GE_1 - UOPS_EXECUTED.CORE_CYCLES_GE_2) / 2 if #SMT_on else EXE_ACTIVITY.1_PORTS_UTIL) / tma_info_core_clks",
14246635df2fSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
14256635df2fSIan Rogers        "MetricName": "tma_ports_utilized_1",
14266635df2fSIan Rogers        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
14276635df2fSIan 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. Related metrics: tma_l1_bound",
14286635df2fSIan Rogers        "ScaleUnit": "100%"
14296635df2fSIan Rogers    },
14306635df2fSIan Rogers    {
14316635df2fSIan 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)",
14326635df2fSIan Rogers        "MetricExpr": "((UOPS_EXECUTED.CORE_CYCLES_GE_2 - UOPS_EXECUTED.CORE_CYCLES_GE_3) / 2 if #SMT_on else EXE_ACTIVITY.2_PORTS_UTIL) / tma_info_core_clks",
14336635df2fSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
14346635df2fSIan Rogers        "MetricName": "tma_ports_utilized_2",
14356635df2fSIan Rogers        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
14366635df2fSIan 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. 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",
14376635df2fSIan Rogers        "ScaleUnit": "100%"
14386635df2fSIan Rogers    },
14396635df2fSIan Rogers    {
14406635df2fSIan 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).",
14416635df2fSIan Rogers        "MetricExpr": "(UOPS_EXECUTED.CORE_CYCLES_GE_3 / 2 if #SMT_on else UOPS_EXECUTED.CORE_CYCLES_GE_3) / tma_info_core_clks",
14426635df2fSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
14436635df2fSIan Rogers        "MetricName": "tma_ports_utilized_3m",
14446635df2fSIan Rogers        "MetricThreshold": "tma_ports_utilized_3m > 0.7 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
14456635df2fSIan Rogers        "ScaleUnit": "100%"
14466635df2fSIan Rogers    },
14476635df2fSIan Rogers    {
14486635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues",
14496635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
14506635df2fSIan Rogers        "MetricExpr": "(89.5 * tma_info_average_frequency * MEM_LOAD_L3_MISS_RETIRED.REMOTE_HITM + 89.5 * tma_info_average_frequency * MEM_LOAD_L3_MISS_RETIRED.REMOTE_FWD) * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_clks",
14516635df2fSIan Rogers        "MetricGroup": "Offcore;Server;Snoop;TopdownL5;tma_L5_group;tma_issueSyncxn;tma_mem_latency_group",
14526635df2fSIan Rogers        "MetricName": "tma_remote_cache",
14536635df2fSIan Rogers        "MetricThreshold": "tma_remote_cache > 0.05 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
14546635df2fSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues. This is caused often due to non-optimal NUMA allocations. #link to NUMA article. Sample with: MEM_LOAD_L3_MISS_RETIRED.REMOTE_HITM_PS;MEM_LOAD_L3_MISS_RETIRED.REMOTE_FWD_PS. Related metrics: tma_contested_accesses, tma_data_sharing, tma_false_sharing, tma_machine_clears",
14556635df2fSIan Rogers        "ScaleUnit": "100%"
14566635df2fSIan Rogers    },
14576635df2fSIan Rogers    {
14586635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory",
14596635df2fSIan Rogers        "MetricExpr": "127 * tma_info_average_frequency * MEM_LOAD_L3_MISS_RETIRED.REMOTE_DRAM * (1 + MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS / 2) / tma_info_clks",
14606635df2fSIan Rogers        "MetricGroup": "Server;Snoop;TopdownL5;tma_L5_group;tma_mem_latency_group",
14616635df2fSIan Rogers        "MetricName": "tma_remote_dram",
14626635df2fSIan Rogers        "MetricThreshold": "tma_remote_dram > 0.1 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
14636635df2fSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory. This is caused often due to non-optimal NUMA allocations. #link to NUMA article. Sample with: MEM_LOAD_L3_MISS_RETIRED.REMOTE_DRAM_PS",
14646635df2fSIan Rogers        "ScaleUnit": "100%"
14656635df2fSIan Rogers    },
14666635df2fSIan Rogers    {
14676635df2fSIan Rogers        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
14686635df2fSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_slots",
14696635df2fSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
14706635df2fSIan Rogers        "MetricName": "tma_retiring",
14716635df2fSIan Rogers        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
1472*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
14736635df2fSIan 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.RETIRE_SLOTS",
14746635df2fSIan Rogers        "ScaleUnit": "100%"
14756635df2fSIan Rogers    },
14766635df2fSIan Rogers    {
14776635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU issue-pipeline was stalled due to serializing operations",
14786635df2fSIan Rogers        "MetricExpr": "PARTIAL_RAT_STALLS.SCOREBOARD / tma_info_clks",
14796635df2fSIan Rogers        "MetricGroup": "PortsUtil;TopdownL5;tma_L5_group;tma_issueSO;tma_ports_utilized_0_group",
14806635df2fSIan Rogers        "MetricName": "tma_serializing_operation",
14816635df2fSIan Rogers        "MetricThreshold": "tma_serializing_operation > 0.1 & (tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)))",
14826635df2fSIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU issue-pipeline was stalled due to serializing operations. Instructions like CPUID; WRMSR or LFENCE serialize the out-of-order execution which may limit performance. Sample with: PARTIAL_RAT_STALLS.SCOREBOARD. Related metrics: tma_ms_switches",
14836635df2fSIan Rogers        "ScaleUnit": "100%"
14846635df2fSIan Rogers    },
14856635df2fSIan Rogers    {
14866635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to PAUSE Instructions",
14876635df2fSIan Rogers        "MetricExpr": "40 * ROB_MISC_EVENTS.PAUSE_INST / tma_info_clks",
14886635df2fSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_serializing_operation_group",
14896635df2fSIan Rogers        "MetricName": "tma_slow_pause",
14906635df2fSIan Rogers        "MetricThreshold": "tma_slow_pause > 0.05 & (tma_serializing_operation > 0.1 & (tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))))",
14916635df2fSIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to PAUSE Instructions. Sample with: MISC_RETIRED.PAUSE_INST",
14926635df2fSIan Rogers        "ScaleUnit": "100%"
14936635df2fSIan Rogers    },
14946635df2fSIan Rogers    {
14956635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
14966635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
14976635df2fSIan Rogers        "MetricExpr": "tma_info_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_clks",
14986635df2fSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
14996635df2fSIan Rogers        "MetricName": "tma_split_loads",
15006635df2fSIan Rogers        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
15016635df2fSIan 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",
15026635df2fSIan Rogers        "ScaleUnit": "100%"
15036635df2fSIan Rogers    },
15046635df2fSIan Rogers    {
15056635df2fSIan Rogers        "BriefDescription": "This metric represents rate of split store accesses",
15066635df2fSIan Rogers        "MetricExpr": "MEM_INST_RETIRED.SPLIT_STORES / tma_info_core_clks",
15076635df2fSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
15086635df2fSIan Rogers        "MetricName": "tma_split_stores",
15096635df2fSIan Rogers        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
15106635df2fSIan 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",
15116635df2fSIan Rogers        "ScaleUnit": "100%"
15126635df2fSIan Rogers    },
15136635df2fSIan Rogers    {
15146635df2fSIan 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)",
15156635df2fSIan Rogers        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_clks",
15166635df2fSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
15176635df2fSIan Rogers        "MetricName": "tma_sq_full",
15186635df2fSIan Rogers        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
15196635df2fSIan 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_dram_bw_use, tma_info_memory_bandwidth, tma_mem_bandwidth",
15206635df2fSIan Rogers        "ScaleUnit": "100%"
15216635df2fSIan Rogers    },
15226635df2fSIan Rogers    {
15236635df2fSIan 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",
15246635df2fSIan Rogers        "MetricExpr": "EXE_ACTIVITY.BOUND_ON_STORES / tma_info_clks",
15256635df2fSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
15266635df2fSIan Rogers        "MetricName": "tma_store_bound",
15276635df2fSIan Rogers        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
15286635df2fSIan 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",
15296635df2fSIan Rogers        "ScaleUnit": "100%"
15306635df2fSIan Rogers    },
15316635df2fSIan Rogers    {
15326635df2fSIan 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",
15336635df2fSIan Rogers        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_clks",
15346635df2fSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
15356635df2fSIan Rogers        "MetricName": "tma_store_fwd_blk",
15366635df2fSIan Rogers        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
15376635df2fSIan 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.",
15386635df2fSIan Rogers        "ScaleUnit": "100%"
15396635df2fSIan Rogers    },
15406635df2fSIan Rogers    {
15416635df2fSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
15426635df2fSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
15436635df2fSIan Rogers        "MetricExpr": "(L2_RQSTS.RFO_HIT * 11 * (1 - MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES) + (1 - MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES) * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO)) / tma_info_clks",
15446635df2fSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
15456635df2fSIan Rogers        "MetricName": "tma_store_latency",
15466635df2fSIan Rogers        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
15476635df2fSIan 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",
15486635df2fSIan Rogers        "ScaleUnit": "100%"
15496635df2fSIan Rogers    },
15506635df2fSIan Rogers    {
15516635df2fSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
15526635df2fSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_clks",
15536635df2fSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
15546635df2fSIan Rogers        "MetricName": "tma_store_op_utilization",
15556635df2fSIan Rogers        "MetricThreshold": "tma_store_op_utilization > 0.6",
15566635df2fSIan Rogers        "ScaleUnit": "100%"
15576635df2fSIan Rogers    },
15586635df2fSIan Rogers    {
15596635df2fSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the TLB was missed by store accesses, hitting in the second-level TLB (STLB)",
15606635df2fSIan Rogers        "MetricExpr": "tma_dtlb_store - tma_store_stlb_miss",
15616635df2fSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_store_group",
15626635df2fSIan Rogers        "MetricName": "tma_store_stlb_hit",
15636635df2fSIan Rogers        "MetricThreshold": "tma_store_stlb_hit > 0.05 & (tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
15646635df2fSIan Rogers        "ScaleUnit": "100%"
15656635df2fSIan Rogers    },
15666635df2fSIan Rogers    {
15676635df2fSIan Rogers        "BriefDescription": "This metric estimates the fraction of cycles where the STLB was missed by store accesses, performing a hardware page walk",
15686635df2fSIan Rogers        "MetricExpr": "DTLB_STORE_MISSES.WALK_ACTIVE / tma_info_core_clks",
15696635df2fSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL5;tma_L5_group;tma_dtlb_store_group",
15706635df2fSIan Rogers        "MetricName": "tma_store_stlb_miss",
15716635df2fSIan Rogers        "MetricThreshold": "tma_store_stlb_miss > 0.05 & (tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
15726635df2fSIan Rogers        "ScaleUnit": "100%"
15736635df2fSIan Rogers    },
15746635df2fSIan Rogers    {
15756635df2fSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears",
15766635df2fSIan Rogers        "MetricExpr": "9 * BACLEARS.ANY / tma_info_clks",
15776635df2fSIan Rogers        "MetricGroup": "BigFoot;FetchLat;TopdownL4;tma_L4_group;tma_branch_resteers_group",
15786635df2fSIan Rogers        "MetricName": "tma_unknown_branches",
15796635df2fSIan Rogers        "MetricThreshold": "tma_unknown_branches > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
15806635df2fSIan 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). Sample with: BACLEARS.ANY",
15816635df2fSIan Rogers        "ScaleUnit": "100%"
15826635df2fSIan Rogers    },
15836635df2fSIan Rogers    {
15846635df2fSIan Rogers        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
15856635df2fSIan Rogers        "MetricExpr": "tma_retiring * UOPS_EXECUTED.X87 / UOPS_EXECUTED.THREAD",
15866635df2fSIan Rogers        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
15876635df2fSIan Rogers        "MetricName": "tma_x87_use",
15886635df2fSIan Rogers        "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
15896635df2fSIan 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.",
15906635df2fSIan Rogers        "ScaleUnit": "100%"
15916635df2fSIan Rogers    },
15926635df2fSIan Rogers    {
15936635df2fSIan Rogers        "BriefDescription": "Percentage of cycles in aborted transactions.",
15946635df2fSIan Rogers        "MetricExpr": "max(cpu@cycles\\-t@ - cpu@cycles\\-ct@, 0) / cycles",
15956635df2fSIan Rogers        "MetricGroup": "transaction",
15966635df2fSIan Rogers        "MetricName": "tsx_aborted_cycles",
15976635df2fSIan Rogers        "ScaleUnit": "100%"
15986635df2fSIan Rogers    },
15996635df2fSIan Rogers    {
16006635df2fSIan Rogers        "BriefDescription": "Number of cycles within a transaction divided by the number of elisions.",
16016635df2fSIan Rogers        "MetricExpr": "cpu@cycles\\-t@ / cpu@el\\-start@",
16026635df2fSIan Rogers        "MetricGroup": "transaction",
16036635df2fSIan Rogers        "MetricName": "tsx_cycles_per_elision",
16046635df2fSIan Rogers        "ScaleUnit": "1cycles / elision"
16056635df2fSIan Rogers    },
16066635df2fSIan Rogers    {
16076635df2fSIan Rogers        "BriefDescription": "Number of cycles within a transaction divided by the number of transactions.",
16086635df2fSIan Rogers        "MetricExpr": "cpu@cycles\\-t@ / cpu@tx\\-start@",
16096635df2fSIan Rogers        "MetricGroup": "transaction",
16106635df2fSIan Rogers        "MetricName": "tsx_cycles_per_transaction",
16116635df2fSIan Rogers        "ScaleUnit": "1cycles / transaction"
16126635df2fSIan Rogers    },
16136635df2fSIan Rogers    {
16146635df2fSIan Rogers        "BriefDescription": "Percentage of cycles within a transaction region.",
16156635df2fSIan Rogers        "MetricExpr": "cpu@cycles\\-t@ / cycles",
16166635df2fSIan Rogers        "MetricGroup": "transaction",
16176635df2fSIan Rogers        "MetricName": "tsx_transactional_cycles",
16186635df2fSIan Rogers        "ScaleUnit": "100%"
1619ecd94f1bSKan Liang    }
1620ecd94f1bSKan Liang]
1621