16d75abd3SAndi Kleen[
26d75abd3SAndi Kleen    {
346db21afSIan Rogers        "BriefDescription": "C2 residency percent per package",
446db21afSIan Rogers        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
56d75abd3SAndi Kleen        "MetricGroup": "Power",
646db21afSIan Rogers        "MetricName": "C2_Pkg_Residency",
75e241aadSIan Rogers        "ScaleUnit": "100%"
85e241aadSIan Rogers    },
95e241aadSIan Rogers    {
105e241aadSIan Rogers        "BriefDescription": "C3 residency percent per core",
115e241aadSIan Rogers        "MetricExpr": "cstate_core@c3\\-residency@ / TSC",
125e241aadSIan Rogers        "MetricGroup": "Power",
135e241aadSIan Rogers        "MetricName": "C3_Core_Residency",
145e241aadSIan Rogers        "ScaleUnit": "100%"
155e241aadSIan Rogers    },
165e241aadSIan Rogers    {
175e241aadSIan Rogers        "BriefDescription": "C3 residency percent per package",
185e241aadSIan Rogers        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
195e241aadSIan Rogers        "MetricGroup": "Power",
205e241aadSIan Rogers        "MetricName": "C3_Pkg_Residency",
215e241aadSIan Rogers        "ScaleUnit": "100%"
225e241aadSIan Rogers    },
235e241aadSIan Rogers    {
2446db21afSIan Rogers        "BriefDescription": "C6 residency percent per core",
2546db21afSIan Rogers        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
2646db21afSIan Rogers        "MetricGroup": "Power",
2746db21afSIan Rogers        "MetricName": "C6_Core_Residency",
2846db21afSIan Rogers        "ScaleUnit": "100%"
2946db21afSIan Rogers    },
3046db21afSIan Rogers    {
315e241aadSIan Rogers        "BriefDescription": "C6 residency percent per package",
325e241aadSIan Rogers        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
335e241aadSIan Rogers        "MetricGroup": "Power",
345e241aadSIan Rogers        "MetricName": "C6_Pkg_Residency",
355e241aadSIan Rogers        "ScaleUnit": "100%"
365e241aadSIan Rogers    },
375e241aadSIan Rogers    {
3846db21afSIan Rogers        "BriefDescription": "C7 residency percent per core",
3946db21afSIan Rogers        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
4046db21afSIan Rogers        "MetricGroup": "Power",
4146db21afSIan Rogers        "MetricName": "C7_Core_Residency",
4246db21afSIan Rogers        "ScaleUnit": "100%"
4346db21afSIan Rogers    },
4446db21afSIan Rogers    {
455e241aadSIan Rogers        "BriefDescription": "C7 residency percent per package",
465e241aadSIan Rogers        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
475e241aadSIan Rogers        "MetricGroup": "Power",
485e241aadSIan Rogers        "MetricName": "C7_Pkg_Residency",
495e241aadSIan Rogers        "ScaleUnit": "100%"
5046db21afSIan Rogers    },
5146db21afSIan Rogers    {
5246db21afSIan Rogers        "BriefDescription": "Uncore frequency per die [GHZ]",
5346db21afSIan Rogers        "MetricExpr": "tma_info_socket_clks / #num_dies / duration_time / 1e9",
5446db21afSIan Rogers        "MetricGroup": "SoC",
5546db21afSIan Rogers        "MetricName": "UNCORE_FREQ"
5646db21afSIan Rogers    },
5746db21afSIan Rogers    {
5846db21afSIan Rogers        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
5946db21afSIan Rogers        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
6046db21afSIan Rogers        "MetricGroup": "smi",
6146db21afSIan Rogers        "MetricName": "smi_cycles",
6246db21afSIan Rogers        "MetricThreshold": "smi_cycles > 0.1",
6346db21afSIan Rogers        "ScaleUnit": "100%"
6446db21afSIan Rogers    },
6546db21afSIan Rogers    {
6646db21afSIan Rogers        "BriefDescription": "Number of SMI interrupts.",
6746db21afSIan Rogers        "MetricExpr": "msr@smi@",
6846db21afSIan Rogers        "MetricGroup": "smi",
6946db21afSIan Rogers        "MetricName": "smi_num",
7046db21afSIan Rogers        "ScaleUnit": "1SMI#"
7146db21afSIan Rogers    },
7246db21afSIan Rogers    {
7346db21afSIan Rogers        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
7446db21afSIan Rogers        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_clks",
7546db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
7646db21afSIan Rogers        "MetricName": "tma_4k_aliasing",
7746db21afSIan Rogers        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
7846db21afSIan 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).",
7946db21afSIan Rogers        "ScaleUnit": "100%"
8046db21afSIan Rogers    },
8146db21afSIan Rogers    {
8246db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
8346db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
8446db21afSIan 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",
8546db21afSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
8646db21afSIan Rogers        "MetricName": "tma_alu_op_utilization",
8746db21afSIan Rogers        "MetricThreshold": "tma_alu_op_utilization > 0.6",
8846db21afSIan Rogers        "ScaleUnit": "100%"
8946db21afSIan Rogers    },
9046db21afSIan Rogers    {
9146db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
9246db21afSIan Rogers        "MetricExpr": "100 * OTHER_ASSISTS.ANY_WB_ASSIST / tma_info_slots",
9346db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
9446db21afSIan Rogers        "MetricName": "tma_assists",
9546db21afSIan Rogers        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
9646db21afSIan 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",
9746db21afSIan Rogers        "ScaleUnit": "100%"
9846db21afSIan Rogers    },
9946db21afSIan Rogers    {
10046db21afSIan 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",
10146db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
10246db21afSIan Rogers        "MetricExpr": "1 - (tma_frontend_bound + tma_bad_speculation + tma_retiring)",
10346db21afSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
10446db21afSIan Rogers        "MetricName": "tma_backend_bound",
10546db21afSIan Rogers        "MetricThreshold": "tma_backend_bound > 0.2",
106*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
10746db21afSIan 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.",
10846db21afSIan Rogers        "ScaleUnit": "100%"
10946db21afSIan Rogers    },
11046db21afSIan Rogers    {
11146db21afSIan Rogers        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
11246db21afSIan 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",
11346db21afSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
11446db21afSIan Rogers        "MetricName": "tma_bad_speculation",
11546db21afSIan Rogers        "MetricThreshold": "tma_bad_speculation > 0.15",
116*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
11746db21afSIan 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.",
11846db21afSIan Rogers        "ScaleUnit": "100%"
11946db21afSIan Rogers    },
12046db21afSIan Rogers    {
12146db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
12246db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
12346db21afSIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
12446db21afSIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
12546db21afSIan Rogers        "MetricName": "tma_branch_mispredicts",
12646db21afSIan Rogers        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
127*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
12846db21afSIan 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_mispredicts_resteers",
12946db21afSIan Rogers        "ScaleUnit": "100%"
13046db21afSIan Rogers    },
13146db21afSIan Rogers    {
13246db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
13346db21afSIan Rogers        "MetricExpr": "12 * (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY) / tma_info_clks",
13446db21afSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
13546db21afSIan Rogers        "MetricName": "tma_branch_resteers",
13646db21afSIan Rogers        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
13746db21afSIan 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",
13846db21afSIan Rogers        "ScaleUnit": "100%"
13946db21afSIan Rogers    },
14046db21afSIan Rogers    {
14146db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
14246db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
14346db21afSIan Rogers        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
14446db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
14546db21afSIan Rogers        "MetricName": "tma_cisc",
14646db21afSIan Rogers        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
14746db21afSIan 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.",
14846db21afSIan Rogers        "ScaleUnit": "100%"
14946db21afSIan Rogers    },
15046db21afSIan Rogers    {
15146db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears",
15246db21afSIan Rogers        "MetricExpr": "MACHINE_CLEARS.COUNT * tma_branch_resteers / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY)",
15346db21afSIan Rogers        "MetricGroup": "BadSpec;MachineClears;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueMC",
15446db21afSIan Rogers        "MetricName": "tma_clears_resteers",
15546db21afSIan Rogers        "MetricThreshold": "tma_clears_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
15646db21afSIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears. Related metrics: tma_l1_bound, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches",
15746db21afSIan Rogers        "ScaleUnit": "100%"
15846db21afSIan Rogers    },
15946db21afSIan Rogers    {
16046db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
16146db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
16246db21afSIan Rogers        "MetricExpr": "(60 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) + 43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD)))) / tma_info_clks",
16346db21afSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
16446db21afSIan Rogers        "MetricName": "tma_contested_accesses",
16546db21afSIan Rogers        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
16646db21afSIan 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",
16746db21afSIan Rogers        "ScaleUnit": "100%"
16846db21afSIan Rogers    },
16946db21afSIan Rogers    {
17046db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
17146db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
17246db21afSIan Rogers        "MetricExpr": "tma_backend_bound - tma_memory_bound",
17346db21afSIan Rogers        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
17446db21afSIan Rogers        "MetricName": "tma_core_bound",
17546db21afSIan Rogers        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
176*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
17746db21afSIan 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).",
17846db21afSIan Rogers        "ScaleUnit": "100%"
17946db21afSIan Rogers    },
18046db21afSIan Rogers    {
18146db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
18246db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
18346db21afSIan Rogers        "MetricExpr": "43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
18446db21afSIan Rogers        "MetricGroup": "Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
18546db21afSIan Rogers        "MetricName": "tma_data_sharing",
18646db21afSIan Rogers        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
18746db21afSIan 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",
18846db21afSIan Rogers        "ScaleUnit": "100%"
18946db21afSIan Rogers    },
19046db21afSIan Rogers    {
19146db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
19246db21afSIan Rogers        "MetricExpr": "ARITH.FPU_DIV_ACTIVE / tma_info_core_clks",
19346db21afSIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group",
19446db21afSIan Rogers        "MetricName": "tma_divider",
19546db21afSIan Rogers        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
19646db21afSIan 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_UOPS",
19746db21afSIan Rogers        "ScaleUnit": "100%"
19846db21afSIan Rogers    },
19946db21afSIan Rogers    {
20046db21afSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
20146db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
20246db21afSIan Rogers        "MetricExpr": "(1 - MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS)) * CYCLE_ACTIVITY.STALLS_L2_MISS / tma_info_clks",
20346db21afSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
20446db21afSIan Rogers        "MetricName": "tma_dram_bound",
20546db21afSIan Rogers        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
20646db21afSIan 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_UOPS_RETIRED.L3_MISS_PS",
20746db21afSIan Rogers        "ScaleUnit": "100%"
20846db21afSIan Rogers    },
20946db21afSIan Rogers    {
21046db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
21146db21afSIan Rogers        "MetricExpr": "(IDQ.ALL_DSB_CYCLES_ANY_UOPS - IDQ.ALL_DSB_CYCLES_4_UOPS) / tma_info_core_clks / 2",
21246db21afSIan Rogers        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
21346db21afSIan Rogers        "MetricName": "tma_dsb",
21446db21afSIan Rogers        "MetricThreshold": "tma_dsb > 0.15 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
21546db21afSIan 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.",
21646db21afSIan Rogers        "ScaleUnit": "100%"
21746db21afSIan Rogers    },
21846db21afSIan Rogers    {
21946db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
22046db21afSIan Rogers        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_clks",
22146db21afSIan Rogers        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
22246db21afSIan Rogers        "MetricName": "tma_dsb_switches",
22346db21afSIan Rogers        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
22446db21afSIan 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. Related metrics: tma_fetch_bandwidth, tma_info_dsb_coverage, tma_info_iptb, tma_lcp",
22546db21afSIan Rogers        "ScaleUnit": "100%"
22646db21afSIan Rogers    },
22746db21afSIan Rogers    {
22846db21afSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
22946db21afSIan Rogers        "MetricExpr": "(8 * DTLB_LOAD_MISSES.STLB_HIT + cpu@DTLB_LOAD_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * DTLB_LOAD_MISSES.WALK_COMPLETED) / tma_info_clks",
23046db21afSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
23146db21afSIan Rogers        "MetricName": "tma_dtlb_load",
23246db21afSIan Rogers        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
23346db21afSIan 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_UOPS_RETIRED.STLB_MISS_LOADS_PS. Related metrics: tma_dtlb_store",
23446db21afSIan Rogers        "ScaleUnit": "100%"
23546db21afSIan Rogers    },
23646db21afSIan Rogers    {
23746db21afSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
23846db21afSIan Rogers        "MetricExpr": "(8 * DTLB_STORE_MISSES.STLB_HIT + cpu@DTLB_STORE_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * DTLB_STORE_MISSES.WALK_COMPLETED) / tma_info_clks",
23946db21afSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
24046db21afSIan Rogers        "MetricName": "tma_dtlb_store",
24146db21afSIan Rogers        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
24246db21afSIan 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_UOPS_RETIRED.STLB_MISS_STORES_PS. Related metrics: tma_dtlb_load",
24346db21afSIan Rogers        "ScaleUnit": "100%"
24446db21afSIan Rogers    },
24546db21afSIan Rogers    {
24646db21afSIan Rogers        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
24746db21afSIan Rogers        "MetricExpr": "(200 * OFFCORE_RESPONSE.DEMAND_RFO.LLC_MISS.REMOTE_HITM + 60 * OFFCORE_RESPONSE.DEMAND_RFO.LLC_HIT.HITM_OTHER_CORE) / tma_info_clks",
24846db21afSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
24946db21afSIan Rogers        "MetricName": "tma_false_sharing",
25046db21afSIan Rogers        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
25146db21afSIan 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",
25246db21afSIan Rogers        "ScaleUnit": "100%"
25346db21afSIan Rogers    },
25446db21afSIan Rogers    {
25546db21afSIan Rogers        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
25646db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
25746db21afSIan Rogers        "MetricExpr": "tma_info_load_miss_real_latency * cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@ / tma_info_clks",
25846db21afSIan Rogers        "MetricGroup": "MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
25946db21afSIan Rogers        "MetricName": "tma_fb_full",
26046db21afSIan Rogers        "MetricThreshold": "tma_fb_full > 0.3",
26146db21afSIan 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_mem_bandwidth, tma_sq_full, tma_store_latency, tma_streaming_stores",
26246db21afSIan Rogers        "ScaleUnit": "100%"
26346db21afSIan Rogers    },
26446db21afSIan Rogers    {
26546db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
26646db21afSIan Rogers        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
26746db21afSIan Rogers        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
26846db21afSIan Rogers        "MetricName": "tma_fetch_bandwidth",
26946db21afSIan Rogers        "MetricThreshold": "tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35",
270*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
27146db21afSIan 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. Related metrics: tma_dsb_switches, tma_info_dsb_coverage, tma_info_iptb, tma_lcp",
27246db21afSIan Rogers        "ScaleUnit": "100%"
27346db21afSIan Rogers    },
27446db21afSIan Rogers    {
27546db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
27646db21afSIan Rogers        "MetricExpr": "4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / tma_info_slots",
27746db21afSIan Rogers        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
27846db21afSIan Rogers        "MetricName": "tma_fetch_latency",
27946db21afSIan Rogers        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
280*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
28146db21afSIan 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: RS_EVENTS.EMPTY_END",
28246db21afSIan Rogers        "ScaleUnit": "100%"
28346db21afSIan Rogers    },
28446db21afSIan Rogers    {
28546db21afSIan Rogers        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
28646db21afSIan Rogers        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
28746db21afSIan Rogers        "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group",
28846db21afSIan Rogers        "MetricName": "tma_fp_arith",
28946db21afSIan Rogers        "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6",
29046db21afSIan 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.",
29146db21afSIan Rogers        "ScaleUnit": "100%"
29246db21afSIan Rogers    },
29346db21afSIan Rogers    {
29446db21afSIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
29546db21afSIan Rogers        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ / UOPS_RETIRED.RETIRE_SLOTS",
29646db21afSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
29746db21afSIan Rogers        "MetricName": "tma_fp_scalar",
29846db21afSIan Rogers        "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
29946db21afSIan 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",
30046db21afSIan Rogers        "ScaleUnit": "100%"
30146db21afSIan Rogers    },
30246db21afSIan Rogers    {
30346db21afSIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
30446db21afSIan Rogers        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0x3c@ / UOPS_RETIRED.RETIRE_SLOTS",
30546db21afSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
30646db21afSIan Rogers        "MetricName": "tma_fp_vector",
30746db21afSIan Rogers        "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
30846db21afSIan 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",
30946db21afSIan Rogers        "ScaleUnit": "100%"
31046db21afSIan Rogers    },
31146db21afSIan Rogers    {
31246db21afSIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors",
31346db21afSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
31446db21afSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
31546db21afSIan Rogers        "MetricName": "tma_fp_vector_128b",
31646db21afSIan Rogers        "MetricThreshold": "tma_fp_vector_128b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
31746db21afSIan 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",
31846db21afSIan Rogers        "ScaleUnit": "100%"
31946db21afSIan Rogers    },
32046db21afSIan Rogers    {
32146db21afSIan Rogers        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors",
32246db21afSIan Rogers        "MetricExpr": "(FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
32346db21afSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
32446db21afSIan Rogers        "MetricName": "tma_fp_vector_256b",
32546db21afSIan Rogers        "MetricThreshold": "tma_fp_vector_256b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
32646db21afSIan 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",
32746db21afSIan Rogers        "ScaleUnit": "100%"
32846db21afSIan Rogers    },
32946db21afSIan Rogers    {
33046db21afSIan Rogers        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
33146db21afSIan Rogers        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_slots",
33246db21afSIan Rogers        "MetricGroup": "PGO;TmaL1;TopdownL1;tma_L1_group",
33346db21afSIan Rogers        "MetricName": "tma_frontend_bound",
33446db21afSIan Rogers        "MetricThreshold": "tma_frontend_bound > 0.15",
335*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
33646db21afSIan 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.",
33746db21afSIan Rogers        "ScaleUnit": "100%"
33846db21afSIan Rogers    },
33946db21afSIan Rogers    {
34046db21afSIan 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",
34146db21afSIan Rogers        "MetricExpr": "tma_microcode_sequencer",
34246db21afSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
34346db21afSIan Rogers        "MetricName": "tma_heavy_operations",
34446db21afSIan Rogers        "MetricThreshold": "tma_heavy_operations > 0.1",
345*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
34646db21afSIan 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.",
34746db21afSIan Rogers        "ScaleUnit": "100%"
34846db21afSIan Rogers    },
34946db21afSIan Rogers    {
35046db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses.",
35146db21afSIan Rogers        "MetricExpr": "ICACHE.IFDATA_STALL / tma_info_clks",
35246db21afSIan Rogers        "MetricGroup": "BigFoot;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
35346db21afSIan Rogers        "MetricName": "tma_icache_misses",
35446db21afSIan Rogers        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
35546db21afSIan Rogers        "ScaleUnit": "100%"
35646db21afSIan Rogers    },
35746db21afSIan Rogers    {
35846db21afSIan Rogers        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
35946db21afSIan Rogers        "MetricExpr": "tma_info_turbo_utilization * TSC / 1e9 / duration_time",
36046db21afSIan Rogers        "MetricGroup": "Power;Summary",
36146db21afSIan Rogers        "MetricName": "tma_info_average_frequency"
36246db21afSIan Rogers    },
36346db21afSIan Rogers    {
36446db21afSIan Rogers        "BriefDescription": "Branch instructions per taken branch.",
36546db21afSIan Rogers        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
36646db21afSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
36746db21afSIan Rogers        "MetricName": "tma_info_bptkbranch"
36846db21afSIan Rogers    },
36946db21afSIan Rogers    {
37046db21afSIan Rogers        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
37146db21afSIan 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",
37246db21afSIan Rogers        "MetricGroup": "Bad;BrMispredicts;tma_issueBM",
37346db21afSIan Rogers        "MetricName": "tma_info_branch_misprediction_cost",
37446db21afSIan Rogers        "PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear). Related metrics: tma_branch_mispredicts, tma_mispredicts_resteers"
37546db21afSIan Rogers    },
37646db21afSIan Rogers    {
37746db21afSIan Rogers        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
37846db21afSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
37946db21afSIan Rogers        "MetricGroup": "Pipeline",
38046db21afSIan Rogers        "MetricName": "tma_info_clks"
38146db21afSIan Rogers    },
38246db21afSIan Rogers    {
38346db21afSIan Rogers        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
38446db21afSIan 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))",
38546db21afSIan Rogers        "MetricGroup": "SMT",
38646db21afSIan Rogers        "MetricName": "tma_info_core_clks"
38746db21afSIan Rogers    },
38846db21afSIan Rogers    {
38946db21afSIan Rogers        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
39046db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_clks",
39146db21afSIan Rogers        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
39246db21afSIan Rogers        "MetricName": "tma_info_coreipc"
39346db21afSIan Rogers    },
39446db21afSIan Rogers    {
39546db21afSIan Rogers        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
39646db21afSIan Rogers        "MetricExpr": "1 / tma_info_ipc",
39746db21afSIan Rogers        "MetricGroup": "Mem;Pipeline",
39846db21afSIan Rogers        "MetricName": "tma_info_cpi"
39946db21afSIan Rogers    },
40046db21afSIan Rogers    {
40146db21afSIan Rogers        "BriefDescription": "Average CPU Utilization",
40246db21afSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
40346db21afSIan Rogers        "MetricGroup": "HPC;Summary",
40446db21afSIan Rogers        "MetricName": "tma_info_cpu_utilization"
40546db21afSIan Rogers    },
40646db21afSIan Rogers    {
40746db21afSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss data reads",
40846db21afSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
40946db21afSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
41046db21afSIan Rogers        "MetricName": "tma_info_data_l2_mlp"
41146db21afSIan Rogers    },
41246db21afSIan Rogers    {
41346db21afSIan Rogers        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
41446db21afSIan Rogers        "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
41546db21afSIan Rogers        "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
41646db21afSIan Rogers        "MetricName": "tma_info_dram_bw_use",
41746db21afSIan Rogers        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"
41846db21afSIan Rogers    },
41946db21afSIan Rogers    {
42046db21afSIan Rogers        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
42146db21afSIan Rogers        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
42246db21afSIan Rogers        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
42346db21afSIan Rogers        "MetricName": "tma_info_dsb_coverage",
42446db21afSIan Rogers        "MetricThreshold": "tma_info_dsb_coverage < 0.7 & tma_info_ipc / 4 > 0.35",
42546db21afSIan 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_iptb, tma_lcp"
42646db21afSIan Rogers    },
42746db21afSIan Rogers    {
42846db21afSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-thread",
42946db21afSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
43046db21afSIan Rogers        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
43146db21afSIan Rogers        "MetricName": "tma_info_execute"
43246db21afSIan Rogers    },
43346db21afSIan Rogers    {
43446db21afSIan Rogers        "BriefDescription": "The ratio of Executed- by Issued-Uops",
43546db21afSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
43646db21afSIan Rogers        "MetricGroup": "Cor;Pipeline",
43746db21afSIan Rogers        "MetricName": "tma_info_execute_per_issue",
43846db21afSIan 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."
43946db21afSIan Rogers    },
44046db21afSIan Rogers    {
44146db21afSIan Rogers        "BriefDescription": "Floating Point Operations Per Cycle",
44246db21afSIan 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) / tma_info_core_clks",
44346db21afSIan Rogers        "MetricGroup": "Flops;Ret",
44446db21afSIan Rogers        "MetricName": "tma_info_flopc"
44546db21afSIan Rogers    },
44646db21afSIan Rogers    {
44746db21afSIan Rogers        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
44846db21afSIan Rogers        "MetricExpr": "(cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0x3c@) / (2 * tma_info_core_clks)",
44946db21afSIan Rogers        "MetricGroup": "Cor;Flops;HPC",
45046db21afSIan Rogers        "MetricName": "tma_info_fp_arith_utilization",
45146db21afSIan 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)."
45246db21afSIan Rogers    },
45346db21afSIan Rogers    {
45446db21afSIan Rogers        "BriefDescription": "Giga Floating Point Operations Per Second",
45546db21afSIan 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) / 1e9 / duration_time",
45646db21afSIan Rogers        "MetricGroup": "Cor;Flops;HPC",
45746db21afSIan Rogers        "MetricName": "tma_info_gflops",
45846db21afSIan 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."
45946db21afSIan Rogers    },
46046db21afSIan Rogers    {
46146db21afSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
46246db21afSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC)",
46346db21afSIan Rogers        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
46446db21afSIan Rogers        "MetricName": "tma_info_ilp"
46546db21afSIan Rogers    },
46646db21afSIan Rogers    {
46746db21afSIan Rogers        "BriefDescription": "Total number of retired Instructions",
46846db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY",
46946db21afSIan Rogers        "MetricGroup": "Summary;TmaL1;tma_L1_group",
47046db21afSIan Rogers        "MetricName": "tma_info_instructions",
47146db21afSIan Rogers        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
47246db21afSIan Rogers    },
47346db21afSIan Rogers    {
47446db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
47546db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0x3c@)",
47646db21afSIan Rogers        "MetricGroup": "Flops;InsType",
47746db21afSIan Rogers        "MetricName": "tma_info_iparith",
47846db21afSIan Rogers        "MetricThreshold": "tma_info_iparith < 10",
47946db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW."
48046db21afSIan Rogers    },
48146db21afSIan Rogers    {
48246db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
48346db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE)",
48446db21afSIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
48546db21afSIan Rogers        "MetricName": "tma_info_iparith_avx128",
48646db21afSIan Rogers        "MetricThreshold": "tma_info_iparith_avx128 < 10",
48746db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
48846db21afSIan Rogers    },
48946db21afSIan Rogers    {
49046db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
49146db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
49246db21afSIan Rogers        "MetricGroup": "Flops;FpVector;InsType",
49346db21afSIan Rogers        "MetricName": "tma_info_iparith_avx256",
49446db21afSIan Rogers        "MetricThreshold": "tma_info_iparith_avx256 < 10",
49546db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
49646db21afSIan Rogers    },
49746db21afSIan Rogers    {
49846db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
49946db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
50046db21afSIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
50146db21afSIan Rogers        "MetricName": "tma_info_iparith_scalar_dp",
50246db21afSIan Rogers        "MetricThreshold": "tma_info_iparith_scalar_dp < 10",
50346db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
50446db21afSIan Rogers    },
50546db21afSIan Rogers    {
50646db21afSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
50746db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
50846db21afSIan Rogers        "MetricGroup": "Flops;FpScalar;InsType",
50946db21afSIan Rogers        "MetricName": "tma_info_iparith_scalar_sp",
51046db21afSIan Rogers        "MetricThreshold": "tma_info_iparith_scalar_sp < 10",
51146db21afSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
51246db21afSIan Rogers    },
51346db21afSIan Rogers    {
51446db21afSIan Rogers        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
51546db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
51646db21afSIan Rogers        "MetricGroup": "Branches;Fed;InsType",
51746db21afSIan Rogers        "MetricName": "tma_info_ipbranch",
51846db21afSIan Rogers        "MetricThreshold": "tma_info_ipbranch < 8"
51946db21afSIan Rogers    },
52046db21afSIan Rogers    {
52146db21afSIan Rogers        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
52246db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_clks",
52346db21afSIan Rogers        "MetricGroup": "Ret;Summary",
52446db21afSIan Rogers        "MetricName": "tma_info_ipc"
52546db21afSIan Rogers    },
52646db21afSIan Rogers    {
52746db21afSIan Rogers        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
52846db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
52946db21afSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
53046db21afSIan Rogers        "MetricName": "tma_info_ipcall",
53146db21afSIan Rogers        "MetricThreshold": "tma_info_ipcall < 200"
53246db21afSIan Rogers    },
53346db21afSIan Rogers    {
53446db21afSIan 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]",
53546db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
53646db21afSIan Rogers        "MetricGroup": "Branches;OS",
53746db21afSIan Rogers        "MetricName": "tma_info_ipfarbranch",
53846db21afSIan Rogers        "MetricThreshold": "tma_info_ipfarbranch < 1e6"
53946db21afSIan Rogers    },
54046db21afSIan Rogers    {
54146db21afSIan Rogers        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
54246db21afSIan 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)",
54346db21afSIan Rogers        "MetricGroup": "Flops;InsType",
54446db21afSIan Rogers        "MetricName": "tma_info_ipflop",
54546db21afSIan Rogers        "MetricThreshold": "tma_info_ipflop < 10"
54646db21afSIan Rogers    },
54746db21afSIan Rogers    {
54846db21afSIan Rogers        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
54946db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
55046db21afSIan Rogers        "MetricGroup": "InsType",
55146db21afSIan Rogers        "MetricName": "tma_info_ipload",
55246db21afSIan Rogers        "MetricThreshold": "tma_info_ipload < 3"
55346db21afSIan Rogers    },
55446db21afSIan Rogers    {
55546db21afSIan Rogers        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
55646db21afSIan Rogers        "MetricExpr": "tma_info_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * cpu@BR_MISP_EXEC.ALL_BRANCHES\\,umask\\=0xE4@)",
55746db21afSIan Rogers        "MetricGroup": "Bad;BrMispredicts",
55846db21afSIan Rogers        "MetricName": "tma_info_ipmisp_indirect",
55946db21afSIan Rogers        "MetricThreshold": "tma_info_ipmisp_indirect < 1e3"
56046db21afSIan Rogers    },
56146db21afSIan Rogers    {
56246db21afSIan Rogers        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
56346db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
56446db21afSIan Rogers        "MetricGroup": "Bad;BadSpec;BrMispredicts",
56546db21afSIan Rogers        "MetricName": "tma_info_ipmispredict",
56646db21afSIan Rogers        "MetricThreshold": "tma_info_ipmispredict < 200"
56746db21afSIan Rogers    },
56846db21afSIan Rogers    {
56946db21afSIan Rogers        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
57046db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
57146db21afSIan Rogers        "MetricGroup": "InsType",
57246db21afSIan Rogers        "MetricName": "tma_info_ipstore",
57346db21afSIan Rogers        "MetricThreshold": "tma_info_ipstore < 8"
57446db21afSIan Rogers    },
57546db21afSIan Rogers    {
57646db21afSIan Rogers        "BriefDescription": "Instruction per taken branch",
57746db21afSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
57846db21afSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
57946db21afSIan Rogers        "MetricName": "tma_info_iptb",
58046db21afSIan Rogers        "MetricThreshold": "tma_info_iptb < 9",
58146db21afSIan Rogers        "PublicDescription": "Instruction per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_dsb_coverage, tma_lcp"
58246db21afSIan Rogers    },
58346db21afSIan Rogers    {
58446db21afSIan Rogers        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
58546db21afSIan Rogers        "MetricExpr": "tma_info_instructions / BACLEARS.ANY",
58646db21afSIan Rogers        "MetricGroup": "Fed",
58746db21afSIan Rogers        "MetricName": "tma_info_ipunknown_branch"
58846db21afSIan Rogers    },
58946db21afSIan Rogers    {
59046db21afSIan Rogers        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
59146db21afSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
59246db21afSIan Rogers        "MetricGroup": "OS",
59346db21afSIan Rogers        "MetricName": "tma_info_kernel_cpi"
59446db21afSIan Rogers    },
59546db21afSIan Rogers    {
59646db21afSIan Rogers        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
59746db21afSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
59846db21afSIan Rogers        "MetricGroup": "OS",
59946db21afSIan Rogers        "MetricName": "tma_info_kernel_utilization",
60046db21afSIan Rogers        "MetricThreshold": "tma_info_kernel_utilization > 0.05"
60146db21afSIan Rogers    },
60246db21afSIan Rogers    {
60346db21afSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
60446db21afSIan Rogers        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
60546db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
60646db21afSIan Rogers        "MetricName": "tma_info_l1d_cache_fill_bw"
60746db21afSIan Rogers    },
60846db21afSIan Rogers    {
60946db21afSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
61046db21afSIan Rogers        "MetricExpr": "tma_info_l1d_cache_fill_bw",
61146db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
61246db21afSIan Rogers        "MetricName": "tma_info_l1d_cache_fill_bw_1t"
61346db21afSIan Rogers    },
61446db21afSIan Rogers    {
61546db21afSIan Rogers        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
61646db21afSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L1_MISS / INST_RETIRED.ANY",
61746db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
61846db21afSIan Rogers        "MetricName": "tma_info_l1mpki"
61946db21afSIan Rogers    },
62046db21afSIan Rogers    {
62146db21afSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
62246db21afSIan Rogers        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
62346db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
62446db21afSIan Rogers        "MetricName": "tma_info_l2_cache_fill_bw"
62546db21afSIan Rogers    },
62646db21afSIan Rogers    {
62746db21afSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
62846db21afSIan Rogers        "MetricExpr": "tma_info_l2_cache_fill_bw",
62946db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
63046db21afSIan Rogers        "MetricName": "tma_info_l2_cache_fill_bw_1t"
63146db21afSIan Rogers    },
63246db21afSIan Rogers    {
63346db21afSIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
63446db21afSIan Rogers        "MetricExpr": "1e3 * (L2_RQSTS.REFERENCES - L2_RQSTS.MISS) / INST_RETIRED.ANY",
63546db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
63646db21afSIan Rogers        "MetricName": "tma_info_l2hpki_all"
63746db21afSIan Rogers    },
63846db21afSIan Rogers    {
63946db21afSIan Rogers        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
64046db21afSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
64146db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
64246db21afSIan Rogers        "MetricName": "tma_info_l2hpki_load"
64346db21afSIan Rogers    },
64446db21afSIan Rogers    {
64546db21afSIan Rogers        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
64646db21afSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L2_MISS / INST_RETIRED.ANY",
64746db21afSIan Rogers        "MetricGroup": "Backend;CacheMisses;Mem",
64846db21afSIan Rogers        "MetricName": "tma_info_l2mpki"
64946db21afSIan Rogers    },
65046db21afSIan Rogers    {
65146db21afSIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
65246db21afSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.MISS / INST_RETIRED.ANY",
65346db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem;Offcore",
65446db21afSIan Rogers        "MetricName": "tma_info_l2mpki_all"
65546db21afSIan Rogers    },
65646db21afSIan Rogers    {
65746db21afSIan Rogers        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
65846db21afSIan Rogers        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
65946db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
66046db21afSIan Rogers        "MetricName": "tma_info_l2mpki_load"
66146db21afSIan Rogers    },
66246db21afSIan Rogers    {
66346db21afSIan Rogers        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
66446db21afSIan Rogers        "MetricExpr": "0",
66546db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore",
66646db21afSIan Rogers        "MetricName": "tma_info_l3_cache_access_bw_1t"
66746db21afSIan Rogers    },
66846db21afSIan Rogers    {
66946db21afSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
67046db21afSIan Rogers        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
67146db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
67246db21afSIan Rogers        "MetricName": "tma_info_l3_cache_fill_bw"
67346db21afSIan Rogers    },
67446db21afSIan Rogers    {
67546db21afSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
67646db21afSIan Rogers        "MetricExpr": "tma_info_l3_cache_fill_bw",
67746db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW",
67846db21afSIan Rogers        "MetricName": "tma_info_l3_cache_fill_bw_1t"
67946db21afSIan Rogers    },
68046db21afSIan Rogers    {
68146db21afSIan Rogers        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
68246db21afSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L3_MISS / INST_RETIRED.ANY",
68346db21afSIan Rogers        "MetricGroup": "CacheMisses;Mem",
68446db21afSIan Rogers        "MetricName": "tma_info_l3mpki"
68546db21afSIan Rogers    },
68646db21afSIan Rogers    {
68746db21afSIan Rogers        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
68846db21afSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
68946db21afSIan Rogers        "MetricGroup": "Memory_Lat;Offcore",
69046db21afSIan Rogers        "MetricName": "tma_info_load_l2_miss_latency"
69146db21afSIan Rogers    },
69246db21afSIan Rogers    {
69346db21afSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
69446db21afSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
69546db21afSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
69646db21afSIan Rogers        "MetricName": "tma_info_load_l2_mlp"
69746db21afSIan Rogers    },
69846db21afSIan Rogers    {
69946db21afSIan Rogers        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
70046db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
70146db21afSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_UOPS_RETIRED.L1_MISS + MEM_LOAD_UOPS_RETIRED.HIT_LFB)",
70246db21afSIan Rogers        "MetricGroup": "Mem;MemoryBound;MemoryLat",
70346db21afSIan Rogers        "MetricName": "tma_info_load_miss_real_latency"
70446db21afSIan Rogers    },
70546db21afSIan Rogers    {
70646db21afSIan Rogers        "BriefDescription": "Average number of parallel data read requests to external memory",
70746db21afSIan Rogers        "MetricExpr": "UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182@ / UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182\\,thresh\\=1@",
70846db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW;SoC",
70946db21afSIan Rogers        "MetricName": "tma_info_mem_parallel_reads",
71046db21afSIan Rogers        "PublicDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches"
71146db21afSIan Rogers    },
71246db21afSIan Rogers    {
71346db21afSIan Rogers        "BriefDescription": "Average latency of data read request to external memory (in nanoseconds)",
71446db21afSIan Rogers        "MetricExpr": "1e9 * (UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182@ / UNC_C_TOR_INSERTS.MISS_OPCODE@filter_opc\\=0x182@) / (tma_info_socket_clks / duration_time)",
71546db21afSIan Rogers        "MetricGroup": "Mem;MemoryLat;SoC",
71646db21afSIan Rogers        "MetricName": "tma_info_mem_read_latency",
71746db21afSIan 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)"
71846db21afSIan Rogers    },
71946db21afSIan Rogers    {
72046db21afSIan Rogers        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
72146db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
72246db21afSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
72346db21afSIan Rogers        "MetricGroup": "Mem;MemoryBW;MemoryBound",
72446db21afSIan Rogers        "MetricName": "tma_info_mlp",
72546db21afSIan Rogers        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
72646db21afSIan Rogers    },
72746db21afSIan Rogers    {
72846db21afSIan Rogers        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
72946db21afSIan Rogers        "MetricExpr": "(ITLB_MISSES.WALK_DURATION + DTLB_LOAD_MISSES.WALK_DURATION + DTLB_STORE_MISSES.WALK_DURATION + 7 * (DTLB_STORE_MISSES.WALK_COMPLETED + DTLB_LOAD_MISSES.WALK_COMPLETED + ITLB_MISSES.WALK_COMPLETED)) / (2 * tma_info_core_clks)",
73046db21afSIan Rogers        "MetricGroup": "Mem;MemoryTLB",
73146db21afSIan Rogers        "MetricName": "tma_info_page_walks_utilization",
73246db21afSIan Rogers        "MetricThreshold": "tma_info_page_walks_utilization > 0.5"
73346db21afSIan Rogers    },
73446db21afSIan Rogers    {
73546db21afSIan Rogers        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
73646db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
73746db21afSIan Rogers        "MetricGroup": "Pipeline;Ret",
73846db21afSIan Rogers        "MetricName": "tma_info_retire"
73946db21afSIan Rogers    },
74046db21afSIan Rogers    {
74146db21afSIan Rogers        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
74246db21afSIan Rogers        "MetricExpr": "4 * tma_info_core_clks",
74346db21afSIan Rogers        "MetricGroup": "TmaL1;tma_L1_group",
74446db21afSIan Rogers        "MetricName": "tma_info_slots"
74546db21afSIan Rogers    },
74646db21afSIan Rogers    {
74746db21afSIan Rogers        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
74846db21afSIan Rogers        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
74946db21afSIan Rogers        "MetricGroup": "SMT",
75046db21afSIan Rogers        "MetricName": "tma_info_smt_2t_utilization"
75146db21afSIan Rogers    },
75246db21afSIan Rogers    {
75346db21afSIan Rogers        "BriefDescription": "Socket actual clocks when any core is active on that socket",
75446db21afSIan Rogers        "MetricExpr": "cbox_0@event\\=0x0@",
75546db21afSIan Rogers        "MetricGroup": "SoC",
75646db21afSIan Rogers        "MetricName": "tma_info_socket_clks"
75746db21afSIan Rogers    },
75846db21afSIan Rogers    {
75946db21afSIan Rogers        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
76046db21afSIan Rogers        "MetricExpr": "tma_info_clks / CPU_CLK_UNHALTED.REF_TSC",
76146db21afSIan Rogers        "MetricGroup": "Power",
76246db21afSIan Rogers        "MetricName": "tma_info_turbo_utilization"
76346db21afSIan Rogers    },
76446db21afSIan Rogers    {
76546db21afSIan Rogers        "BriefDescription": "Uops Per Instruction",
76646db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
76746db21afSIan Rogers        "MetricGroup": "Pipeline;Ret;Retire",
76846db21afSIan Rogers        "MetricName": "tma_info_uoppi",
76946db21afSIan Rogers        "MetricThreshold": "tma_info_uoppi > 1.05"
77046db21afSIan Rogers    },
77146db21afSIan Rogers    {
77246db21afSIan Rogers        "BriefDescription": "Instruction per taken branch",
77346db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
77446db21afSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW",
77546db21afSIan Rogers        "MetricName": "tma_info_uptb",
77646db21afSIan Rogers        "MetricThreshold": "tma_info_uptb < 6"
77746db21afSIan Rogers    },
77846db21afSIan Rogers    {
77946db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
78046db21afSIan Rogers        "MetricExpr": "(14 * ITLB_MISSES.STLB_HIT + cpu@ITLB_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * ITLB_MISSES.WALK_COMPLETED) / tma_info_clks",
78146db21afSIan Rogers        "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
78246db21afSIan Rogers        "MetricName": "tma_itlb_misses",
78346db21afSIan Rogers        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
78446db21afSIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: ITLB_MISSES.WALK_COMPLETED",
78546db21afSIan Rogers        "ScaleUnit": "100%"
78646db21afSIan Rogers    },
78746db21afSIan Rogers    {
78846db21afSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
78946db21afSIan Rogers        "MetricExpr": "max((CYCLE_ACTIVITY.STALLS_MEM_ANY - CYCLE_ACTIVITY.STALLS_L1D_MISS) / tma_info_clks, 0)",
79046db21afSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
79146db21afSIan Rogers        "MetricName": "tma_l1_bound",
79246db21afSIan Rogers        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
79346db21afSIan 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_UOPS_RETIRED.L1_HIT_PS;MEM_LOAD_UOPS_RETIRED.HIT_LFB_PS. Related metrics: tma_clears_resteers, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches, tma_ports_utilized_1",
79446db21afSIan Rogers        "ScaleUnit": "100%"
79546db21afSIan Rogers    },
79646db21afSIan Rogers    {
79746db21afSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
79846db21afSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_clks",
79946db21afSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
80046db21afSIan Rogers        "MetricName": "tma_l2_bound",
80146db21afSIan Rogers        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
80246db21afSIan 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_UOPS_RETIRED.L2_HIT_PS",
80346db21afSIan Rogers        "ScaleUnit": "100%"
80446db21afSIan Rogers    },
80546db21afSIan Rogers    {
80646db21afSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
80746db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
80846db21afSIan Rogers        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS) * CYCLE_ACTIVITY.STALLS_L2_MISS / tma_info_clks",
80946db21afSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
81046db21afSIan Rogers        "MetricName": "tma_l3_bound",
81146db21afSIan Rogers        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
81246db21afSIan 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_UOPS_RETIRED.L3_HIT_PS",
81346db21afSIan Rogers        "ScaleUnit": "100%"
81446db21afSIan Rogers    },
81546db21afSIan Rogers    {
81646db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
81746db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
81846db21afSIan Rogers        "MetricExpr": "41 * (MEM_LOAD_UOPS_RETIRED.L3_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
81946db21afSIan Rogers        "MetricGroup": "MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
82046db21afSIan Rogers        "MetricName": "tma_l3_hit_latency",
82146db21afSIan Rogers        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
82246db21afSIan 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_UOPS_RETIRED.L3_HIT_PS. Related metrics: tma_mem_latency",
82346db21afSIan Rogers        "ScaleUnit": "100%"
82446db21afSIan Rogers    },
82546db21afSIan Rogers    {
82646db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
82746db21afSIan Rogers        "MetricExpr": "ILD_STALL.LCP / tma_info_clks",
82846db21afSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
82946db21afSIan Rogers        "MetricName": "tma_lcp",
83046db21afSIan Rogers        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
83146db21afSIan 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_iptb",
83246db21afSIan Rogers        "ScaleUnit": "100%"
83346db21afSIan Rogers    },
83446db21afSIan Rogers    {
83546db21afSIan 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)",
83646db21afSIan Rogers        "MetricExpr": "tma_retiring - tma_heavy_operations",
83746db21afSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
83846db21afSIan Rogers        "MetricName": "tma_light_operations",
83946db21afSIan Rogers        "MetricThreshold": "tma_light_operations > 0.6",
840*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
84146db21afSIan 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",
84246db21afSIan Rogers        "ScaleUnit": "100%"
84346db21afSIan Rogers    },
84446db21afSIan Rogers    {
84546db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
84646db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
84746db21afSIan 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)",
84846db21afSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
84946db21afSIan Rogers        "MetricName": "tma_load_op_utilization",
85046db21afSIan Rogers        "MetricThreshold": "tma_load_op_utilization > 0.6",
85146db21afSIan 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",
85246db21afSIan Rogers        "ScaleUnit": "100%"
85346db21afSIan Rogers    },
85446db21afSIan Rogers    {
85546db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory",
85646db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
85746db21afSIan Rogers        "MetricExpr": "200 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
85846db21afSIan Rogers        "MetricGroup": "Server;TopdownL5;tma_L5_group;tma_mem_latency_group",
85946db21afSIan Rogers        "MetricName": "tma_local_dram",
86046db21afSIan 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)))",
86146db21afSIan 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_UOPS_L3_MISS_RETIRED.LOCAL_DRAM_PS",
86246db21afSIan Rogers        "ScaleUnit": "100%"
86346db21afSIan Rogers    },
86446db21afSIan Rogers    {
86546db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
86646db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
86746db21afSIan Rogers        "MetricExpr": "MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO) / tma_info_clks",
86846db21afSIan Rogers        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
86946db21afSIan Rogers        "MetricName": "tma_lock_latency",
87046db21afSIan Rogers        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
87146db21afSIan 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_UOPS_RETIRED.LOCK_LOADS_PS. Related metrics: tma_store_latency",
87246db21afSIan Rogers        "ScaleUnit": "100%"
87346db21afSIan Rogers    },
87446db21afSIan Rogers    {
87546db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
87646db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
87746db21afSIan Rogers        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
87846db21afSIan Rogers        "MetricGroup": "BadSpec;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
87946db21afSIan Rogers        "MetricName": "tma_machine_clears",
88046db21afSIan Rogers        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
881*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
88246db21afSIan 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",
88346db21afSIan Rogers        "ScaleUnit": "100%"
88446db21afSIan Rogers    },
88546db21afSIan Rogers    {
88646db21afSIan 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)",
88746db21afSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=4@) / tma_info_clks",
88846db21afSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
88946db21afSIan Rogers        "MetricName": "tma_mem_bandwidth",
89046db21afSIan Rogers        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
89146db21afSIan 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_sq_full",
89246db21afSIan Rogers        "ScaleUnit": "100%"
89346db21afSIan Rogers    },
89446db21afSIan Rogers    {
89546db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)",
89646db21afSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_clks - tma_mem_bandwidth",
89746db21afSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
89846db21afSIan Rogers        "MetricName": "tma_mem_latency",
89946db21afSIan Rogers        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
90046db21afSIan 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_l3_hit_latency",
90146db21afSIan Rogers        "ScaleUnit": "100%"
90246db21afSIan Rogers    },
90346db21afSIan Rogers    {
90446db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
90546db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
90646db21afSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_MEM_ANY + RESOURCE_STALLS.SB) / (CYCLE_ACTIVITY.STALLS_TOTAL + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_ipc > 1.8 else UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB) * tma_backend_bound",
90746db21afSIan Rogers        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
90846db21afSIan Rogers        "MetricName": "tma_memory_bound",
90946db21afSIan Rogers        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
910*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
91146db21afSIan 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).",
91246db21afSIan Rogers        "ScaleUnit": "100%"
91346db21afSIan Rogers    },
91446db21afSIan Rogers    {
91546db21afSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
91646db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_slots",
91746db21afSIan Rogers        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
91846db21afSIan Rogers        "MetricName": "tma_microcode_sequencer",
91946db21afSIan Rogers        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
92046db21afSIan 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",
92146db21afSIan Rogers        "ScaleUnit": "100%"
92246db21afSIan Rogers    },
92346db21afSIan Rogers    {
92446db21afSIan 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",
92546db21afSIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES * tma_branch_resteers / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY)",
92646db21afSIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueBM",
92746db21afSIan Rogers        "MetricName": "tma_mispredicts_resteers",
92846db21afSIan Rogers        "MetricThreshold": "tma_mispredicts_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
92946db21afSIan 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. Related metrics: tma_branch_mispredicts, tma_info_branch_misprediction_cost",
93046db21afSIan Rogers        "ScaleUnit": "100%"
93146db21afSIan Rogers    },
93246db21afSIan Rogers    {
93346db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
93446db21afSIan Rogers        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_clks / 2",
93546db21afSIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
93646db21afSIan Rogers        "MetricName": "tma_mite",
93746db21afSIan Rogers        "MetricThreshold": "tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
93846db21afSIan 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.",
93946db21afSIan Rogers        "ScaleUnit": "100%"
94046db21afSIan Rogers    },
94146db21afSIan Rogers    {
94246db21afSIan 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)",
94346db21afSIan Rogers        "MetricExpr": "2 * IDQ.MS_SWITCHES / tma_info_clks",
94446db21afSIan Rogers        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
94546db21afSIan Rogers        "MetricName": "tma_ms_switches",
94646db21afSIan Rogers        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
94746db21afSIan 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",
94846db21afSIan Rogers        "ScaleUnit": "100%"
94946db21afSIan Rogers    },
95046db21afSIan Rogers    {
95146db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
95246db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_clks",
95346db21afSIan Rogers        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
95446db21afSIan Rogers        "MetricName": "tma_port_0",
95546db21afSIan Rogers        "MetricThreshold": "tma_port_0 > 0.6",
95646db21afSIan 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",
95746db21afSIan Rogers        "ScaleUnit": "100%"
95846db21afSIan Rogers    },
95946db21afSIan Rogers    {
96046db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
96146db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_clks",
96246db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
96346db21afSIan Rogers        "MetricName": "tma_port_1",
96446db21afSIan Rogers        "MetricThreshold": "tma_port_1 > 0.6",
96546db21afSIan 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",
96646db21afSIan Rogers        "ScaleUnit": "100%"
96746db21afSIan Rogers    },
96846db21afSIan Rogers    {
96946db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
97046db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_clks",
97146db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
97246db21afSIan Rogers        "MetricName": "tma_port_2",
97346db21afSIan Rogers        "MetricThreshold": "tma_port_2 > 0.6",
97446db21afSIan 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",
97546db21afSIan Rogers        "ScaleUnit": "100%"
97646db21afSIan Rogers    },
97746db21afSIan Rogers    {
97846db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
97946db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_clks",
98046db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
98146db21afSIan Rogers        "MetricName": "tma_port_3",
98246db21afSIan Rogers        "MetricThreshold": "tma_port_3 > 0.6",
98346db21afSIan 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",
98446db21afSIan Rogers        "ScaleUnit": "100%"
98546db21afSIan Rogers    },
98646db21afSIan Rogers    {
98746db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
98846db21afSIan Rogers        "MetricExpr": "tma_store_op_utilization",
98946db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
99046db21afSIan Rogers        "MetricName": "tma_port_4",
99146db21afSIan Rogers        "MetricThreshold": "tma_port_4 > 0.6",
99246db21afSIan 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",
99346db21afSIan Rogers        "ScaleUnit": "100%"
99446db21afSIan Rogers    },
99546db21afSIan Rogers    {
99646db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
99746db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_clks",
99846db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
99946db21afSIan Rogers        "MetricName": "tma_port_5",
100046db21afSIan Rogers        "MetricThreshold": "tma_port_5 > 0.6",
100146db21afSIan 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",
100246db21afSIan Rogers        "ScaleUnit": "100%"
100346db21afSIan Rogers    },
100446db21afSIan Rogers    {
100546db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU)",
100646db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_6 / tma_info_core_clks",
100746db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
100846db21afSIan Rogers        "MetricName": "tma_port_6",
100946db21afSIan Rogers        "MetricThreshold": "tma_port_6 > 0.6",
101046db21afSIan 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",
101146db21afSIan Rogers        "ScaleUnit": "100%"
101246db21afSIan Rogers    },
101346db21afSIan Rogers    {
101446db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address)",
101546db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_7 / tma_info_core_clks",
101646db21afSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_store_op_utilization_group",
101746db21afSIan Rogers        "MetricName": "tma_port_7",
101846db21afSIan Rogers        "MetricThreshold": "tma_port_7 > 0.6",
101946db21afSIan 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",
102046db21afSIan Rogers        "ScaleUnit": "100%"
102146db21afSIan Rogers    },
102246db21afSIan Rogers    {
102346db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
102446db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
102546db21afSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_TOTAL + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_ipc > 1.8 else UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB - RESOURCE_STALLS.SB - CYCLE_ACTIVITY.STALLS_MEM_ANY) / tma_info_clks",
102646db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
102746db21afSIan Rogers        "MetricName": "tma_ports_utilization",
102846db21afSIan Rogers        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
102946db21afSIan 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.",
103046db21afSIan Rogers        "ScaleUnit": "100%"
103146db21afSIan Rogers    },
103246db21afSIan Rogers    {
103346db21afSIan 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)",
103446db21afSIan Rogers        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,inv\\,cmask\\=1@ / 2 if #SMT_on else (CYCLE_ACTIVITY.STALLS_TOTAL - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0)) / tma_info_core_clks)",
103546db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
103646db21afSIan Rogers        "MetricName": "tma_ports_utilized_0",
103746db21afSIan Rogers        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
103846db21afSIan 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.",
103946db21afSIan Rogers        "ScaleUnit": "100%"
104046db21afSIan Rogers    },
104146db21afSIan Rogers    {
104246db21afSIan 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)",
104346db21afSIan Rogers        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) / 2 if #SMT_on else (UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) / tma_info_core_clks)",
104446db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
104546db21afSIan Rogers        "MetricName": "tma_ports_utilized_1",
104646db21afSIan Rogers        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
104746db21afSIan 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",
104846db21afSIan Rogers        "ScaleUnit": "100%"
104946db21afSIan Rogers    },
105046db21afSIan Rogers    {
105146db21afSIan 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)",
105246db21afSIan Rogers        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / 2 if #SMT_on else (UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC - UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC) / tma_info_core_clks)",
105346db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
105446db21afSIan Rogers        "MetricName": "tma_ports_utilized_2",
105546db21afSIan Rogers        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
105646db21afSIan 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",
105746db21afSIan Rogers        "ScaleUnit": "100%"
105846db21afSIan Rogers    },
105946db21afSIan Rogers    {
106046db21afSIan 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).",
106146db21afSIan Rogers        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC) / tma_info_core_clks",
106246db21afSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
106346db21afSIan Rogers        "MetricName": "tma_ports_utilized_3m",
106446db21afSIan Rogers        "MetricThreshold": "tma_ports_utilized_3m > 0.7 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
106546db21afSIan Rogers        "ScaleUnit": "100%"
106646db21afSIan Rogers    },
106746db21afSIan Rogers    {
106846db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues",
106946db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
107046db21afSIan Rogers        "MetricExpr": "(200 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) + 180 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD)))) / tma_info_clks",
107146db21afSIan Rogers        "MetricGroup": "Offcore;Server;Snoop;TopdownL5;tma_L5_group;tma_issueSyncxn;tma_mem_latency_group",
107246db21afSIan Rogers        "MetricName": "tma_remote_cache",
107346db21afSIan 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)))",
107446db21afSIan 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_UOPS_L3_MISS_RETIRED.REMOTE_HITM_PS;MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD_PS. Related metrics: tma_contested_accesses, tma_data_sharing, tma_false_sharing, tma_machine_clears",
107546db21afSIan Rogers        "ScaleUnit": "100%"
107646db21afSIan Rogers    },
107746db21afSIan Rogers    {
107846db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory",
107946db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
108046db21afSIan Rogers        "MetricExpr": "310 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
108146db21afSIan Rogers        "MetricGroup": "Server;Snoop;TopdownL5;tma_L5_group;tma_mem_latency_group",
108246db21afSIan Rogers        "MetricName": "tma_remote_dram",
108346db21afSIan 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)))",
108446db21afSIan 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_UOPS_L3_MISS_RETIRED.REMOTE_DRAM_PS",
108546db21afSIan Rogers        "ScaleUnit": "100%"
108646db21afSIan Rogers    },
108746db21afSIan Rogers    {
108846db21afSIan Rogers        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
108946db21afSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_slots",
109046db21afSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
109146db21afSIan Rogers        "MetricName": "tma_retiring",
109246db21afSIan Rogers        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
1093*ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
109446db21afSIan 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",
109546db21afSIan Rogers        "ScaleUnit": "100%"
109646db21afSIan Rogers    },
109746db21afSIan Rogers    {
109846db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
109946db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
110046db21afSIan Rogers        "MetricExpr": "tma_info_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_clks",
110146db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
110246db21afSIan Rogers        "MetricName": "tma_split_loads",
110346db21afSIan Rogers        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
110446db21afSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary. Sample with: MEM_UOPS_RETIRED.SPLIT_LOADS_PS",
110546db21afSIan Rogers        "ScaleUnit": "100%"
110646db21afSIan Rogers    },
110746db21afSIan Rogers    {
110846db21afSIan Rogers        "BriefDescription": "This metric represents rate of split store accesses",
110946db21afSIan Rogers        "MetricExpr": "2 * MEM_UOPS_RETIRED.SPLIT_STORES / tma_info_core_clks",
111046db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
111146db21afSIan Rogers        "MetricName": "tma_split_stores",
111246db21afSIan Rogers        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
111346db21afSIan Rogers        "PublicDescription": "This metric represents rate of split store accesses.  Consider aligning your data to the 64-byte cache line granularity. Sample with: MEM_UOPS_RETIRED.SPLIT_STORES_PS. Related metrics: tma_port_4",
111446db21afSIan Rogers        "ScaleUnit": "100%"
111546db21afSIan Rogers    },
111646db21afSIan Rogers    {
111746db21afSIan 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)",
111846db21afSIan Rogers        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_clks",
111946db21afSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
112046db21afSIan Rogers        "MetricName": "tma_sq_full",
112146db21afSIan Rogers        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
112246db21afSIan 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_mem_bandwidth",
112346db21afSIan Rogers        "ScaleUnit": "100%"
112446db21afSIan Rogers    },
112546db21afSIan Rogers    {
112646db21afSIan 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",
112746db21afSIan Rogers        "MetricExpr": "RESOURCE_STALLS.SB / tma_info_clks",
112846db21afSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
112946db21afSIan Rogers        "MetricName": "tma_store_bound",
113046db21afSIan Rogers        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
113146db21afSIan 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_UOPS_RETIRED.ALL_STORES_PS",
113246db21afSIan Rogers        "ScaleUnit": "100%"
113346db21afSIan Rogers    },
113446db21afSIan Rogers    {
113546db21afSIan 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",
113646db21afSIan Rogers        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_clks",
113746db21afSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
113846db21afSIan Rogers        "MetricName": "tma_store_fwd_blk",
113946db21afSIan Rogers        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
114046db21afSIan 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.",
114146db21afSIan Rogers        "ScaleUnit": "100%"
114246db21afSIan Rogers    },
114346db21afSIan Rogers    {
114446db21afSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
114546db21afSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
114646db21afSIan Rogers        "MetricExpr": "(L2_RQSTS.RFO_HIT * 9 * (1 - MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES) + (1 - MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES) * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO)) / tma_info_clks",
114746db21afSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
114846db21afSIan Rogers        "MetricName": "tma_store_latency",
114946db21afSIan Rogers        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
115046db21afSIan 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",
115146db21afSIan Rogers        "ScaleUnit": "100%"
115246db21afSIan Rogers    },
115346db21afSIan Rogers    {
115446db21afSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
115546db21afSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_clks",
115646db21afSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
115746db21afSIan Rogers        "MetricName": "tma_store_op_utilization",
115846db21afSIan Rogers        "MetricThreshold": "tma_store_op_utilization > 0.6",
115946db21afSIan Rogers        "ScaleUnit": "100%"
116046db21afSIan Rogers    },
116146db21afSIan Rogers    {
116246db21afSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears",
116346db21afSIan Rogers        "MetricExpr": "tma_branch_resteers - tma_mispredicts_resteers - tma_clears_resteers",
116446db21afSIan Rogers        "MetricGroup": "BigFoot;FetchLat;TopdownL4;tma_L4_group;tma_branch_resteers_group",
116546db21afSIan Rogers        "MetricName": "tma_unknown_branches",
116646db21afSIan Rogers        "MetricThreshold": "tma_unknown_branches > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
116746db21afSIan 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",
116846db21afSIan Rogers        "ScaleUnit": "100%"
116946db21afSIan Rogers    },
117046db21afSIan Rogers    {
117146db21afSIan Rogers        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
117246db21afSIan Rogers        "MetricExpr": "INST_RETIRED.X87 * tma_info_uoppi / UOPS_RETIRED.RETIRE_SLOTS",
117346db21afSIan Rogers        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
117446db21afSIan Rogers        "MetricName": "tma_x87_use",
117546db21afSIan Rogers        "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
117646db21afSIan 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.",
117746db21afSIan Rogers        "ScaleUnit": "100%"
11786d75abd3SAndi Kleen    }
11796d75abd3SAndi Kleen]
1180