1[
2    {
3        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
4        "MetricExpr": "topdown\\-fe\\-bound / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) - INT_MISC.UOP_DROPPING / SLOTS",
5        "MetricGroup": "PGO;TopdownL1;tma_L1_group",
6        "MetricName": "tma_frontend_bound",
7        "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 Machine_Width uops every cycle to the Backend. Frontend Bound denotes unutilized issue-slots when there is no Backend stall; i.e. bubbles where Frontend delivered no uops while Backend could have accepted them. For example; stalls due to instruction-cache misses would be categorized under Frontend Bound. Sample with: FRONTEND_RETIRED.LATENCY_GE_4_PS",
8        "ScaleUnit": "100%",
9        "Unit": "cpu_core"
10    },
11    {
12        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
13        "MetricExpr": "(topdown\\-fetch\\-lat / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) - INT_MISC.UOP_DROPPING / SLOTS)",
14        "MetricGroup": "Frontend;TopdownL2;tma_L2_group;tma_frontend_bound_group",
15        "MetricName": "tma_fetch_latency",
16        "PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues.  For example; instruction-cache misses; iTLB misses or fetch stalls after a branch misprediction are categorized under Frontend Latency. In such cases; the Frontend eventually delivers no uops for some period. Sample with: FRONTEND_RETIRED.LATENCY_GE_16_PS;FRONTEND_RETIRED.LATENCY_GE_8_PS",
17        "ScaleUnit": "100%",
18        "Unit": "cpu_core"
19    },
20    {
21        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses",
22        "MetricExpr": "ICACHE_DATA.STALLS / CLKS",
23        "MetricGroup": "BigFoot;FetchLat;IcMiss;TopdownL3;tma_fetch_latency_group",
24        "MetricName": "tma_icache_misses",
25        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses. Sample with: FRONTEND_RETIRED.L2_MISS_PS;FRONTEND_RETIRED.L1I_MISS_PS",
26        "ScaleUnit": "100%",
27        "Unit": "cpu_core"
28    },
29    {
30        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
31        "MetricExpr": "ICACHE_TAG.STALLS / CLKS",
32        "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_fetch_latency_group",
33        "MetricName": "tma_itlb_misses",
34        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: FRONTEND_RETIRED.STLB_MISS_PS;FRONTEND_RETIRED.ITLB_MISS_PS",
35        "ScaleUnit": "100%",
36        "Unit": "cpu_core"
37    },
38    {
39        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
40        "MetricExpr": "INT_MISC.CLEAR_RESTEER_CYCLES / CLKS + tma_unknown_branches",
41        "MetricGroup": "FetchLat;TopdownL3;tma_fetch_latency_group",
42        "MetricName": "tma_branch_resteers",
43        "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",
44        "ScaleUnit": "100%",
45        "Unit": "cpu_core"
46    },
47    {
48        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage",
49        "MetricExpr": "(tma_branch_mispredicts / tma_bad_speculation) * INT_MISC.CLEAR_RESTEER_CYCLES / CLKS",
50        "MetricGroup": "BadSpec;BrMispredicts;TopdownL4;tma_branch_resteers_group",
51        "MetricName": "tma_mispredicts_resteers",
52        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage.  Sample with: INT_MISC.CLEAR_RESTEER_CYCLES",
53        "ScaleUnit": "100%",
54        "Unit": "cpu_core"
55    },
56    {
57        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears",
58        "MetricExpr": "(1 - (tma_branch_mispredicts / tma_bad_speculation)) * INT_MISC.CLEAR_RESTEER_CYCLES / CLKS",
59        "MetricGroup": "BadSpec;MachineClears;TopdownL4;tma_branch_resteers_group",
60        "MetricName": "tma_clears_resteers",
61        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears.  Sample with: INT_MISC.CLEAR_RESTEER_CYCLES",
62        "ScaleUnit": "100%",
63        "Unit": "cpu_core"
64    },
65    {
66        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears",
67        "MetricExpr": "INT_MISC.UNKNOWN_BRANCH_CYCLES / CLKS",
68        "MetricGroup": "BigFoot;FetchLat;TopdownL4;tma_branch_resteers_group",
69        "MetricName": "tma_unknown_branches",
70        "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 (First fetch or hitting BPU capacity limit). Sample with: FRONTEND_RETIRED.UNKNOWN_BRANCH",
71        "ScaleUnit": "100%",
72        "Unit": "cpu_core"
73    },
74    {
75        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
76        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / CLKS",
77        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_fetch_latency_group",
78        "MetricName": "tma_dsb_switches",
79        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines. The DSB (decoded i-cache) is a Uop Cache where the front-end directly delivers Uops (micro operations) avoiding heavy x86 decoding. The DSB pipeline has shorter latency and delivered higher bandwidth than the MITE (legacy instruction decode pipeline). Switching between the two pipelines can cause penalties hence this metric measures the exposed penalty. Sample with: FRONTEND_RETIRED.DSB_MISS_PS",
80        "ScaleUnit": "100%",
81        "Unit": "cpu_core"
82    },
83    {
84        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
85        "MetricExpr": "DECODE.LCP / CLKS",
86        "MetricGroup": "FetchLat;TopdownL3;tma_fetch_latency_group",
87        "MetricName": "tma_lcp",
88        "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.",
89        "ScaleUnit": "100%",
90        "Unit": "cpu_core"
91    },
92    {
93        "BriefDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS)",
94        "MetricExpr": "3 * IDQ.MS_SWITCHES / CLKS",
95        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_fetch_latency_group",
96        "MetricName": "tma_ms_switches",
97        "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: FRONTEND_RETIRED.MS_FLOWS",
98        "ScaleUnit": "100%",
99        "Unit": "cpu_core"
100    },
101    {
102        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
103        "MetricExpr": "max(0, tma_frontend_bound - tma_fetch_latency)",
104        "MetricGroup": "FetchBW;Frontend;TopdownL2;tma_L2_group;tma_frontend_bound_group",
105        "MetricName": "tma_fetch_bandwidth",
106        "PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues.  For example; inefficiencies at the instruction decoders; or restrictions for caching in the DSB (decoded uops cache) are categorized under Fetch Bandwidth. In such cases; the Frontend typically delivers suboptimal amount of uops to the Backend. Sample with: FRONTEND_RETIRED.LATENCY_GE_2_BUBBLES_GE_1_PS;FRONTEND_RETIRED.LATENCY_GE_1_PS;FRONTEND_RETIRED.LATENCY_GE_2_PS",
107        "ScaleUnit": "100%",
108        "Unit": "cpu_core"
109    },
110    {
111        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
112        "MetricExpr": "(IDQ.MITE_CYCLES_ANY - IDQ.MITE_CYCLES_OK) / CORE_CLKS / 2",
113        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_fetch_bandwidth_group",
114        "MetricName": "tma_mite",
115        "PublicDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline). This pipeline is used for code that was not pre-cached in the DSB or LSD. For example; inefficiencies due to asymmetric decoders; use of long immediate or LCP can manifest as MITE fetch bandwidth bottleneck. Sample with: FRONTEND_RETIRED.ANY_DSB_MISS",
116        "ScaleUnit": "100%",
117        "Unit": "cpu_core"
118    },
119    {
120        "BriefDescription": "This metric represents fraction of cycles where decoder-0 was the only active decoder",
121        "MetricExpr": "(cpu_core@INST_DECODED.DECODERS\\,cmask\\=1@ - cpu_core@INST_DECODED.DECODERS\\,cmask\\=2@) / CORE_CLKS",
122        "MetricGroup": "DSBmiss;FetchBW;TopdownL4;tma_mite_group",
123        "MetricName": "tma_decoder0_alone",
124        "ScaleUnit": "100%",
125        "Unit": "cpu_core"
126    },
127    {
128        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
129        "MetricExpr": "(IDQ.DSB_CYCLES_ANY - IDQ.DSB_CYCLES_OK) / CORE_CLKS / 2",
130        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_fetch_bandwidth_group",
131        "MetricName": "tma_dsb",
132        "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.",
133        "ScaleUnit": "100%",
134        "Unit": "cpu_core"
135    },
136    {
137        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to LSD (Loop Stream Detector) unit",
138        "MetricExpr": "(LSD.CYCLES_ACTIVE - LSD.CYCLES_OK) / CORE_CLKS / 2",
139        "MetricGroup": "FetchBW;LSD;TopdownL3;tma_fetch_bandwidth_group",
140        "MetricName": "tma_lsd",
141        "PublicDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to LSD (Loop Stream Detector) unit.  LSD typically does well sustaining Uop supply. However; in some rare cases; optimal uop-delivery could not be reached for small loops whose size (in terms of number of uops) does not suit well the LSD structure.",
142        "ScaleUnit": "100%",
143        "Unit": "cpu_core"
144    },
145    {
146        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
147        "MetricExpr": "max(1 - (tma_frontend_bound + tma_backend_bound + tma_retiring), 0)",
148        "MetricGroup": "TopdownL1;tma_L1_group",
149        "MetricName": "tma_bad_speculation",
150        "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.",
151        "ScaleUnit": "100%",
152        "Unit": "cpu_core"
153    },
154    {
155        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
156        "MetricExpr": "topdown\\-br\\-mispredict / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) + 0*SLOTS",
157        "MetricGroup": "BadSpec;BrMispredicts;TopdownL2;tma_L2_group;tma_bad_speculation_group",
158        "MetricName": "tma_branch_mispredicts",
159        "PublicDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction.  These slots are either wasted by uops fetched from an incorrectly speculated program path; or stalls when the out-of-order part of the machine needs to recover its state from a speculative path. Sample with: TOPDOWN.BR_MISPREDICT_SLOTS",
160        "ScaleUnit": "100%",
161        "Unit": "cpu_core"
162    },
163    {
164        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
165        "MetricExpr": "max(0, tma_bad_speculation - tma_branch_mispredicts)",
166        "MetricGroup": "BadSpec;MachineClears;TopdownL2;tma_L2_group;tma_bad_speculation_group",
167        "MetricName": "tma_machine_clears",
168        "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",
169        "ScaleUnit": "100%",
170        "Unit": "cpu_core"
171    },
172    {
173        "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",
174        "MetricExpr": "topdown\\-be\\-bound / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) + 0*SLOTS",
175        "MetricGroup": "TopdownL1;tma_L1_group",
176        "MetricName": "tma_backend_bound",
177        "PublicDescription": "This category represents fraction of slots where no uops are being delivered due to a lack of required resources for accepting new uops in the Backend. Backend is the portion of the processor core where the out-of-order scheduler dispatches ready uops into their respective execution units; and once completed these uops get retired according to program order. For example; stalls due to data-cache misses or stalls due to the divider unit being overloaded are both categorized under Backend Bound. Backend Bound is further divided into two main categories: Memory Bound and Core Bound. Sample with: TOPDOWN.BACKEND_BOUND_SLOTS",
178        "ScaleUnit": "100%",
179        "Unit": "cpu_core"
180    },
181    {
182        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
183        "MetricExpr": "topdown\\-mem\\-bound / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) + 0*SLOTS",
184        "MetricGroup": "Backend;TopdownL2;tma_L2_group;tma_backend_bound_group",
185        "MetricName": "tma_memory_bound",
186        "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).",
187        "ScaleUnit": "100%",
188        "Unit": "cpu_core"
189    },
190    {
191        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
192        "MetricExpr": "max((EXE_ACTIVITY.BOUND_ON_LOADS - MEMORY_ACTIVITY.STALLS_L1D_MISS) / CLKS, 0)",
193        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_memory_bound_group",
194        "MetricName": "tma_l1_bound",
195        "PublicDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache.  The L1 data cache typically has the shortest latency.  However; in certain cases like loads blocked on older stores; a load might suffer due to high latency even though it is being satisfied by the L1. Another example is loads who miss in the TLB. These cases are characterized by execution unit stalls; while some non-completed demand load lives in the machine without having that demand load missing the L1 cache. Sample with: MEM_LOAD_RETIRED.L1_HIT_PS;MEM_LOAD_RETIRED.FB_HIT_PS",
196        "ScaleUnit": "100%",
197        "Unit": "cpu_core"
198    },
199    {
200        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
201        "MetricExpr": "min(7 * cpu_core@DTLB_LOAD_MISSES.STLB_HIT\\,cmask\\=1@ + DTLB_LOAD_MISSES.WALK_ACTIVE, max(CYCLE_ACTIVITY.CYCLES_MEM_ANY - MEMORY_ACTIVITY.CYCLES_L1D_MISS, 0)) / CLKS",
202        "MetricGroup": "MemoryTLB;TopdownL4;tma_l1_bound_group",
203        "MetricName": "tma_dtlb_load",
204        "PublicDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses. TLBs (Translation Look-aside Buffers) are processor caches for recently used entries out of the Page Tables that are used to map virtual- to physical-addresses by the operating system. This metric approximates the potential delay of demand loads missing the first-level data TLB (assuming worst case scenario with back to back misses to different pages). This includes hitting in the second-level TLB (STLB) as well as performing a hardware page walk on an STLB miss. Sample with: MEM_INST_RETIRED.STLB_MISS_LOADS_PS",
205        "ScaleUnit": "100%",
206        "Unit": "cpu_core"
207    },
208    {
209        "BriefDescription": "This metric roughly estimates the fraction of cycles where the (first level) DTLB was missed by load accesses, that later on hit in second-level TLB (STLB)",
210        "MetricExpr": "tma_dtlb_load - tma_load_stlb_miss",
211        "MetricGroup": "MemoryTLB;TopdownL5;tma_dtlb_load_group",
212        "MetricName": "tma_load_stlb_hit",
213        "ScaleUnit": "100%",
214        "Unit": "cpu_core"
215    },
216    {
217        "BriefDescription": "This metric estimates the fraction of cycles where the Second-level TLB (STLB) was missed by load accesses, performing a hardware page walk",
218        "MetricExpr": "DTLB_LOAD_MISSES.WALK_ACTIVE / CLKS",
219        "MetricGroup": "MemoryTLB;TopdownL5;tma_dtlb_load_group",
220        "MetricName": "tma_load_stlb_miss",
221        "ScaleUnit": "100%",
222        "Unit": "cpu_core"
223    },
224    {
225        "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",
226        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / CLKS",
227        "MetricGroup": "TopdownL4;tma_l1_bound_group",
228        "MetricName": "tma_store_fwd_blk",
229        "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.",
230        "ScaleUnit": "100%",
231        "Unit": "cpu_core"
232    },
233    {
234        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
235        "MetricExpr": "(16 * max(0, MEM_INST_RETIRED.LOCK_LOADS - L2_RQSTS.ALL_RFO) + (MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES) * (10 * L2_RQSTS.RFO_HIT + min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO))) / CLKS",
236        "MetricGroup": "Offcore;TopdownL4;tma_l1_bound_group",
237        "MetricName": "tma_lock_latency",
238        "PublicDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations. Due to the microarchitecture handling of locks; they are classified as L1_Bound regardless of what memory source satisfied them. Sample with: MEM_INST_RETIRED.LOCK_LOADS_PS",
239        "ScaleUnit": "100%",
240        "Unit": "cpu_core"
241    },
242    {
243        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
244        "MetricExpr": "Load_Miss_Real_Latency * LD_BLOCKS.NO_SR / CLKS",
245        "MetricGroup": "TopdownL4;tma_l1_bound_group",
246        "MetricName": "tma_split_loads",
247        "PublicDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary.  Sample with: MEM_INST_RETIRED.SPLIT_LOADS_PS",
248        "ScaleUnit": "100%",
249        "Unit": "cpu_core"
250    },
251    {
252        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
253        "MetricExpr": "L1D_PEND_MISS.FB_FULL / CLKS",
254        "MetricGroup": "MemoryBW;TopdownL4;tma_l1_bound_group",
255        "MetricName": "tma_fb_full",
256        "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).",
257        "ScaleUnit": "100%",
258        "Unit": "cpu_core"
259    },
260    {
261        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
262        "MetricExpr": "(MEMORY_ACTIVITY.STALLS_L1D_MISS - MEMORY_ACTIVITY.STALLS_L2_MISS) / CLKS",
263        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_memory_bound_group",
264        "MetricName": "tma_l2_bound",
265        "PublicDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads.  Avoiding cache misses (i.e. L1 misses/L2 hits) can improve the latency and increase performance. Sample with: MEM_LOAD_RETIRED.L2_HIT_PS",
266        "ScaleUnit": "100%",
267        "Unit": "cpu_core"
268    },
269    {
270        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
271        "MetricExpr": "(MEMORY_ACTIVITY.STALLS_L2_MISS - MEMORY_ACTIVITY.STALLS_L3_MISS) / CLKS",
272        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_memory_bound_group",
273        "MetricName": "tma_l3_bound",
274        "PublicDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core.  Avoiding cache misses (i.e. L2 misses/L3 hits) can improve the latency and increase performance. Sample with: MEM_LOAD_RETIRED.L3_HIT_PS",
275        "ScaleUnit": "100%",
276        "Unit": "cpu_core"
277    },
278    {
279        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
280        "MetricExpr": "((25 * Average_Frequency) * (MEM_LOAD_L3_HIT_RETIRED.XSNP_FWD * (OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM / (OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM + OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_FWD))) + (24 * Average_Frequency) * MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS) * (1 + (MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) / 2) / CLKS",
281        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_l3_bound_group",
282        "MetricName": "tma_contested_accesses",
283        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses. Contested accesses occur when data written by one Logical Processor are read by another Logical Processor on a different Physical Core. Examples of contested accesses include synchronizations such as locks; true data sharing such as modified locked variables; and false sharing. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_FWD;MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS",
284        "ScaleUnit": "100%",
285        "Unit": "cpu_core"
286    },
287    {
288        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
289        "MetricExpr": "(24 * Average_Frequency) * (MEM_LOAD_L3_HIT_RETIRED.XSNP_NO_FWD + MEM_LOAD_L3_HIT_RETIRED.XSNP_FWD * (1 - (OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM / (OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HITM + OCR.DEMAND_DATA_RD.L3_HIT.SNOOP_HIT_WITH_FWD)))) * (1 + (MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) / 2) / CLKS",
290        "MetricGroup": "Offcore;Snoop;TopdownL4;tma_l3_bound_group",
291        "MetricName": "tma_data_sharing",
292        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses. Data shared by multiple Logical Processors (even just read shared) may cause increased access latency due to cache coherency. Excessive data sharing can drastically harm multithreaded performance. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_NO_FWD",
293        "ScaleUnit": "100%",
294        "Unit": "cpu_core"
295    },
296    {
297        "BriefDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
298        "MetricExpr": "(9 * Average_Frequency) * MEM_LOAD_RETIRED.L3_HIT * (1 + (MEM_LOAD_RETIRED.FB_HIT / MEM_LOAD_RETIRED.L1_MISS) / 2) / CLKS",
299        "MetricGroup": "MemoryLat;TopdownL4;tma_l3_bound_group",
300        "MetricName": "tma_l3_hit_latency",
301        "PublicDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited).  Avoiding private cache misses (i.e. L2 misses/L3 hits) will improve the latency; reduce contention with sibling physical cores and increase performance.  Note the value of this node may overlap with its siblings. Sample with: MEM_LOAD_RETIRED.L3_HIT_PS",
302        "ScaleUnit": "100%",
303        "Unit": "cpu_core"
304    },
305    {
306        "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)",
307        "MetricExpr": "(XQ.FULL_CYCLES + L1D_PEND_MISS.L2_STALLS) / CLKS",
308        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_l3_bound_group",
309        "MetricName": "tma_sq_full",
310        "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). The Super Queue is used for requests to access the L2 cache or to go out to the Uncore.",
311        "ScaleUnit": "100%",
312        "Unit": "cpu_core"
313    },
314    {
315        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
316        "MetricExpr": "(MEMORY_ACTIVITY.STALLS_L3_MISS / CLKS)",
317        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_memory_bound_group",
318        "MetricName": "tma_dram_bound",
319        "PublicDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads. Better caching can improve the latency and increase performance. Sample with: MEM_LOAD_RETIRED.L3_MISS_PS",
320        "ScaleUnit": "100%",
321        "Unit": "cpu_core"
322    },
323    {
324        "BriefDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory (DRAM)",
325        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu_core@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=4@) / CLKS",
326        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_dram_bound_group",
327        "MetricName": "tma_mem_bandwidth",
328        "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).",
329        "ScaleUnit": "100%",
330        "Unit": "cpu_core"
331    },
332    {
333        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)",
334        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / CLKS - tma_mem_bandwidth",
335        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_dram_bound_group",
336        "MetricName": "tma_mem_latency",
337        "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).",
338        "ScaleUnit": "100%",
339        "Unit": "cpu_core"
340    },
341    {
342        "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",
343        "MetricExpr": "EXE_ACTIVITY.BOUND_ON_STORES / CLKS",
344        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_memory_bound_group",
345        "MetricName": "tma_store_bound",
346        "PublicDescription": "This metric estimates how often CPU was stalled  due to RFO store memory accesses; RFO store issue a read-for-ownership request before the write. Even though store accesses do not typically stall out-of-order CPUs; there are few cases where stores can lead to actual stalls. This metric will be flagged should RFO stores be a bottleneck. Sample with: MEM_INST_RETIRED.ALL_STORES_PS",
347        "ScaleUnit": "100%",
348        "Unit": "cpu_core"
349    },
350    {
351        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
352        "MetricExpr": "((MEM_STORE_RETIRED.L2_HIT * 10 * (1 - (MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES))) + (1 - (MEM_INST_RETIRED.LOCK_LOADS / MEM_INST_RETIRED.ALL_STORES)) * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO)) / CLKS",
353        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_store_bound_group",
354        "MetricName": "tma_store_latency",
355        "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)",
356        "ScaleUnit": "100%",
357        "Unit": "cpu_core"
358    },
359    {
360        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
361        "MetricExpr": "(28 * Average_Frequency) * OCR.DEMAND_RFO.L3_HIT.SNOOP_HITM / CLKS",
362        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_store_bound_group",
363        "MetricName": "tma_false_sharing",
364        "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: OCR.DEMAND_RFO.L3_HIT.SNOOP_HITM",
365        "ScaleUnit": "100%",
366        "Unit": "cpu_core"
367    },
368    {
369        "BriefDescription": "This metric represents rate of split store accesses",
370        "MetricExpr": "MEM_INST_RETIRED.SPLIT_STORES / CORE_CLKS",
371        "MetricGroup": "TopdownL4;tma_store_bound_group",
372        "MetricName": "tma_split_stores",
373        "PublicDescription": "This metric represents rate of split store accesses.  Consider aligning your data to the 64-byte cache line granularity. Sample with: MEM_INST_RETIRED.SPLIT_STORES_PS",
374        "ScaleUnit": "100%",
375        "Unit": "cpu_core"
376    },
377    {
378        "BriefDescription": "This metric estimates how often CPU was stalled  due to Streaming store memory accesses; Streaming store optimize out a read request required by RFO stores",
379        "MetricExpr": "9 * OCR.STREAMING_WR.ANY_RESPONSE / CLKS",
380        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_store_bound_group",
381        "MetricName": "tma_streaming_stores",
382        "PublicDescription": "This metric estimates how often CPU was stalled  due to Streaming store memory accesses; Streaming store optimize out a read request required by RFO stores. 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 Streaming stores be a bottleneck. Sample with: OCR.STREAMING_WR.ANY_RESPONSE",
383        "ScaleUnit": "100%",
384        "Unit": "cpu_core"
385    },
386    {
387        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
388        "MetricExpr": "(7 * cpu_core@DTLB_STORE_MISSES.STLB_HIT\\,cmask\\=1@ + DTLB_STORE_MISSES.WALK_ACTIVE) / CORE_CLKS",
389        "MetricGroup": "MemoryTLB;TopdownL4;tma_store_bound_group",
390        "MetricName": "tma_dtlb_store",
391        "PublicDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses.  As with ordinary data caching; focus on improving data locality and reducing working-set size to reduce DTLB overhead.  Additionally; consider using profile-guided optimization (PGO) to collocate frequently-used data on the same page.  Try using larger page sizes for large amounts of frequently-used data. Sample with: MEM_INST_RETIRED.STLB_MISS_STORES_PS",
392        "ScaleUnit": "100%",
393        "Unit": "cpu_core"
394    },
395    {
396        "BriefDescription": "This metric roughly estimates the fraction of cycles where the TLB was missed by store accesses, hitting in the second-level TLB (STLB)",
397        "MetricExpr": "tma_dtlb_store - tma_store_stlb_miss",
398        "MetricGroup": "MemoryTLB;TopdownL5;tma_dtlb_store_group",
399        "MetricName": "tma_store_stlb_hit",
400        "ScaleUnit": "100%",
401        "Unit": "cpu_core"
402    },
403    {
404        "BriefDescription": "This metric estimates the fraction of cycles where the STLB was missed by store accesses, performing a hardware page walk",
405        "MetricExpr": "DTLB_STORE_MISSES.WALK_ACTIVE / CORE_CLKS",
406        "MetricGroup": "MemoryTLB;TopdownL5;tma_dtlb_store_group",
407        "MetricName": "tma_store_stlb_miss",
408        "ScaleUnit": "100%",
409        "Unit": "cpu_core"
410    },
411    {
412        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
413        "MetricExpr": "max(0, tma_backend_bound - tma_memory_bound)",
414        "MetricGroup": "Backend;Compute;TopdownL2;tma_L2_group;tma_backend_bound_group",
415        "MetricName": "tma_core_bound",
416        "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).",
417        "ScaleUnit": "100%",
418        "Unit": "cpu_core"
419    },
420    {
421        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
422        "MetricExpr": "ARITH.DIVIDER_ACTIVE / CLKS",
423        "MetricGroup": "TopdownL3;tma_core_bound_group",
424        "MetricName": "tma_divider",
425        "PublicDescription": "This metric represents fraction of cycles where the Divider unit was active. Divide and square root instructions are performed by the Divider unit and can take considerably longer latency than integer or Floating Point addition; subtraction; or multiplication. Sample with: ARITH.DIVIDER_ACTIVE",
426        "ScaleUnit": "100%",
427        "Unit": "cpu_core"
428    },
429    {
430        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
431        "MetricExpr": "(cpu_core@EXE_ACTIVITY.3_PORTS_UTIL\\,umask\\=0x80@ + (EXE_ACTIVITY.1_PORTS_UTIL + tma_retiring * cpu_core@EXE_ACTIVITY.2_PORTS_UTIL\\,umask\\=0xc@)) / CLKS if (ARITH.DIVIDER_ACTIVE < (CYCLE_ACTIVITY.STALLS_TOTAL - EXE_ACTIVITY.BOUND_ON_LOADS)) else (EXE_ACTIVITY.1_PORTS_UTIL + tma_retiring * cpu_core@EXE_ACTIVITY.2_PORTS_UTIL\\,umask\\=0xc@) / CLKS",
432        "MetricGroup": "PortsUtil;TopdownL3;tma_core_bound_group",
433        "MetricName": "tma_ports_utilization",
434        "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.",
435        "ScaleUnit": "100%",
436        "Unit": "cpu_core"
437    },
438    {
439        "BriefDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
440        "MetricExpr": "cpu_core@EXE_ACTIVITY.3_PORTS_UTIL\\,umask\\=0x80@ / CLKS + tma_serializing_operation * (CYCLE_ACTIVITY.STALLS_TOTAL - EXE_ACTIVITY.BOUND_ON_LOADS) / CLKS",
441        "MetricGroup": "PortsUtil;TopdownL4;tma_ports_utilization_group",
442        "MetricName": "tma_ports_utilized_0",
443        "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.",
444        "ScaleUnit": "100%",
445        "Unit": "cpu_core"
446    },
447    {
448        "BriefDescription": "This metric represents fraction of cycles the CPU issue-pipeline was stalled due to serializing operations",
449        "MetricExpr": "RESOURCE_STALLS.SCOREBOARD / CLKS",
450        "MetricGroup": "TopdownL5;tma_ports_utilized_0_group",
451        "MetricName": "tma_serializing_operation",
452        "PublicDescription": "This metric represents fraction of cycles the CPU issue-pipeline was stalled due to serializing operations. Instructions like CPUID; WRMSR or LFENCE serialize the out-of-order execution which may limit performance. Sample with: RESOURCE_STALLS.SCOREBOARD",
453        "ScaleUnit": "100%",
454        "Unit": "cpu_core"
455    },
456    {
457        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to PAUSE Instructions",
458        "MetricExpr": "CPU_CLK_UNHALTED.PAUSE / CLKS",
459        "MetricGroup": "TopdownL6;tma_serializing_operation_group",
460        "MetricName": "tma_slow_pause",
461        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to PAUSE Instructions. Sample with: CPU_CLK_UNHALTED.PAUSE_INST",
462        "ScaleUnit": "100%",
463        "Unit": "cpu_core"
464    },
465    {
466        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to LFENCE Instructions.",
467        "MetricExpr": "13 * MISC2_RETIRED.LFENCE / CLKS",
468        "MetricGroup": "TopdownL6;tma_serializing_operation_group",
469        "MetricName": "tma_memory_fence",
470        "ScaleUnit": "100%",
471        "Unit": "cpu_core"
472    },
473    {
474        "BriefDescription": "The Mixing_Vectors metric gives the percentage of injected blend uops out of all uops issued",
475        "MetricExpr": "160 * ASSISTS.SSE_AVX_MIX / CLKS",
476        "MetricGroup": "TopdownL5;tma_ports_utilized_0_group",
477        "MetricName": "tma_mixing_vectors",
478        "PublicDescription": "The Mixing_Vectors metric gives the percentage of injected blend uops out of all uops issued. Usually a Mixing_Vectors over 5% is worth investigating. Read more in Appendix B1 of the Optimizations Guide for this topic.",
479        "ScaleUnit": "100%",
480        "Unit": "cpu_core"
481    },
482    {
483        "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)",
484        "MetricExpr": "EXE_ACTIVITY.1_PORTS_UTIL / CLKS",
485        "MetricGroup": "PortsUtil;TopdownL4;tma_ports_utilization_group",
486        "MetricName": "tma_ports_utilized_1",
487        "PublicDescription": "This metric represents fraction of cycles where the CPU executed total of 1 uop per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise). This can be due to heavy data-dependency among software instructions; or over oversubscribing a particular hardware resource. In some other cases with high 1_Port_Utilized and L1_Bound; this metric can point to L1 data-cache latency bottleneck that may not necessarily manifest with complete execution starvation (due to the short L1 latency e.g. walking a linked list) - looking at the assembly can be helpful. Sample with: EXE_ACTIVITY.1_PORTS_UTIL",
488        "ScaleUnit": "100%",
489        "Unit": "cpu_core"
490    },
491    {
492        "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)",
493        "MetricExpr": "EXE_ACTIVITY.2_PORTS_UTIL / CLKS",
494        "MetricGroup": "PortsUtil;TopdownL4;tma_ports_utilization_group",
495        "MetricName": "tma_ports_utilized_2",
496        "PublicDescription": "This metric represents fraction of cycles CPU executed total of 2 uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise).  Loop Vectorization -most compilers feature auto-Vectorization options today- reduces pressure on the execution ports as multiple elements are calculated with same uop. Sample with: EXE_ACTIVITY.2_PORTS_UTIL",
497        "ScaleUnit": "100%",
498        "Unit": "cpu_core"
499    },
500    {
501        "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)",
502        "MetricExpr": "UOPS_EXECUTED.CYCLES_GE_3 / CLKS",
503        "MetricGroup": "PortsUtil;TopdownL4;tma_ports_utilization_group",
504        "MetricName": "tma_ports_utilized_3m",
505        "PublicDescription": "This metric represents fraction of cycles CPU executed total of 3 or more uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise). Sample with: UOPS_EXECUTED.CYCLES_GE_3",
506        "ScaleUnit": "100%",
507        "Unit": "cpu_core"
508    },
509    {
510        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
511        "MetricExpr": "(UOPS_DISPATCHED.PORT_0 + UOPS_DISPATCHED.PORT_1 + UOPS_DISPATCHED.PORT_5_11 + UOPS_DISPATCHED.PORT_6) / (5 * CORE_CLKS)",
512        "MetricGroup": "TopdownL5;tma_ports_utilized_3m_group",
513        "MetricName": "tma_alu_op_utilization",
514        "ScaleUnit": "100%",
515        "Unit": "cpu_core"
516    },
517    {
518        "BriefDescription": "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_0",
519        "MetricExpr": "UOPS_DISPATCHED.PORT_0 / CORE_CLKS",
520        "MetricGroup": "Compute;TopdownL6;tma_alu_op_utilization_group",
521        "MetricName": "tma_port_0",
522        "ScaleUnit": "100%",
523        "Unit": "cpu_core"
524    },
525    {
526        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU) Sample with: UOPS_DISPATCHED.PORT_1",
527        "MetricExpr": "UOPS_DISPATCHED.PORT_1 / CORE_CLKS",
528        "MetricGroup": "TopdownL6;tma_alu_op_utilization_group",
529        "MetricName": "tma_port_1",
530        "ScaleUnit": "100%",
531        "Unit": "cpu_core"
532    },
533    {
534        "BriefDescription": "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_6",
535        "MetricExpr": "UOPS_DISPATCHED.PORT_6 / CORE_CLKS",
536        "MetricGroup": "TopdownL6;tma_alu_op_utilization_group",
537        "MetricName": "tma_port_6",
538        "ScaleUnit": "100%",
539        "Unit": "cpu_core"
540    },
541    {
542        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations Sample with: UOPS_DISPATCHED.PORT_2_3_10",
543        "MetricExpr": "UOPS_DISPATCHED.PORT_2_3_10 / (3 * CORE_CLKS)",
544        "MetricGroup": "TopdownL5;tma_ports_utilized_3m_group",
545        "MetricName": "tma_load_op_utilization",
546        "ScaleUnit": "100%",
547        "Unit": "cpu_core"
548    },
549    {
550        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations Sample with: UOPS_DISPATCHED.PORT_7_8",
551        "MetricExpr": "(UOPS_DISPATCHED.PORT_4_9 + UOPS_DISPATCHED.PORT_7_8) / (4 * CORE_CLKS)",
552        "MetricGroup": "TopdownL5;tma_ports_utilized_3m_group",
553        "MetricName": "tma_store_op_utilization",
554        "ScaleUnit": "100%",
555        "Unit": "cpu_core"
556    },
557    {
558        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
559        "MetricExpr": "topdown\\-retiring / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) + 0*SLOTS",
560        "MetricGroup": "TopdownL1;tma_L1_group",
561        "MetricName": "tma_retiring",
562        "PublicDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired. Ideally; all pipeline slots would be attributed to the Retiring category.  Retiring of 100% would indicate the maximum Pipeline_Width throughput was achieved.  Maximizing Retiring typically increases the Instructions-per-cycle (see IPC metric). Note that a high Retiring value does not necessary mean there is no room for more performance.  For example; Heavy-operations or Microcode Assists are categorized under Retiring. They often indicate suboptimal performance and can often be optimized or avoided.  Sample with: UOPS_RETIRED.SLOTS",
563        "ScaleUnit": "100%",
564        "Unit": "cpu_core"
565    },
566    {
567        "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)",
568        "MetricExpr": "max(0, tma_retiring - tma_heavy_operations)",
569        "MetricGroup": "Retire;TopdownL2;tma_L2_group;tma_retiring_group",
570        "MetricName": "tma_light_operations",
571        "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 UPI 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",
572        "ScaleUnit": "100%",
573        "Unit": "cpu_core"
574    },
575    {
576        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
577        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
578        "MetricGroup": "HPC;TopdownL3;tma_light_operations_group",
579        "MetricName": "tma_fp_arith",
580        "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.",
581        "ScaleUnit": "100%",
582        "Unit": "cpu_core"
583    },
584    {
585        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
586        "MetricExpr": "tma_retiring * UOPS_EXECUTED.X87 / UOPS_EXECUTED.THREAD",
587        "MetricGroup": "Compute;TopdownL4;tma_fp_arith_group",
588        "MetricName": "tma_x87_use",
589        "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.",
590        "ScaleUnit": "100%",
591        "Unit": "cpu_core"
592    },
593    {
594        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
595        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE) / (tma_retiring * SLOTS)",
596        "MetricGroup": "Compute;Flops;TopdownL4;tma_fp_arith_group",
597        "MetricName": "tma_fp_scalar",
598        "PublicDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired. May overcount due to FMA double counting.",
599        "ScaleUnit": "100%",
600        "Unit": "cpu_core"
601    },
602    {
603        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
604        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / (tma_retiring * SLOTS)",
605        "MetricGroup": "Compute;Flops;TopdownL4;tma_fp_arith_group",
606        "MetricName": "tma_fp_vector",
607        "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.",
608        "ScaleUnit": "100%",
609        "Unit": "cpu_core"
610    },
611    {
612        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors",
613        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE) / (tma_retiring * SLOTS)",
614        "MetricGroup": "Compute;Flops;TopdownL5;tma_fp_vector_group",
615        "MetricName": "tma_fp_vector_128b",
616        "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.",
617        "ScaleUnit": "100%",
618        "Unit": "cpu_core"
619    },
620    {
621        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors",
622        "MetricExpr": "(FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / (tma_retiring * SLOTS)",
623        "MetricGroup": "Compute;Flops;TopdownL5;tma_fp_vector_group",
624        "MetricName": "tma_fp_vector_256b",
625        "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.",
626        "ScaleUnit": "100%",
627        "Unit": "cpu_core"
628    },
629    {
630        "BriefDescription": "This metric represents overall Integer (Int) select operations fraction the CPU has executed (retired)",
631        "MetricExpr": "tma_int_vector_128b + tma_int_vector_256b + tma_shuffles",
632        "MetricGroup": "Pipeline;TopdownL3;tma_light_operations_group",
633        "MetricName": "tma_int_operations",
634        "PublicDescription": "This metric represents overall Integer (Int) select operations fraction the CPU has executed (retired). Vector/Matrix Int operations and shuffles are counted. Note this metric's value may exceed its parent due to use of \"Uops\" CountDomain.",
635        "ScaleUnit": "100%",
636        "Unit": "cpu_core"
637    },
638    {
639        "BriefDescription": "This metric represents 128-bit vector Integer ADD/SUB/SAD or VNNI (Vector Neural Network Instructions) uops fraction the CPU has retired.",
640        "MetricExpr": "(INT_VEC_RETIRED.ADD_128 + INT_VEC_RETIRED.VNNI_128) / (tma_retiring * SLOTS)",
641        "MetricGroup": "Compute;IntVector;Pipeline;TopdownL4;tma_int_operations_group",
642        "MetricName": "tma_int_vector_128b",
643        "ScaleUnit": "100%",
644        "Unit": "cpu_core"
645    },
646    {
647        "BriefDescription": "This metric represents 256-bit vector Integer ADD/SUB/SAD or VNNI (Vector Neural Network Instructions) uops fraction the CPU has retired.",
648        "MetricExpr": "(INT_VEC_RETIRED.ADD_256 + INT_VEC_RETIRED.MUL_256 + INT_VEC_RETIRED.VNNI_256) / (tma_retiring * SLOTS)",
649        "MetricGroup": "Compute;IntVector;Pipeline;TopdownL4;tma_int_operations_group",
650        "MetricName": "tma_int_vector_256b",
651        "ScaleUnit": "100%",
652        "Unit": "cpu_core"
653    },
654    {
655        "BriefDescription": "This metric represents Shuffle (cross \"vector lane\" data transfers) uops fraction the CPU has retired.",
656        "MetricExpr": "INT_VEC_RETIRED.SHUFFLES / (tma_retiring * SLOTS)",
657        "MetricGroup": "HPC;Pipeline;TopdownL4;tma_int_operations_group",
658        "MetricName": "tma_shuffles",
659        "ScaleUnit": "100%",
660        "Unit": "cpu_core"
661    },
662    {
663        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring memory operations -- uops for memory load or store accesses.",
664        "MetricExpr": "tma_light_operations * MEM_UOP_RETIRED.ANY / (tma_retiring * SLOTS)",
665        "MetricGroup": "Pipeline;TopdownL3;tma_light_operations_group",
666        "MetricName": "tma_memory_operations",
667        "ScaleUnit": "100%",
668        "Unit": "cpu_core"
669    },
670    {
671        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring fused instructions -- where one uop can represent multiple contiguous instructions",
672        "MetricExpr": "tma_light_operations * INST_RETIRED.MACRO_FUSED / (tma_retiring * SLOTS)",
673        "MetricGroup": "Pipeline;TopdownL3;tma_light_operations_group",
674        "MetricName": "tma_fused_instructions",
675        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring fused instructions -- where one uop can represent multiple contiguous instructions. The instruction pairs of CMP+JCC or DEC+JCC are commonly used examples.",
676        "ScaleUnit": "100%",
677        "Unit": "cpu_core"
678    },
679    {
680        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring branch instructions that were not fused",
681        "MetricExpr": "tma_light_operations * (BR_INST_RETIRED.ALL_BRANCHES - INST_RETIRED.MACRO_FUSED) / (tma_retiring * SLOTS)",
682        "MetricGroup": "Pipeline;TopdownL3;tma_light_operations_group",
683        "MetricName": "tma_non_fused_branches",
684        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring branch instructions that were not fused. Non-conditional branches like direct JMP or CALL would count here. Can be used to examine fusible conditional jumps that were not fused.",
685        "ScaleUnit": "100%",
686        "Unit": "cpu_core"
687    },
688    {
689        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring NOP (no op) instructions",
690        "MetricExpr": "tma_light_operations * INST_RETIRED.NOP / (tma_retiring * SLOTS)",
691        "MetricGroup": "Pipeline;TopdownL3;tma_light_operations_group",
692        "MetricName": "tma_nop_instructions",
693        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring NOP (no op) instructions. Compilers often use NOPs for certain address alignments - e.g. start address of a function or loop body. Sample with: INST_RETIRED.NOP",
694        "ScaleUnit": "100%",
695        "Unit": "cpu_core"
696    },
697    {
698        "BriefDescription": "This metric represents the remaining light uops fraction the CPU has executed - remaining means not covered by other sibling nodes. May undercount due to FMA double counting",
699        "MetricExpr": "max(0, tma_light_operations - (tma_fp_arith + tma_int_operations + tma_memory_operations + tma_fused_instructions + tma_non_fused_branches + tma_nop_instructions))",
700        "MetricGroup": "Pipeline;TopdownL3;tma_light_operations_group",
701        "MetricName": "tma_other_light_ops",
702        "ScaleUnit": "100%",
703        "Unit": "cpu_core"
704    },
705    {
706        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring heavy-weight operations -- instructions that require two or more uops or microcoded sequences",
707        "MetricExpr": "topdown\\-heavy\\-ops / (topdown\\-fe\\-bound + topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) + 0*SLOTS",
708        "MetricGroup": "Retire;TopdownL2;tma_L2_group;tma_retiring_group",
709        "MetricName": "tma_heavy_operations",
710        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring heavy-weight operations -- instructions that require two or more uops or microcoded sequences. This highly-correlates with the uop length of these instructions/sequences. Sample with: UOPS_RETIRED.HEAVY",
711        "ScaleUnit": "100%",
712        "Unit": "cpu_core"
713    },
714    {
715        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring instructions that that are decoder into two or up to ([SNB+] four; [ADL+] five) uops",
716        "MetricExpr": "tma_heavy_operations - tma_microcode_sequencer",
717        "MetricGroup": "TopdownL3;tma_heavy_operations_group",
718        "MetricName": "tma_few_uops_instructions",
719        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring instructions that that are decoder into two or up to ([SNB+] four; [ADL+] five) uops. This highly-correlates with the number of uops in such instructions.",
720        "ScaleUnit": "100%",
721        "Unit": "cpu_core"
722    },
723    {
724        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
725        "MetricExpr": "UOPS_RETIRED.MS / SLOTS",
726        "MetricGroup": "MicroSeq;TopdownL3;tma_heavy_operations_group",
727        "MetricName": "tma_microcode_sequencer",
728        "PublicDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit.  The MS is used for CISC instructions not supported by the default decoders (like repeat move strings; or CPUID); or by microcode assists used to address some operation modes (like in Floating Point assists). These cases can often be avoided. Sample with: UOPS_RETIRED.MS",
729        "ScaleUnit": "100%",
730        "Unit": "cpu_core"
731    },
732    {
733        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
734        "MetricExpr": "100 * cpu_core@ASSISTS.ANY\\,umask\\=0x1B@ / SLOTS",
735        "MetricGroup": "TopdownL4;tma_microcode_sequencer_group",
736        "MetricName": "tma_assists",
737        "PublicDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists. Assists are long sequences of uops that are required in certain corner-cases for operations that cannot be handled natively by the execution pipeline. For example; when working with very small floating point values (so-called Denormals); the FP units are not set up to perform these operations natively. Instead; a sequence of instructions to perform the computation on the Denormals is injected into the pipeline. Since these microcode sequences might be dozens of uops long; Assists can be extremely deleterious to performance and they can be avoided in many cases. Sample with: ASSISTS.ANY",
738        "ScaleUnit": "100%",
739        "Unit": "cpu_core"
740    },
741    {
742        "BriefDescription": "This metric roughly estimates fraction of slots the CPU retired uops as a result of handing Page Faults",
743        "MetricExpr": "99 * ASSISTS.PAGE_FAULT / SLOTS",
744        "MetricGroup": "TopdownL5;tma_assists_group",
745        "MetricName": "tma_page_faults",
746        "PublicDescription": "This metric roughly estimates fraction of slots the CPU retired uops as a result of handing Page Faults. A Page Fault may apply on first application access to a memory page. Note operating system handling of page faults accounts for the majority of its cost.",
747        "ScaleUnit": "100%",
748        "Unit": "cpu_core"
749    },
750    {
751        "BriefDescription": "This metric roughly estimates fraction of slots the CPU retired uops as a result of handing Floating Point (FP) Assists",
752        "MetricExpr": "30 * ASSISTS.FP / SLOTS",
753        "MetricGroup": "HPC;TopdownL5;tma_assists_group",
754        "MetricName": "tma_fp_assists",
755        "PublicDescription": "This metric roughly estimates fraction of slots the CPU retired uops as a result of handing Floating Point (FP) Assists. FP Assist may apply when working with very small floating point values (so-called denormals).",
756        "ScaleUnit": "100%",
757        "Unit": "cpu_core"
758    },
759    {
760        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops as a result of handing SSE to AVX* or AVX* to SSE transition Assists. ",
761        "MetricExpr": "63 * ASSISTS.SSE_AVX_MIX / SLOTS",
762        "MetricGroup": "HPC;TopdownL5;tma_assists_group",
763        "MetricName": "tma_avx_assists",
764        "ScaleUnit": "100%",
765        "Unit": "cpu_core"
766    },
767    {
768        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
769        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
770        "MetricGroup": "TopdownL4;tma_microcode_sequencer_group",
771        "MetricName": "tma_cisc",
772        "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. Sample with: FRONTEND_RETIRED.MS_FLOWS",
773        "ScaleUnit": "100%",
774        "Unit": "cpu_core"
775    },
776    {
777        "BriefDescription": "Total pipeline cost of Branch Misprediction related bottlenecks",
778        "MetricExpr": "100 * (tma_branch_mispredicts + tma_fetch_latency * tma_mispredicts_resteers / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches))",
779        "MetricGroup": "Bad;BadSpec;BrMispredicts",
780        "MetricName": "Mispredictions",
781        "Unit": "cpu_core"
782    },
783    {
784        "BriefDescription": "Total pipeline cost of (external) Memory Bandwidth related bottlenecks",
785        "MetricExpr": "100 * tma_memory_bound * ((tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_store_bound)) * (tma_mem_bandwidth / (tma_mem_bandwidth + tma_mem_latency)) + (tma_l3_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_store_bound)) * (tma_sq_full / (tma_contested_accesses + tma_data_sharing + tma_l3_hit_latency + tma_sq_full))) + (tma_l1_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_store_bound)) * (tma_fb_full / (tma_dtlb_load + tma_fb_full + tma_lock_latency + tma_split_loads + tma_store_fwd_blk)) ",
786        "MetricGroup": "Mem;MemoryBW;Offcore",
787        "MetricName": "Memory_Bandwidth",
788        "Unit": "cpu_core"
789    },
790    {
791        "BriefDescription": "Total pipeline cost of Memory Latency related bottlenecks (external memory and off-core caches)",
792        "MetricExpr": "100 * tma_memory_bound * ((tma_dram_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_store_bound)) * (tma_mem_latency / (tma_mem_bandwidth + tma_mem_latency)) + (tma_l3_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_store_bound)) * (tma_l3_hit_latency / (tma_contested_accesses + tma_data_sharing + tma_l3_hit_latency + tma_sq_full)) + (tma_l2_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_store_bound)))",
793        "MetricGroup": "Mem;MemoryLat;Offcore",
794        "MetricName": "Memory_Latency",
795        "Unit": "cpu_core"
796    },
797    {
798        "BriefDescription": "Total pipeline cost of Memory Address Translation related bottlenecks (data-side TLBs)",
799        "MetricExpr": "100 * tma_memory_bound * ((tma_l1_bound / max(tma_memory_bound, tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_store_bound)) * (tma_dtlb_load / max(tma_l1_bound, tma_dtlb_load + tma_fb_full + tma_lock_latency + tma_split_loads + tma_store_fwd_blk)) + (tma_store_bound / (tma_dram_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_store_bound)) * (tma_dtlb_store / (tma_dtlb_store + tma_false_sharing + tma_split_stores + tma_store_latency + tma_streaming_stores))) ",
800        "MetricGroup": "Mem;MemoryTLB;Offcore",
801        "MetricName": "Memory_Data_TLBs",
802        "Unit": "cpu_core"
803    },
804    {
805        "BriefDescription": "Total pipeline cost of branch related instructions (used for program control-flow including function calls)",
806        "MetricExpr": "100 * ((BR_INST_RETIRED.COND + 3 * BR_INST_RETIRED.NEAR_CALL + (BR_INST_RETIRED.NEAR_TAKEN - BR_INST_RETIRED.COND_TAKEN - 2 * BR_INST_RETIRED.NEAR_CALL)) / SLOTS)",
807        "MetricGroup": "Ret",
808        "MetricName": "Branching_Overhead",
809        "Unit": "cpu_core"
810    },
811    {
812        "BriefDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code footprint programs (i-side cache; TLB and BTB misses)",
813        "MetricExpr": "100 * tma_fetch_latency * (tma_itlb_misses + tma_icache_misses + tma_unknown_branches) / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches)",
814        "MetricGroup": "BigFoot;Fed;Frontend;IcMiss;MemoryTLB",
815        "MetricName": "Big_Code",
816        "Unit": "cpu_core"
817    },
818    {
819        "BriefDescription": "Total pipeline cost of instruction fetch bandwidth related bottlenecks",
820        "MetricExpr": "100 * (tma_frontend_bound - tma_fetch_latency * tma_mispredicts_resteers / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches)) - Big_Code",
821        "MetricGroup": "Fed;FetchBW;Frontend",
822        "MetricName": "Instruction_Fetch_BW",
823        "Unit": "cpu_core"
824    },
825    {
826        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
827        "MetricExpr": "INST_RETIRED.ANY / CLKS",
828        "MetricGroup": "Ret;Summary",
829        "MetricName": "IPC",
830        "Unit": "cpu_core"
831    },
832    {
833        "BriefDescription": "Uops Per Instruction",
834        "MetricExpr": "(tma_retiring * SLOTS) / INST_RETIRED.ANY",
835        "MetricGroup": "Pipeline;Ret;Retire",
836        "MetricName": "UPI",
837        "Unit": "cpu_core"
838    },
839    {
840        "BriefDescription": "Instruction per taken branch",
841        "MetricExpr": "(tma_retiring * SLOTS) / BR_INST_RETIRED.NEAR_TAKEN",
842        "MetricGroup": "Branches;Fed;FetchBW",
843        "MetricName": "UpTB",
844        "Unit": "cpu_core"
845    },
846    {
847        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
848        "MetricExpr": "1 / IPC",
849        "MetricGroup": "Mem;Pipeline",
850        "MetricName": "CPI",
851        "Unit": "cpu_core"
852    },
853    {
854        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
855        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
856        "MetricGroup": "Pipeline",
857        "MetricName": "CLKS",
858        "Unit": "cpu_core"
859    },
860    {
861        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
862        "MetricExpr": "TOPDOWN.SLOTS",
863        "MetricGroup": "tma_L1_group",
864        "MetricName": "SLOTS",
865        "Unit": "cpu_core"
866    },
867    {
868        "BriefDescription": "Fraction of Physical Core issue-slots utilized by this Logical Processor",
869        "MetricExpr": "SLOTS / (TOPDOWN.SLOTS / 2) if #SMT_on else 1",
870        "MetricGroup": "SMT;tma_L1_group",
871        "MetricName": "Slots_Utilization",
872        "Unit": "cpu_core"
873    },
874    {
875        "BriefDescription": "The ratio of Executed- by Issued-Uops",
876        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
877        "MetricGroup": "Cor;Pipeline",
878        "MetricName": "Execute_per_Issue",
879        "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.",
880        "Unit": "cpu_core"
881    },
882    {
883        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
884        "MetricExpr": "INST_RETIRED.ANY / CORE_CLKS",
885        "MetricGroup": "Ret;SMT;tma_L1_group",
886        "MetricName": "CoreIPC",
887        "Unit": "cpu_core"
888    },
889    {
890        "BriefDescription": "Floating Point Operations Per Cycle",
891        "MetricExpr": "(1 * (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) / CORE_CLKS",
892        "MetricGroup": "Flops;Ret",
893        "MetricName": "FLOPc",
894        "Unit": "cpu_core"
895    },
896    {
897        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
898        "MetricExpr": "(FP_ARITH_DISPATCHED.PORT_0 + FP_ARITH_DISPATCHED.PORT_1 + FP_ARITH_DISPATCHED.PORT_5) / (2 * CORE_CLKS)",
899        "MetricGroup": "Cor;Flops;HPC",
900        "MetricName": "FP_Arith_Utilization",
901        "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).",
902        "Unit": "cpu_core"
903    },
904    {
905        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
906        "MetricExpr": "UOPS_EXECUTED.THREAD / ((UOPS_EXECUTED.CORE_CYCLES_GE_1 / 2) if #SMT_on else UOPS_EXECUTED.CORE_CYCLES_GE_1)",
907        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
908        "MetricName": "ILP",
909        "Unit": "cpu_core"
910    },
911    {
912        "BriefDescription": "Probability of Core Bound bottleneck hidden by SMT-profiling artifacts",
913        "MetricExpr": "(1 - tma_core_bound / tma_ports_utilization if tma_core_bound < tma_ports_utilization else 1) if SMT_2T_Utilization > 0.5 else 0",
914        "MetricGroup": "Cor;SMT",
915        "MetricName": "Core_Bound_Likely",
916        "Unit": "cpu_core"
917    },
918    {
919        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
920        "MetricExpr": "CPU_CLK_UNHALTED.DISTRIBUTED",
921        "MetricGroup": "SMT",
922        "MetricName": "CORE_CLKS",
923        "Unit": "cpu_core"
924    },
925    {
926        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
927        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_LOADS",
928        "MetricGroup": "InsType",
929        "MetricName": "IpLoad",
930        "Unit": "cpu_core"
931    },
932    {
933        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
934        "MetricExpr": "INST_RETIRED.ANY / MEM_INST_RETIRED.ALL_STORES",
935        "MetricGroup": "InsType",
936        "MetricName": "IpStore",
937        "Unit": "cpu_core"
938    },
939    {
940        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
941        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
942        "MetricGroup": "Branches;Fed;InsType",
943        "MetricName": "IpBranch",
944        "Unit": "cpu_core"
945    },
946    {
947        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
948        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
949        "MetricGroup": "Branches;Fed;PGO",
950        "MetricName": "IpCall",
951        "Unit": "cpu_core"
952    },
953    {
954        "BriefDescription": "Instruction per taken branch",
955        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
956        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO",
957        "MetricName": "IpTB",
958        "Unit": "cpu_core"
959    },
960    {
961        "BriefDescription": "Branch instructions per taken branch. ",
962        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
963        "MetricGroup": "Branches;Fed;PGO",
964        "MetricName": "BpTkBranch",
965        "Unit": "cpu_core"
966    },
967    {
968        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
969        "MetricExpr": "INST_RETIRED.ANY / (1 * (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)",
970        "MetricGroup": "Flops;InsType",
971        "MetricName": "IpFLOP",
972        "Unit": "cpu_core"
973    },
974    {
975        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
976        "MetricExpr": "INST_RETIRED.ANY / ((FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE) + (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE))",
977        "MetricGroup": "Flops;InsType",
978        "MetricName": "IpArith",
979        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW.",
980        "Unit": "cpu_core"
981    },
982    {
983        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
984        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
985        "MetricGroup": "Flops;FpScalar;InsType",
986        "MetricName": "IpArith_Scalar_SP",
987        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting.",
988        "Unit": "cpu_core"
989    },
990    {
991        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
992        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
993        "MetricGroup": "Flops;FpScalar;InsType",
994        "MetricName": "IpArith_Scalar_DP",
995        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting.",
996        "Unit": "cpu_core"
997    },
998    {
999        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
1000        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE)",
1001        "MetricGroup": "Flops;FpVector;InsType",
1002        "MetricName": "IpArith_AVX128",
1003        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting.",
1004        "Unit": "cpu_core"
1005    },
1006    {
1007        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
1008        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
1009        "MetricGroup": "Flops;FpVector;InsType",
1010        "MetricName": "IpArith_AVX256",
1011        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting.",
1012        "Unit": "cpu_core"
1013    },
1014    {
1015        "BriefDescription": "Instructions per Software prefetch instruction (of any type: NTA/T0/T1/T2/Prefetch) (lower number means higher occurrence rate)",
1016        "MetricExpr": "INST_RETIRED.ANY / cpu_core@SW_PREFETCH_ACCESS.T0\\,umask\\=0xF@",
1017        "MetricGroup": "Prefetches",
1018        "MetricName": "IpSWPF",
1019        "Unit": "cpu_core"
1020    },
1021    {
1022        "BriefDescription": "Total number of retired Instructions Sample with: INST_RETIRED.PREC_DIST",
1023        "MetricExpr": "INST_RETIRED.ANY",
1024        "MetricGroup": "Summary;tma_L1_group",
1025        "MetricName": "Instructions",
1026        "Unit": "cpu_core"
1027    },
1028    {
1029        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
1030        "MetricExpr": "(tma_retiring * SLOTS) / cpu_core@UOPS_RETIRED.SLOTS\\,cmask\\=1@",
1031        "MetricGroup": "Pipeline;Ret",
1032        "MetricName": "Retire",
1033        "Unit": "cpu_core"
1034    },
1035    {
1036        "BriefDescription": "Estimated fraction of retirement-cycles dealing with repeat instructions",
1037        "MetricExpr": "INST_RETIRED.REP_ITERATION / cpu_core@UOPS_RETIRED.SLOTS\\,cmask\\=1@",
1038        "MetricGroup": "Pipeline;Ret",
1039        "MetricName": "Strings_Cycles",
1040        "Unit": "cpu_core"
1041    },
1042    {
1043        "BriefDescription": "Instructions per a microcode Assist invocation. See Assists tree node for details (lower number means higher occurrence rate)",
1044        "MetricExpr": "INST_RETIRED.ANY / cpu_core@ASSISTS.ANY\\,umask\\=0x1B@",
1045        "MetricGroup": "Pipeline;Ret;Retire",
1046        "MetricName": "IpAssist",
1047        "Unit": "cpu_core"
1048    },
1049    {
1050        "BriefDescription": "",
1051        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu_core@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
1052        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
1053        "MetricName": "Execute",
1054        "Unit": "cpu_core"
1055    },
1056    {
1057        "BriefDescription": "Average number of Uops issued by front-end when it issued something",
1058        "MetricExpr": "UOPS_ISSUED.ANY / cpu_core@UOPS_ISSUED.ANY\\,cmask\\=1@",
1059        "MetricGroup": "Fed;FetchBW",
1060        "MetricName": "Fetch_UpC",
1061        "Unit": "cpu_core"
1062    },
1063    {
1064        "BriefDescription": "Fraction of Uops delivered by the LSD (Loop Stream Detector; aka Loop Cache)",
1065        "MetricExpr": "LSD.UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
1066        "MetricGroup": "Fed;LSD",
1067        "MetricName": "LSD_Coverage",
1068        "Unit": "cpu_core"
1069    },
1070    {
1071        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
1072        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
1073        "MetricGroup": "DSB;Fed;FetchBW",
1074        "MetricName": "DSB_Coverage",
1075        "Unit": "cpu_core"
1076    },
1077    {
1078        "BriefDescription": "Average number of cycles of a switch from the DSB fetch-unit to MITE fetch unit - see DSB_Switches tree node for details.",
1079        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / cpu_core@DSB2MITE_SWITCHES.PENALTY_CYCLES\\,cmask\\=1\\,edge@",
1080        "MetricGroup": "DSBmiss",
1081        "MetricName": "DSB_Switch_Cost",
1082        "Unit": "cpu_core"
1083    },
1084    {
1085        "BriefDescription": "Total penalty related to DSB (uop cache) misses - subset of the Instruction_Fetch_BW Bottleneck.",
1086        "MetricExpr": "100 * (tma_fetch_latency * tma_dsb_switches / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches) + tma_fetch_bandwidth * tma_mite / (tma_dsb + tma_lsd + tma_mite))",
1087        "MetricGroup": "DSBmiss;Fed",
1088        "MetricName": "DSB_Misses",
1089        "Unit": "cpu_core"
1090    },
1091    {
1092        "BriefDescription": "Number of Instructions per non-speculative DSB miss (lower number means higher occurrence rate)",
1093        "MetricExpr": "INST_RETIRED.ANY / FRONTEND_RETIRED.ANY_DSB_MISS",
1094        "MetricGroup": "DSBmiss;Fed",
1095        "MetricName": "IpDSB_Miss_Ret",
1096        "Unit": "cpu_core"
1097    },
1098    {
1099        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
1100        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
1101        "MetricGroup": "Bad;BadSpec;BrMispredicts",
1102        "MetricName": "IpMispredict",
1103        "Unit": "cpu_core"
1104    },
1105    {
1106        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
1107        "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)) * SLOTS / BR_MISP_RETIRED.ALL_BRANCHES",
1108        "MetricGroup": "Bad;BrMispredicts",
1109        "MetricName": "Branch_Misprediction_Cost",
1110        "Unit": "cpu_core"
1111    },
1112    {
1113        "BriefDescription": "Fraction of branches that are non-taken conditionals",
1114        "MetricExpr": "BR_INST_RETIRED.COND_NTAKEN / BR_INST_RETIRED.ALL_BRANCHES",
1115        "MetricGroup": "Bad;Branches;CodeGen;PGO",
1116        "MetricName": "Cond_NT",
1117        "Unit": "cpu_core"
1118    },
1119    {
1120        "BriefDescription": "Fraction of branches that are taken conditionals",
1121        "MetricExpr": "BR_INST_RETIRED.COND_TAKEN / BR_INST_RETIRED.ALL_BRANCHES",
1122        "MetricGroup": "Bad;Branches;CodeGen;PGO",
1123        "MetricName": "Cond_TK",
1124        "Unit": "cpu_core"
1125    },
1126    {
1127        "BriefDescription": "Fraction of branches that are CALL or RET",
1128        "MetricExpr": "(BR_INST_RETIRED.NEAR_CALL + BR_INST_RETIRED.NEAR_RETURN) / BR_INST_RETIRED.ALL_BRANCHES",
1129        "MetricGroup": "Bad;Branches",
1130        "MetricName": "CallRet",
1131        "Unit": "cpu_core"
1132    },
1133    {
1134        "BriefDescription": "Fraction of branches that are unconditional (direct or indirect) jumps",
1135        "MetricExpr": "(BR_INST_RETIRED.NEAR_TAKEN - BR_INST_RETIRED.COND_TAKEN - 2 * BR_INST_RETIRED.NEAR_CALL) / BR_INST_RETIRED.ALL_BRANCHES",
1136        "MetricGroup": "Bad;Branches",
1137        "MetricName": "Jump",
1138        "Unit": "cpu_core"
1139    },
1140    {
1141        "BriefDescription": "Fraction of branches of other types (not individually covered by other metrics in Info.Branches group)",
1142        "MetricExpr": "1 - (Cond_NT + Cond_TK + CallRet + Jump)",
1143        "MetricGroup": "Bad;Branches",
1144        "MetricName": "Other_Branches",
1145        "Unit": "cpu_core"
1146    },
1147    {
1148        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
1149        "MetricExpr": "L1D_PEND_MISS.PENDING / MEM_LOAD_COMPLETED.L1_MISS_ANY",
1150        "MetricGroup": "Mem;MemoryBound;MemoryLat",
1151        "MetricName": "Load_Miss_Real_Latency",
1152        "Unit": "cpu_core"
1153    },
1154    {
1155        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)",
1156        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
1157        "MetricGroup": "Mem;MemoryBW;MemoryBound",
1158        "MetricName": "MLP",
1159        "Unit": "cpu_core"
1160    },
1161    {
1162        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
1163        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L1_MISS / INST_RETIRED.ANY",
1164        "MetricGroup": "CacheMisses;Mem",
1165        "MetricName": "L1MPKI",
1166        "Unit": "cpu_core"
1167    },
1168    {
1169        "BriefDescription": "L1 cache true misses per kilo instruction for all demand loads (including speculative)",
1170        "MetricExpr": "1000 * L2_RQSTS.ALL_DEMAND_DATA_RD / INST_RETIRED.ANY",
1171        "MetricGroup": "CacheMisses;Mem",
1172        "MetricName": "L1MPKI_Load",
1173        "Unit": "cpu_core"
1174    },
1175    {
1176        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
1177        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L2_MISS / INST_RETIRED.ANY",
1178        "MetricGroup": "Backend;CacheMisses;Mem",
1179        "MetricName": "L2MPKI",
1180        "Unit": "cpu_core"
1181    },
1182    {
1183        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
1184        "MetricExpr": "1000 * L2_RQSTS.MISS / INST_RETIRED.ANY",
1185        "MetricGroup": "CacheMisses;Mem;Offcore",
1186        "MetricName": "L2MPKI_All",
1187        "Unit": "cpu_core"
1188    },
1189    {
1190        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
1191        "MetricExpr": "1000 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
1192        "MetricGroup": "CacheMisses;Mem",
1193        "MetricName": "L2MPKI_Load",
1194        "Unit": "cpu_core"
1195    },
1196    {
1197        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
1198        "MetricExpr": "1000 * (L2_RQSTS.REFERENCES - L2_RQSTS.MISS) / INST_RETIRED.ANY",
1199        "MetricGroup": "CacheMisses;Mem",
1200        "MetricName": "L2HPKI_All",
1201        "Unit": "cpu_core"
1202    },
1203    {
1204        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
1205        "MetricExpr": "1000 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
1206        "MetricGroup": "CacheMisses;Mem",
1207        "MetricName": "L2HPKI_Load",
1208        "Unit": "cpu_core"
1209    },
1210    {
1211        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
1212        "MetricExpr": "1000 * MEM_LOAD_RETIRED.L3_MISS / INST_RETIRED.ANY",
1213        "MetricGroup": "CacheMisses;Mem",
1214        "MetricName": "L3MPKI",
1215        "Unit": "cpu_core"
1216    },
1217    {
1218        "BriefDescription": "Fill Buffer (FB) hits per kilo instructions for retired demand loads (L1D misses that merge into ongoing miss-handling entries)",
1219        "MetricExpr": "1000 * MEM_LOAD_RETIRED.FB_HIT / INST_RETIRED.ANY",
1220        "MetricGroup": "CacheMisses;Mem",
1221        "MetricName": "FB_HPKI",
1222        "Unit": "cpu_core"
1223    },
1224    {
1225        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
1226        "MetricConstraint": "NO_NMI_WATCHDOG",
1227        "MetricExpr": "(ITLB_MISSES.WALK_PENDING + DTLB_LOAD_MISSES.WALK_PENDING + DTLB_STORE_MISSES.WALK_PENDING) / (4 * CORE_CLKS)",
1228        "MetricGroup": "Mem;MemoryTLB",
1229        "MetricName": "Page_Walks_Utilization",
1230        "Unit": "cpu_core"
1231    },
1232    {
1233        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
1234        "MetricExpr": "64 * L1D.REPLACEMENT / 1000000000 / duration_time",
1235        "MetricGroup": "Mem;MemoryBW",
1236        "MetricName": "L1D_Cache_Fill_BW",
1237        "Unit": "cpu_core"
1238    },
1239    {
1240        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
1241        "MetricExpr": "64 * L2_LINES_IN.ALL / 1000000000 / duration_time",
1242        "MetricGroup": "Mem;MemoryBW",
1243        "MetricName": "L2_Cache_Fill_BW",
1244        "Unit": "cpu_core"
1245    },
1246    {
1247        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
1248        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1000000000 / duration_time",
1249        "MetricGroup": "Mem;MemoryBW",
1250        "MetricName": "L3_Cache_Fill_BW",
1251        "Unit": "cpu_core"
1252    },
1253    {
1254        "BriefDescription": "Average per-core data access bandwidth to the L3 cache [GB / sec]",
1255        "MetricExpr": "64 * OFFCORE_REQUESTS.ALL_REQUESTS / 1000000000 / duration_time",
1256        "MetricGroup": "Mem;MemoryBW;Offcore",
1257        "MetricName": "L3_Cache_Access_BW",
1258        "Unit": "cpu_core"
1259    },
1260    {
1261        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
1262        "MetricExpr": "L1D_Cache_Fill_BW",
1263        "MetricGroup": "Mem;MemoryBW",
1264        "MetricName": "L1D_Cache_Fill_BW_1T",
1265        "Unit": "cpu_core"
1266    },
1267    {
1268        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
1269        "MetricExpr": "L2_Cache_Fill_BW",
1270        "MetricGroup": "Mem;MemoryBW",
1271        "MetricName": "L2_Cache_Fill_BW_1T",
1272        "Unit": "cpu_core"
1273    },
1274    {
1275        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
1276        "MetricExpr": "L3_Cache_Fill_BW",
1277        "MetricGroup": "Mem;MemoryBW",
1278        "MetricName": "L3_Cache_Fill_BW_1T",
1279        "Unit": "cpu_core"
1280    },
1281    {
1282        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
1283        "MetricExpr": "L3_Cache_Access_BW",
1284        "MetricGroup": "Mem;MemoryBW;Offcore",
1285        "MetricName": "L3_Cache_Access_BW_1T",
1286        "Unit": "cpu_core"
1287    },
1288    {
1289        "BriefDescription": "Average CPU Utilization",
1290        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
1291        "MetricGroup": "HPC;Summary",
1292        "MetricName": "CPU_Utilization",
1293        "Unit": "cpu_core"
1294    },
1295    {
1296        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
1297        "MetricExpr": "Turbo_Utilization * msr@tsc@ / 1000000000 / duration_time",
1298        "MetricGroup": "Power;Summary",
1299        "MetricName": "Average_Frequency",
1300        "Unit": "cpu_core"
1301    },
1302    {
1303        "BriefDescription": "Giga Floating Point Operations Per Second",
1304        "MetricExpr": "((1 * (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) / 1000000000) / duration_time",
1305        "MetricGroup": "Cor;Flops;HPC",
1306        "MetricName": "GFLOPs",
1307        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width and AMX engine.",
1308        "Unit": "cpu_core"
1309    },
1310    {
1311        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
1312        "MetricExpr": "CLKS / CPU_CLK_UNHALTED.REF_TSC",
1313        "MetricGroup": "Power",
1314        "MetricName": "Turbo_Utilization",
1315        "Unit": "cpu_core"
1316    },
1317    {
1318        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
1319        "MetricExpr": "1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_DISTRIBUTED if #SMT_on else 0",
1320        "MetricGroup": "SMT",
1321        "MetricName": "SMT_2T_Utilization",
1322        "Unit": "cpu_core"
1323    },
1324    {
1325        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
1326        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
1327        "MetricGroup": "OS",
1328        "MetricName": "Kernel_Utilization",
1329        "Unit": "cpu_core"
1330    },
1331    {
1332        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
1333        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
1334        "MetricGroup": "OS",
1335        "MetricName": "Kernel_CPI",
1336        "Unit": "cpu_core"
1337    },
1338    {
1339        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
1340        "MetricExpr": "64 * (arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@) / 1000000 / duration_time / 1000",
1341        "MetricGroup": "HPC;Mem;MemoryBW;SoC",
1342        "MetricName": "DRAM_BW_Use",
1343        "Unit": "cpu_core"
1344    },
1345    {
1346        "BriefDescription": "Average number of parallel requests to external memory. Accounts for all requests",
1347        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / arb@event\\=0x81\\,umask\\=0x1@",
1348        "MetricGroup": "Mem;SoC",
1349        "MetricName": "MEM_Parallel_Requests",
1350        "Unit": "cpu_core"
1351    },
1352    {
1353        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
1354        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
1355        "MetricGroup": "Branches;OS",
1356        "MetricName": "IpFarBranch",
1357        "Unit": "cpu_core"
1358    },
1359    {
1360        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to frontend stalls.",
1361        "MetricExpr": "TOPDOWN_FE_BOUND.ALL / SLOTS",
1362        "MetricGroup": "TopdownL1",
1363        "MetricName": "tma_frontend_bound",
1364        "ScaleUnit": "100%",
1365        "Unit": "cpu_atom"
1366    },
1367    {
1368        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to frontend bandwidth restrictions due to decode, predecode, cisc, and other limitations.",
1369        "MetricExpr": "TOPDOWN_FE_BOUND.FRONTEND_LATENCY / SLOTS",
1370        "MetricGroup": "TopdownL2;tma_frontend_bound_group",
1371        "MetricName": "tma_frontend_latency",
1372        "ScaleUnit": "100%",
1373        "Unit": "cpu_atom"
1374    },
1375    {
1376        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to instruction cache misses.",
1377        "MetricExpr": "TOPDOWN_FE_BOUND.ICACHE / SLOTS",
1378        "MetricGroup": "TopdownL3;tma_frontend_latency_group",
1379        "MetricName": "tma_icache",
1380        "ScaleUnit": "100%",
1381        "Unit": "cpu_atom"
1382    },
1383    {
1384        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to Instruction Table Lookaside Buffer (ITLB) misses.",
1385        "MetricExpr": "TOPDOWN_FE_BOUND.ITLB / SLOTS",
1386        "MetricGroup": "TopdownL3;tma_frontend_latency_group",
1387        "MetricName": "tma_itlb",
1388        "ScaleUnit": "100%",
1389        "Unit": "cpu_atom"
1390    },
1391    {
1392        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to BACLEARS, which occurs when the Branch Target Buffer (BTB) prediction or lack thereof, was corrected by a later branch predictor in the frontend",
1393        "MetricExpr": "TOPDOWN_FE_BOUND.BRANCH_DETECT / SLOTS",
1394        "MetricGroup": "TopdownL3;tma_frontend_latency_group",
1395        "MetricName": "tma_branch_detect",
1396        "PublicDescription": "Counts the number of issue slots  that were not delivered by the frontend due to BACLEARS, which occurs when the Branch Target Buffer (BTB) prediction or lack thereof, was corrected by a later branch predictor in the frontend. Includes BACLEARS due to all branch types including conditional and unconditional jumps, returns, and indirect branches.",
1397        "ScaleUnit": "100%",
1398        "Unit": "cpu_atom"
1399    },
1400    {
1401        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to BTCLEARS, which occurs when the Branch Target Buffer (BTB) predicts a taken branch.",
1402        "MetricExpr": "TOPDOWN_FE_BOUND.BRANCH_RESTEER / SLOTS",
1403        "MetricGroup": "TopdownL3;tma_frontend_latency_group",
1404        "MetricName": "tma_branch_resteer",
1405        "ScaleUnit": "100%",
1406        "Unit": "cpu_atom"
1407    },
1408    {
1409        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to frontend bandwidth restrictions due to decode, predecode, cisc, and other limitations.",
1410        "MetricExpr": "TOPDOWN_FE_BOUND.FRONTEND_BANDWIDTH / SLOTS",
1411        "MetricGroup": "TopdownL2;tma_frontend_bound_group",
1412        "MetricName": "tma_frontend_bandwidth",
1413        "ScaleUnit": "100%",
1414        "Unit": "cpu_atom"
1415    },
1416    {
1417        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to the microcode sequencer (MS).",
1418        "MetricExpr": "TOPDOWN_FE_BOUND.CISC / SLOTS",
1419        "MetricGroup": "TopdownL3;tma_frontend_bandwidth_group",
1420        "MetricName": "tma_cisc",
1421        "ScaleUnit": "100%",
1422        "Unit": "cpu_atom"
1423    },
1424    {
1425        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to decode stalls.",
1426        "MetricExpr": "TOPDOWN_FE_BOUND.DECODE / SLOTS",
1427        "MetricGroup": "TopdownL3;tma_frontend_bandwidth_group",
1428        "MetricName": "tma_decode",
1429        "ScaleUnit": "100%",
1430        "Unit": "cpu_atom"
1431    },
1432    {
1433        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to wrong predecodes.",
1434        "MetricExpr": "TOPDOWN_FE_BOUND.PREDECODE / SLOTS",
1435        "MetricGroup": "TopdownL3;tma_frontend_bandwidth_group",
1436        "MetricName": "tma_predecode",
1437        "ScaleUnit": "100%",
1438        "Unit": "cpu_atom"
1439    },
1440    {
1441        "BriefDescription": "Counts the number of issue slots  that were not delivered by the frontend due to other common frontend stalls not categorized.",
1442        "MetricExpr": "TOPDOWN_FE_BOUND.OTHER / SLOTS",
1443        "MetricGroup": "TopdownL3;tma_frontend_bandwidth_group",
1444        "MetricName": "tma_other_fb",
1445        "ScaleUnit": "100%",
1446        "Unit": "cpu_atom"
1447    },
1448    {
1449        "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear",
1450        "MetricExpr": "(SLOTS - (TOPDOWN_FE_BOUND.ALL + TOPDOWN_BE_BOUND.ALL + TOPDOWN_RETIRING.ALL)) / SLOTS",
1451        "MetricGroup": "TopdownL1",
1452        "MetricName": "tma_bad_speculation",
1453        "PublicDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a mispredicted jump or a machine clear. Only issue slots wasted due to fast nukes such as memory ordering nukes are counted. Other nukes are not accounted for. Counts all issue slots blocked during this recovery window including relevant microcode flows and while uops are not yet available in the instruction queue (IQ). Also includes the issue slots that were consumed by the backend but were thrown away because they were younger than the mispredict or machine clear.",
1454        "ScaleUnit": "100%",
1455        "Unit": "cpu_atom"
1456    },
1457    {
1458        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to branch mispredicts.",
1459        "MetricExpr": "TOPDOWN_BAD_SPECULATION.MISPREDICT / SLOTS",
1460        "MetricGroup": "TopdownL2;tma_bad_speculation_group",
1461        "MetricName": "tma_branch_mispredicts",
1462        "ScaleUnit": "100%",
1463        "Unit": "cpu_atom"
1464    },
1465    {
1466        "BriefDescription": "Counts the total number of issue slots that were not consumed by the backend because allocation is stalled due to a machine clear (nuke) of any kind including memory ordering and memory disambiguation.",
1467        "MetricExpr": "TOPDOWN_BAD_SPECULATION.MACHINE_CLEARS / SLOTS",
1468        "MetricGroup": "TopdownL2;tma_bad_speculation_group",
1469        "MetricName": "tma_machine_clears",
1470        "ScaleUnit": "100%",
1471        "Unit": "cpu_atom"
1472    },
1473    {
1474        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to a machine clear (slow nuke).",
1475        "MetricExpr": "TOPDOWN_BAD_SPECULATION.NUKE / SLOTS",
1476        "MetricGroup": "TopdownL3;tma_machine_clears_group",
1477        "MetricName": "tma_nuke",
1478        "ScaleUnit": "100%",
1479        "Unit": "cpu_atom"
1480    },
1481    {
1482        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to SMC. ",
1483        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.SMC / MACHINE_CLEARS.SLOW)",
1484        "MetricGroup": "TopdownL4;tma_nuke_group",
1485        "MetricName": "tma_smc",
1486        "ScaleUnit": "100%",
1487        "Unit": "cpu_atom"
1488    },
1489    {
1490        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to memory ordering. ",
1491        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.MEMORY_ORDERING / MACHINE_CLEARS.SLOW)",
1492        "MetricGroup": "TopdownL4;tma_nuke_group",
1493        "MetricName": "tma_memory_ordering",
1494        "ScaleUnit": "100%",
1495        "Unit": "cpu_atom"
1496    },
1497    {
1498        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to FP assists. ",
1499        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.FP_ASSIST / MACHINE_CLEARS.SLOW)",
1500        "MetricGroup": "TopdownL4;tma_nuke_group",
1501        "MetricName": "tma_fp_assist",
1502        "ScaleUnit": "100%",
1503        "Unit": "cpu_atom"
1504    },
1505    {
1506        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to memory disambiguation. ",
1507        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.DISAMBIGUATION / MACHINE_CLEARS.SLOW)",
1508        "MetricGroup": "TopdownL4;tma_nuke_group",
1509        "MetricName": "tma_disambiguation",
1510        "ScaleUnit": "100%",
1511        "Unit": "cpu_atom"
1512    },
1513    {
1514        "BriefDescription": "Counts the number of machine clears relative to the number of nuke slots due to page faults. ",
1515        "MetricExpr": "tma_nuke * (MACHINE_CLEARS.PAGE_FAULT / MACHINE_CLEARS.SLOW)",
1516        "MetricGroup": "TopdownL4;tma_nuke_group",
1517        "MetricName": "tma_page_fault",
1518        "ScaleUnit": "100%",
1519        "Unit": "cpu_atom"
1520    },
1521    {
1522        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to a machine clear classified as a fast nuke due to memory ordering, memory disambiguation and memory renaming.",
1523        "MetricExpr": "TOPDOWN_BAD_SPECULATION.FASTNUKE / SLOTS",
1524        "MetricGroup": "TopdownL3;tma_machine_clears_group",
1525        "MetricName": "tma_fast_nuke",
1526        "ScaleUnit": "100%",
1527        "Unit": "cpu_atom"
1528    },
1529    {
1530        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
1531        "MetricExpr": "TOPDOWN_BE_BOUND.ALL / SLOTS",
1532        "MetricGroup": "TopdownL1",
1533        "MetricName": "tma_backend_bound",
1534        "PublicDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls.  Note that uops must be available for consumption in order for this event to count.  If a uop is not available (IQ is empty), this event will not count.   The rest of these subevents count backend stalls, in cycles, due to an outstanding request which is memory bound vs core bound.   The subevents are not slot based events and therefore can not be precisely added or subtracted from the Backend_Bound_Aux subevents which are slot based.",
1535        "ScaleUnit": "100%",
1536        "Unit": "cpu_atom"
1537    },
1538    {
1539        "BriefDescription": "Counts the number of cycles due to backend bound stalls that are core execution bound and not attributed to outstanding demand load or store stalls. ",
1540        "MetricExpr": "max(0, tma_backend_bound - tma_load_store_bound)",
1541        "MetricGroup": "TopdownL2;tma_backend_bound_group",
1542        "MetricName": "tma_core_bound",
1543        "ScaleUnit": "100%",
1544        "Unit": "cpu_atom"
1545    },
1546    {
1547        "BriefDescription": "Counts the number of cycles the core is stalled due to stores or loads. ",
1548        "MetricExpr": "min((TOPDOWN_BE_BOUND.ALL / SLOTS), (LD_HEAD.ANY_AT_RET / CLKS) + tma_store_bound)",
1549        "MetricGroup": "TopdownL2;tma_backend_bound_group",
1550        "MetricName": "tma_load_store_bound",
1551        "ScaleUnit": "100%",
1552        "Unit": "cpu_atom"
1553    },
1554    {
1555        "BriefDescription": "Counts the number of cycles the core is stalled due to store buffer full.",
1556        "MetricExpr": "tma_mem_scheduler * (MEM_SCHEDULER_BLOCK.ST_BUF / MEM_SCHEDULER_BLOCK.ALL)",
1557        "MetricGroup": "TopdownL3;tma_load_store_bound_group",
1558        "MetricName": "tma_store_bound",
1559        "ScaleUnit": "100%",
1560        "Unit": "cpu_atom"
1561    },
1562    {
1563        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a load block.",
1564        "MetricExpr": "LD_HEAD.L1_BOUND_AT_RET / CLKS",
1565        "MetricGroup": "TopdownL3;tma_load_store_bound_group",
1566        "MetricName": "tma_l1_bound",
1567        "ScaleUnit": "100%",
1568        "Unit": "cpu_atom"
1569    },
1570    {
1571        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a store forward block.",
1572        "MetricExpr": "LD_HEAD.ST_ADDR_AT_RET / CLKS",
1573        "MetricGroup": "TopdownL4;tma_l1_bound_group",
1574        "MetricName": "tma_store_fwd",
1575        "ScaleUnit": "100%",
1576        "Unit": "cpu_atom"
1577    },
1578    {
1579        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a first level TLB miss.",
1580        "MetricExpr": "LD_HEAD.DTLB_MISS_AT_RET / CLKS",
1581        "MetricGroup": "TopdownL4;tma_l1_bound_group",
1582        "MetricName": "tma_stlb_hit",
1583        "ScaleUnit": "100%",
1584        "Unit": "cpu_atom"
1585    },
1586    {
1587        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a second level TLB miss requiring a page walk.",
1588        "MetricExpr": "LD_HEAD.PGWALK_AT_RET / CLKS",
1589        "MetricGroup": "TopdownL4;tma_l1_bound_group",
1590        "MetricName": "tma_stlb_miss",
1591        "ScaleUnit": "100%",
1592        "Unit": "cpu_atom"
1593    },
1594    {
1595        "BriefDescription": "Counts the number of cycles that the oldest load of the load buffer is stalled at retirement due to a number of other load blocks.",
1596        "MetricExpr": "LD_HEAD.OTHER_AT_RET / CLKS",
1597        "MetricGroup": "TopdownL4;tma_l1_bound_group",
1598        "MetricName": "tma_other_l1",
1599        "ScaleUnit": "100%",
1600        "Unit": "cpu_atom"
1601    },
1602    {
1603        "BriefDescription": "Counts the number of cycles a core is stalled due to a demand load which hit in the L2 Cache.",
1604        "MetricExpr": "(MEM_BOUND_STALLS.LOAD_L2_HIT / CLKS) - (MEM_BOUND_STALLS_AT_RET_CORRECTION * MEM_BOUND_STALLS.LOAD_L2_HIT / MEM_BOUND_STALLS.LOAD)",
1605        "MetricGroup": "TopdownL3;tma_load_store_bound_group",
1606        "MetricName": "tma_l2_bound",
1607        "ScaleUnit": "100%",
1608        "Unit": "cpu_atom"
1609    },
1610    {
1611        "BriefDescription": "Counts the number of cycles a core is stalled due to a demand load which hit in the Last Level Cache (LLC) or other core with HITE/F/M.",
1612        "MetricExpr": "(MEM_BOUND_STALLS.LOAD_LLC_HIT / CLKS) - (MEM_BOUND_STALLS_AT_RET_CORRECTION * MEM_BOUND_STALLS.LOAD_LLC_HIT / MEM_BOUND_STALLS.LOAD)",
1613        "MetricGroup": "TopdownL3;tma_load_store_bound_group",
1614        "MetricName": "tma_l3_bound",
1615        "ScaleUnit": "100%",
1616        "Unit": "cpu_atom"
1617    },
1618    {
1619        "BriefDescription": "Counts the number of cycles the core is stalled due to a demand load miss which hit in DRAM or MMIO (Non-DRAM).",
1620        "MetricExpr": "(MEM_BOUND_STALLS.LOAD_DRAM_HIT / CLKS) - (MEM_BOUND_STALLS_AT_RET_CORRECTION * MEM_BOUND_STALLS.LOAD_DRAM_HIT / MEM_BOUND_STALLS.LOAD)",
1621        "MetricGroup": "TopdownL3;tma_load_store_bound_group",
1622        "MetricName": "tma_dram_bound",
1623        "ScaleUnit": "100%",
1624        "Unit": "cpu_atom"
1625    },
1626    {
1627        "BriefDescription": "Counts the number of cycles the core is stalled due to a demand load miss which hits in the L2, LLC, DRAM or MMIO (Non-DRAM) but could not be correctly attributed or cycles in which the load miss is waiting on a request buffer.",
1628        "MetricExpr": "max(0, tma_load_store_bound - (tma_store_bound + tma_l1_bound + tma_l2_bound + tma_l3_bound + tma_dram_bound))",
1629        "MetricGroup": "TopdownL3;tma_load_store_bound_group",
1630        "MetricName": "tma_other_load_store",
1631        "ScaleUnit": "100%",
1632        "Unit": "cpu_atom"
1633    },
1634    {
1635        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
1636        "MetricExpr": "tma_backend_bound",
1637        "MetricGroup": "TopdownL1",
1638        "MetricName": "tma_backend_bound_aux",
1639        "PublicDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls.  Note that UOPS must be available for consumption in order for this event to count.  If a uop is not available (IQ is empty), this event will not count.  All of these subevents count backend stalls, in slots, due to a resource limitation.   These are not cycle based events and therefore can not be precisely added or subtracted from the Backend_Bound subevents which are cycle based.  These subevents are supplementary to Backend_Bound and can be used to analyze results from a resource perspective at allocation.  ",
1640        "ScaleUnit": "100%",
1641        "Unit": "cpu_atom"
1642    },
1643    {
1644        "BriefDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls",
1645        "MetricExpr": "tma_backend_bound",
1646        "MetricGroup": "TopdownL2;tma_backend_bound_aux_group",
1647        "MetricName": "tma_resource_bound",
1648        "PublicDescription": "Counts the total number of issue slots  that were not consumed by the backend due to backend stalls.  Note that uops must be available for consumption in order for this event to count.  If a uop is not available (IQ is empty), this event will not count. ",
1649        "ScaleUnit": "100%",
1650        "Unit": "cpu_atom"
1651    },
1652    {
1653        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to memory reservation stalls in which a scheduler is not able to accept uops.",
1654        "MetricExpr": "TOPDOWN_BE_BOUND.MEM_SCHEDULER / SLOTS",
1655        "MetricGroup": "TopdownL3;tma_resource_bound_group",
1656        "MetricName": "tma_mem_scheduler",
1657        "ScaleUnit": "100%",
1658        "Unit": "cpu_atom"
1659    },
1660    {
1661        "BriefDescription": "Counts the number of cycles, relative to the number of mem_scheduler slots, in which uops are blocked due to store buffer full",
1662        "MetricExpr": "tma_mem_scheduler * (MEM_SCHEDULER_BLOCK.ST_BUF / MEM_SCHEDULER_BLOCK.ALL)",
1663        "MetricGroup": "TopdownL4;tma_mem_scheduler_group",
1664        "MetricName": "tma_st_buffer",
1665        "ScaleUnit": "100%",
1666        "Unit": "cpu_atom"
1667    },
1668    {
1669        "BriefDescription": "Counts the number of cycles, relative to the number of mem_scheduler slots, in which uops are blocked due to load buffer full",
1670        "MetricExpr": "tma_mem_scheduler * MEM_SCHEDULER_BLOCK.LD_BUF / MEM_SCHEDULER_BLOCK.ALL",
1671        "MetricGroup": "TopdownL4;tma_mem_scheduler_group",
1672        "MetricName": "tma_ld_buffer",
1673        "ScaleUnit": "100%",
1674        "Unit": "cpu_atom"
1675    },
1676    {
1677        "BriefDescription": "Counts the number of cycles, relative to the number of mem_scheduler slots, in which uops are blocked due to RSV full relative ",
1678        "MetricExpr": "tma_mem_scheduler * MEM_SCHEDULER_BLOCK.RSV / MEM_SCHEDULER_BLOCK.ALL",
1679        "MetricGroup": "TopdownL4;tma_mem_scheduler_group",
1680        "MetricName": "tma_rsv",
1681        "ScaleUnit": "100%",
1682        "Unit": "cpu_atom"
1683    },
1684    {
1685        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to IEC or FPC RAT stalls, which can be due to FIQ or IEC reservation stalls in which the integer, floating point or SIMD scheduler is not able to accept uops.",
1686        "MetricExpr": "TOPDOWN_BE_BOUND.NON_MEM_SCHEDULER / SLOTS",
1687        "MetricGroup": "TopdownL3;tma_resource_bound_group",
1688        "MetricName": "tma_non_mem_scheduler",
1689        "ScaleUnit": "100%",
1690        "Unit": "cpu_atom"
1691    },
1692    {
1693        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to the physical register file unable to accept an entry (marble stalls).",
1694        "MetricExpr": "TOPDOWN_BE_BOUND.REGISTER / SLOTS",
1695        "MetricGroup": "TopdownL3;tma_resource_bound_group",
1696        "MetricName": "tma_register",
1697        "ScaleUnit": "100%",
1698        "Unit": "cpu_atom"
1699    },
1700    {
1701        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to the reorder buffer being full (ROB stalls).",
1702        "MetricExpr": "TOPDOWN_BE_BOUND.REORDER_BUFFER / SLOTS",
1703        "MetricGroup": "TopdownL3;tma_resource_bound_group",
1704        "MetricName": "tma_reorder_buffer",
1705        "ScaleUnit": "100%",
1706        "Unit": "cpu_atom"
1707    },
1708    {
1709        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to certain allocation restrictions.",
1710        "MetricExpr": "TOPDOWN_BE_BOUND.ALLOC_RESTRICTIONS / SLOTS",
1711        "MetricGroup": "TopdownL3;tma_resource_bound_group",
1712        "MetricName": "tma_alloc_restriction",
1713        "ScaleUnit": "100%",
1714        "Unit": "cpu_atom"
1715    },
1716    {
1717        "BriefDescription": "Counts the number of issue slots  that were not consumed by the backend due to scoreboards from the instruction queue (IQ), jump execution unit (JEU), or microcode sequencer (MS).",
1718        "MetricExpr": "TOPDOWN_BE_BOUND.SERIALIZATION / SLOTS",
1719        "MetricGroup": "TopdownL3;tma_resource_bound_group",
1720        "MetricName": "tma_serialization",
1721        "ScaleUnit": "100%",
1722        "Unit": "cpu_atom"
1723    },
1724    {
1725        "BriefDescription": "Counts the numer of issue slots  that result in retirement slots. ",
1726        "MetricExpr": "TOPDOWN_RETIRING.ALL / SLOTS",
1727        "MetricGroup": "TopdownL1",
1728        "MetricName": "tma_retiring",
1729        "ScaleUnit": "100%",
1730        "Unit": "cpu_atom"
1731    },
1732    {
1733        "BriefDescription": "Counts the number of uops that are not from the microsequencer. ",
1734        "MetricExpr": "(TOPDOWN_RETIRING.ALL - UOPS_RETIRED.MS) / SLOTS",
1735        "MetricGroup": "TopdownL2;tma_retiring_group",
1736        "MetricName": "tma_base",
1737        "ScaleUnit": "100%",
1738        "Unit": "cpu_atom"
1739    },
1740    {
1741        "BriefDescription": "Counts the number of floating point operations per uop with all default weighting.",
1742        "MetricExpr": "UOPS_RETIRED.FPDIV / SLOTS",
1743        "MetricGroup": "TopdownL3;tma_base_group",
1744        "MetricName": "tma_fp_uops",
1745        "ScaleUnit": "100%",
1746        "Unit": "cpu_atom"
1747    },
1748    {
1749        "BriefDescription": "Counts the number of uops retired excluding ms and fp div uops.",
1750        "MetricExpr": "(TOPDOWN_RETIRING.ALL - UOPS_RETIRED.MS - UOPS_RETIRED.FPDIV) / SLOTS",
1751        "MetricGroup": "TopdownL3;tma_base_group",
1752        "MetricName": "tma_other_ret",
1753        "ScaleUnit": "100%",
1754        "Unit": "cpu_atom"
1755    },
1756    {
1757        "BriefDescription": "Counts the number of uops that are from the complex flows issued by the micro-sequencer (MS)",
1758        "MetricExpr": "UOPS_RETIRED.MS / SLOTS",
1759        "MetricGroup": "TopdownL2;tma_retiring_group",
1760        "MetricName": "tma_ms_uops",
1761        "PublicDescription": "Counts the number of uops that are from the complex flows issued by the micro-sequencer (MS).  This includes uops from flows due to complex instructions, faults, assists, and inserted flows.",
1762        "ScaleUnit": "100%",
1763        "Unit": "cpu_atom"
1764    },
1765    {
1766        "BriefDescription": "",
1767        "MetricExpr": "CPU_CLK_UNHALTED.CORE",
1768        "MetricName": "CLKS",
1769        "Unit": "cpu_atom"
1770    },
1771    {
1772        "BriefDescription": "",
1773        "MetricExpr": "CPU_CLK_UNHALTED.CORE_P",
1774        "MetricName": "CLKS_P",
1775        "Unit": "cpu_atom"
1776    },
1777    {
1778        "BriefDescription": "",
1779        "MetricExpr": "5 * CLKS",
1780        "MetricName": "SLOTS",
1781        "Unit": "cpu_atom"
1782    },
1783    {
1784        "BriefDescription": "Instructions Per Cycle",
1785        "MetricExpr": "INST_RETIRED.ANY / CLKS",
1786        "MetricName": "IPC",
1787        "Unit": "cpu_atom"
1788    },
1789    {
1790        "BriefDescription": "Cycles Per Instruction",
1791        "MetricExpr": "CLKS / INST_RETIRED.ANY",
1792        "MetricName": "CPI",
1793        "Unit": "cpu_atom"
1794    },
1795    {
1796        "BriefDescription": "Uops Per Instruction",
1797        "MetricExpr": "UOPS_RETIRED.ALL / INST_RETIRED.ANY",
1798        "MetricName": "UPI",
1799        "Unit": "cpu_atom"
1800    },
1801    {
1802        "BriefDescription": "Percentage of total non-speculative loads with a store forward or unknown store address block",
1803        "MetricExpr": "100 * LD_BLOCKS.DATA_UNKNOWN / MEM_UOPS_RETIRED.ALL_LOADS",
1804        "MetricName": "Store_Fwd_Blocks",
1805        "Unit": "cpu_atom"
1806    },
1807    {
1808        "BriefDescription": "Percentage of total non-speculative loads with a address aliasing block",
1809        "MetricExpr": "100 * LD_BLOCKS.4K_ALIAS / MEM_UOPS_RETIRED.ALL_LOADS",
1810        "MetricName": "Address_Alias_Blocks",
1811        "Unit": "cpu_atom"
1812    },
1813    {
1814        "BriefDescription": "Percentage of total non-speculative loads that are splits",
1815        "MetricExpr": "100 * MEM_UOPS_RETIRED.SPLIT_LOADS / MEM_UOPS_RETIRED.ALL_LOADS",
1816        "MetricName": "Load_Splits",
1817        "Unit": "cpu_atom"
1818    },
1819    {
1820        "BriefDescription": "Instructions per Branch (lower number means higher occurance rate)",
1821        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
1822        "MetricName": "IpBranch",
1823        "Unit": "cpu_atom"
1824    },
1825    {
1826        "BriefDescription": "Instruction per (near) call (lower number means higher occurance rate)",
1827        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.CALL",
1828        "MetricName": "IpCall",
1829        "Unit": "cpu_atom"
1830    },
1831    {
1832        "BriefDescription": "Instructions per Load",
1833        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
1834        "MetricName": "IpLoad",
1835        "Unit": "cpu_atom"
1836    },
1837    {
1838        "BriefDescription": "Instructions per Store",
1839        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
1840        "MetricName": "IpStore",
1841        "Unit": "cpu_atom"
1842    },
1843    {
1844        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction",
1845        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
1846        "MetricName": "IpMispredict",
1847        "Unit": "cpu_atom"
1848    },
1849    {
1850        "BriefDescription": "Instructions per Far Branch",
1851        "MetricExpr": "INST_RETIRED.ANY / (BR_INST_RETIRED.FAR_BRANCH / 2)",
1852        "MetricName": "IpFarBranch",
1853        "Unit": "cpu_atom"
1854    },
1855    {
1856        "BriefDescription": "Ratio of all branches which mispredict",
1857        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.ALL_BRANCHES",
1858        "MetricName": "Branch_Mispredict_Ratio",
1859        "Unit": "cpu_atom"
1860    },
1861    {
1862        "BriefDescription": "Ratio between Mispredicted branches and unknown branches",
1863        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / BACLEARS.ANY",
1864        "MetricName": "Branch_Mispredict_to_Unknown_Branch_Ratio",
1865        "Unit": "cpu_atom"
1866    },
1867    {
1868        "BriefDescription": "Percentage of all uops which are ucode ops",
1869        "MetricExpr": "100 * UOPS_RETIRED.MS / UOPS_RETIRED.ALL",
1870        "MetricName": "Microcode_Uop_Ratio",
1871        "Unit": "cpu_atom"
1872    },
1873    {
1874        "BriefDescription": "Percentage of all uops which are FPDiv uops",
1875        "MetricExpr": "100 * UOPS_RETIRED.FPDIV / UOPS_RETIRED.ALL",
1876        "MetricName": "FPDiv_Uop_Ratio",
1877        "Unit": "cpu_atom"
1878    },
1879    {
1880        "BriefDescription": "Percentage of all uops which are IDiv uops",
1881        "MetricExpr": "100 * UOPS_RETIRED.IDIV / UOPS_RETIRED.ALL",
1882        "MetricName": "IDiv_Uop_Ratio",
1883        "Unit": "cpu_atom"
1884    },
1885    {
1886        "BriefDescription": "Percentage of all uops which are x87 uops",
1887        "MetricExpr": "100 * UOPS_RETIRED.X87 / UOPS_RETIRED.ALL",
1888        "MetricName": "X87_Uop_Ratio",
1889        "Unit": "cpu_atom"
1890    },
1891    {
1892        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
1893        "MetricExpr": "CLKS / CPU_CLK_UNHALTED.REF_TSC",
1894        "MetricName": "Turbo_Utilization",
1895        "Unit": "cpu_atom"
1896    },
1897    {
1898        "BriefDescription": "Fraction of cycles spent in Kernel mode",
1899        "MetricExpr": "cpu_atom@CPU_CLK_UNHALTED.CORE@k / CPU_CLK_UNHALTED.CORE",
1900        "MetricName": "Kernel_Utilization",
1901        "Unit": "cpu_atom"
1902    },
1903    {
1904        "BriefDescription": "Average CPU Utilization",
1905        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
1906        "MetricName": "CPU_Utilization",
1907        "Unit": "cpu_atom"
1908    },
1909    {
1910        "BriefDescription": "Cycle cost per L2 hit",
1911        "MetricExpr": "MEM_BOUND_STALLS.LOAD_L2_HIT / MEM_LOAD_UOPS_RETIRED.L2_HIT",
1912        "MetricName": "Cycles_per_Demand_Load_L2_Hit",
1913        "Unit": "cpu_atom"
1914    },
1915    {
1916        "BriefDescription": "Cycle cost per LLC hit",
1917        "MetricExpr": "MEM_BOUND_STALLS.LOAD_LLC_HIT / MEM_LOAD_UOPS_RETIRED.L3_HIT",
1918        "MetricName": "Cycles_per_Demand_Load_L3_Hit",
1919        "Unit": "cpu_atom"
1920    },
1921    {
1922        "BriefDescription": "Cycle cost per DRAM hit",
1923        "MetricExpr": "MEM_BOUND_STALLS.LOAD_DRAM_HIT / MEM_LOAD_UOPS_RETIRED.DRAM_HIT",
1924        "MetricName": "Cycles_per_Demand_Load_DRAM_Hit",
1925        "Unit": "cpu_atom"
1926    },
1927    {
1928        "BriefDescription": "Percent of instruction miss cost that hit in the L2",
1929        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_L2_HIT / (MEM_BOUND_STALLS.IFETCH)",
1930        "MetricName": "Inst_Miss_Cost_L2Hit_Percent",
1931        "Unit": "cpu_atom"
1932    },
1933    {
1934        "BriefDescription": "Percent of instruction miss cost that hit in the L3",
1935        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_LLC_HIT / (MEM_BOUND_STALLS.IFETCH)",
1936        "MetricName": "Inst_Miss_Cost_L3Hit_Percent",
1937        "Unit": "cpu_atom"
1938    },
1939    {
1940        "BriefDescription": "Percent of instruction miss cost that hit in DRAM",
1941        "MetricExpr": "100 * MEM_BOUND_STALLS.IFETCH_DRAM_HIT / (MEM_BOUND_STALLS.IFETCH)",
1942        "MetricName": "Inst_Miss_Cost_DRAMHit_Percent",
1943        "Unit": "cpu_atom"
1944    },
1945    {
1946        "BriefDescription": "load ops retired per 1000 instruction",
1947        "MetricExpr": "1000 * MEM_UOPS_RETIRED.ALL_LOADS / INST_RETIRED.ANY",
1948        "MetricName": "MemLoadPKI",
1949        "Unit": "cpu_atom"
1950    },
1951    {
1952        "BriefDescription": "C1 residency percent per core",
1953        "MetricExpr": "(cstate_core@c1\\-residency@ / msr@tsc@) * 100",
1954        "MetricGroup": "Power",
1955        "MetricName": "C1_Core_Residency"
1956    },
1957    {
1958        "BriefDescription": "C6 residency percent per core",
1959        "MetricExpr": "(cstate_core@c6\\-residency@ / msr@tsc@) * 100",
1960        "MetricGroup": "Power",
1961        "MetricName": "C6_Core_Residency"
1962    },
1963    {
1964        "BriefDescription": "C7 residency percent per core",
1965        "MetricExpr": "(cstate_core@c7\\-residency@ / msr@tsc@) * 100",
1966        "MetricGroup": "Power",
1967        "MetricName": "C7_Core_Residency"
1968    },
1969    {
1970        "BriefDescription": "C2 residency percent per package",
1971        "MetricExpr": "(cstate_pkg@c2\\-residency@ / msr@tsc@) * 100",
1972        "MetricGroup": "Power",
1973        "MetricName": "C2_Pkg_Residency"
1974    },
1975    {
1976        "BriefDescription": "C3 residency percent per package",
1977        "MetricExpr": "(cstate_pkg@c3\\-residency@ / msr@tsc@) * 100",
1978        "MetricGroup": "Power",
1979        "MetricName": "C3_Pkg_Residency"
1980    },
1981    {
1982        "BriefDescription": "C6 residency percent per package",
1983        "MetricExpr": "(cstate_pkg@c6\\-residency@ / msr@tsc@) * 100",
1984        "MetricGroup": "Power",
1985        "MetricName": "C6_Pkg_Residency"
1986    },
1987    {
1988        "BriefDescription": "C7 residency percent per package",
1989        "MetricExpr": "(cstate_pkg@c7\\-residency@ / msr@tsc@) * 100",
1990        "MetricGroup": "Power",
1991        "MetricName": "C7_Pkg_Residency"
1992    },
1993    {
1994        "BriefDescription": "C8 residency percent per package",
1995        "MetricExpr": "(cstate_pkg@c8\\-residency@ / msr@tsc@) * 100",
1996        "MetricGroup": "Power",
1997        "MetricName": "C8_Pkg_Residency"
1998    },
1999    {
2000        "BriefDescription": "C9 residency percent per package",
2001        "MetricExpr": "(cstate_pkg@c9\\-residency@ / msr@tsc@) * 100",
2002        "MetricGroup": "Power",
2003        "MetricName": "C9_Pkg_Residency"
2004    },
2005    {
2006        "BriefDescription": "C10 residency percent per package",
2007        "MetricExpr": "(cstate_pkg@c10\\-residency@ / msr@tsc@) * 100",
2008        "MetricGroup": "Power",
2009        "MetricName": "C10_Pkg_Residency"
2010    }
2011]
2012