108ed77e4SKim Phillips[
208ed77e4SKim Phillips  {
308ed77e4SKim Phillips    "MetricName": "branch_misprediction_ratio",
408ed77e4SKim Phillips    "BriefDescription": "Execution-Time Branch Misprediction Ratio (Non-Speculative)",
508ed77e4SKim Phillips    "MetricExpr": "d_ratio(ex_ret_brn_misp, ex_ret_brn)",
608ed77e4SKim Phillips    "MetricGroup": "branch_prediction",
708ed77e4SKim Phillips    "ScaleUnit": "100%"
808ed77e4SKim Phillips  },
908ed77e4SKim Phillips  {
1008ed77e4SKim Phillips    "EventName": "all_dc_accesses",
1108ed77e4SKim Phillips    "EventCode": "0x29",
1208ed77e4SKim Phillips    "BriefDescription": "All L1 Data Cache Accesses",
13*e5f2b4e1SSmita Koralahalli    "UMask": "0x07"
1408ed77e4SKim Phillips  },
1508ed77e4SKim Phillips  {
1608ed77e4SKim Phillips    "MetricName": "all_l2_cache_accesses",
1708ed77e4SKim Phillips    "BriefDescription": "All L2 Cache Accesses",
1808ed77e4SKim Phillips    "MetricExpr": "l2_request_g1.all_no_prefetch + l2_pf_hit_l2 + l2_pf_miss_l2_hit_l3 + l2_pf_miss_l2_l3",
1908ed77e4SKim Phillips    "MetricGroup": "l2_cache"
2008ed77e4SKim Phillips  },
2108ed77e4SKim Phillips  {
2208ed77e4SKim Phillips    "EventName": "l2_cache_accesses_from_ic_misses",
2308ed77e4SKim Phillips    "EventCode": "0x60",
2408ed77e4SKim Phillips    "BriefDescription": "L2 Cache Accesses from L1 Instruction Cache Misses (including prefetch)",
2508ed77e4SKim Phillips    "UMask": "0x10"
2608ed77e4SKim Phillips  },
2708ed77e4SKim Phillips  {
2808ed77e4SKim Phillips    "EventName": "l2_cache_accesses_from_dc_misses",
2908ed77e4SKim Phillips    "EventCode": "0x60",
3008ed77e4SKim Phillips    "BriefDescription": "L2 Cache Accesses from L1 Data Cache Misses (including prefetch)",
3108ed77e4SKim Phillips    "UMask": "0xc8"
3208ed77e4SKim Phillips  },
3308ed77e4SKim Phillips  {
3408ed77e4SKim Phillips    "MetricName": "l2_cache_accesses_from_l2_hwpf",
3508ed77e4SKim Phillips    "BriefDescription": "L2 Cache Accesses from L2 HWPF",
3608ed77e4SKim Phillips    "MetricExpr": "l2_pf_hit_l2 + l2_pf_miss_l2_hit_l3 + l2_pf_miss_l2_l3",
3708ed77e4SKim Phillips    "MetricGroup": "l2_cache"
3808ed77e4SKim Phillips  },
3908ed77e4SKim Phillips  {
4008ed77e4SKim Phillips    "MetricName": "all_l2_cache_misses",
4108ed77e4SKim Phillips    "BriefDescription": "All L2 Cache Misses",
4208ed77e4SKim Phillips    "MetricExpr": "l2_cache_req_stat.ic_dc_miss_in_l2 + l2_pf_miss_l2_hit_l3 + l2_pf_miss_l2_l3",
4308ed77e4SKim Phillips    "MetricGroup": "l2_cache"
4408ed77e4SKim Phillips  },
4508ed77e4SKim Phillips  {
4608ed77e4SKim Phillips    "EventName": "l2_cache_misses_from_ic_miss",
4708ed77e4SKim Phillips    "EventCode": "0x64",
4808ed77e4SKim Phillips    "BriefDescription": "L2 Cache Misses from L1 Instruction Cache Misses",
4908ed77e4SKim Phillips    "UMask": "0x01"
5008ed77e4SKim Phillips  },
5108ed77e4SKim Phillips  {
5208ed77e4SKim Phillips    "EventName": "l2_cache_misses_from_dc_misses",
5308ed77e4SKim Phillips    "EventCode": "0x64",
5408ed77e4SKim Phillips    "BriefDescription": "L2 Cache Misses from L1 Data Cache Misses",
5508ed77e4SKim Phillips    "UMask": "0x08"
5608ed77e4SKim Phillips  },
5708ed77e4SKim Phillips  {
5808ed77e4SKim Phillips    "MetricName": "l2_cache_misses_from_l2_hwpf",
5908ed77e4SKim Phillips    "BriefDescription": "L2 Cache Misses from L2 HWPF",
6008ed77e4SKim Phillips    "MetricExpr": "l2_pf_miss_l2_hit_l3 + l2_pf_miss_l2_l3",
6108ed77e4SKim Phillips    "MetricGroup": "l2_cache"
6208ed77e4SKim Phillips  },
6308ed77e4SKim Phillips  {
6408ed77e4SKim Phillips    "MetricName": "all_l2_cache_hits",
6508ed77e4SKim Phillips    "BriefDescription": "All L2 Cache Hits",
6608ed77e4SKim Phillips    "MetricExpr": "l2_cache_req_stat.ic_dc_hit_in_l2 + l2_pf_hit_l2",
6708ed77e4SKim Phillips    "MetricGroup": "l2_cache"
6808ed77e4SKim Phillips  },
6908ed77e4SKim Phillips  {
7008ed77e4SKim Phillips    "EventName": "l2_cache_hits_from_ic_misses",
7108ed77e4SKim Phillips    "EventCode": "0x64",
7208ed77e4SKim Phillips    "BriefDescription": "L2 Cache Hits from L1 Instruction Cache Misses",
7308ed77e4SKim Phillips    "UMask": "0x06"
7408ed77e4SKim Phillips  },
7508ed77e4SKim Phillips  {
7608ed77e4SKim Phillips    "EventName": "l2_cache_hits_from_dc_misses",
7708ed77e4SKim Phillips    "EventCode": "0x64",
7808ed77e4SKim Phillips    "BriefDescription": "L2 Cache Hits from L1 Data Cache Misses",
7908ed77e4SKim Phillips    "UMask": "0x70"
8008ed77e4SKim Phillips  },
8108ed77e4SKim Phillips  {
8286c2bc3dSSmita Koralahalli    "EventName": "l2_cache_hits_from_l2_hwpf",
8386c2bc3dSSmita Koralahalli    "EventCode": "0x70",
8408ed77e4SKim Phillips    "BriefDescription": "L2 Cache Hits from L2 HWPF",
8586c2bc3dSSmita Koralahalli    "UMask": "0xff"
8608ed77e4SKim Phillips  },
8708ed77e4SKim Phillips  {
8808ed77e4SKim Phillips    "EventName": "l3_accesses",
8908ed77e4SKim Phillips    "EventCode": "0x04",
9008ed77e4SKim Phillips    "BriefDescription": "L3 Accesses",
9108ed77e4SKim Phillips    "UMask": "0xff",
9208ed77e4SKim Phillips    "Unit": "L3PMC"
9308ed77e4SKim Phillips  },
9408ed77e4SKim Phillips  {
9508ed77e4SKim Phillips    "EventName": "l3_misses",
9608ed77e4SKim Phillips    "EventCode": "0x04",
9708ed77e4SKim Phillips    "BriefDescription": "L3 Misses (includes Chg2X)",
9808ed77e4SKim Phillips    "UMask": "0x01",
9908ed77e4SKim Phillips    "Unit": "L3PMC"
10008ed77e4SKim Phillips  },
10108ed77e4SKim Phillips  {
10208ed77e4SKim Phillips    "MetricName": "l3_read_miss_latency",
10308ed77e4SKim Phillips    "BriefDescription": "Average L3 Read Miss Latency (in core clocks)",
10408ed77e4SKim Phillips    "MetricExpr": "(xi_sys_fill_latency * 16) / xi_ccx_sdp_req1.all_l3_miss_req_typs",
10508ed77e4SKim Phillips    "MetricGroup": "l3_cache",
10608ed77e4SKim Phillips    "ScaleUnit": "1core clocks"
10708ed77e4SKim Phillips  },
10808ed77e4SKim Phillips  {
10908ed77e4SKim Phillips    "MetricName": "ic_fetch_miss_ratio",
11008ed77e4SKim Phillips    "BriefDescription": "L1 Instruction Cache (32B) Fetch Miss Ratio",
11108ed77e4SKim Phillips    "MetricExpr": "d_ratio(l2_cache_req_stat.ic_access_in_l2, bp_l1_tlb_fetch_hit + bp_l1_tlb_miss_l2_hit + bp_l1_tlb_miss_l2_tlb_miss)",
11208ed77e4SKim Phillips    "MetricGroup": "l2_cache",
11308ed77e4SKim Phillips    "ScaleUnit": "100%"
11408ed77e4SKim Phillips  },
11508ed77e4SKim Phillips  {
11608ed77e4SKim Phillips    "MetricName": "l1_itlb_misses",
11708ed77e4SKim Phillips    "BriefDescription": "L1 ITLB Misses",
11808ed77e4SKim Phillips    "MetricExpr": "bp_l1_tlb_miss_l2_hit + bp_l1_tlb_miss_l2_tlb_miss",
11908ed77e4SKim Phillips    "MetricGroup": "tlb"
12008ed77e4SKim Phillips  },
12108ed77e4SKim Phillips  {
12208ed77e4SKim Phillips    "EventName": "l2_itlb_misses",
12308ed77e4SKim Phillips    "EventCode": "0x85",
12408ed77e4SKim Phillips    "BriefDescription": "L2 ITLB Misses & Instruction page walks",
12508ed77e4SKim Phillips    "UMask": "0x07"
12608ed77e4SKim Phillips  },
12708ed77e4SKim Phillips  {
12808ed77e4SKim Phillips    "EventName": "l1_dtlb_misses",
12908ed77e4SKim Phillips    "EventCode": "0x45",
13008ed77e4SKim Phillips    "BriefDescription": "L1 DTLB Misses",
13108ed77e4SKim Phillips    "UMask": "0xff"
13208ed77e4SKim Phillips  },
13308ed77e4SKim Phillips  {
13408ed77e4SKim Phillips    "EventName": "l2_dtlb_misses",
13508ed77e4SKim Phillips    "EventCode": "0x45",
13608ed77e4SKim Phillips    "BriefDescription": "L2 DTLB Misses & Data page walks",
13708ed77e4SKim Phillips    "UMask": "0xf0"
13808ed77e4SKim Phillips  },
13908ed77e4SKim Phillips  {
14008ed77e4SKim Phillips    "EventName": "all_tlbs_flushed",
14108ed77e4SKim Phillips    "EventCode": "0x78",
14208ed77e4SKim Phillips    "BriefDescription": "All TLBs Flushed",
14308ed77e4SKim Phillips    "UMask": "0xdf"
14408ed77e4SKim Phillips  },
14508ed77e4SKim Phillips  {
14608ed77e4SKim Phillips    "EventName": "uops_dispatched",
14708ed77e4SKim Phillips    "EventCode": "0xaa",
14808ed77e4SKim Phillips    "BriefDescription": "Micro-ops Dispatched",
14908ed77e4SKim Phillips    "UMask": "0x03"
15008ed77e4SKim Phillips  },
15108ed77e4SKim Phillips  {
15208ed77e4SKim Phillips    "EventName": "sse_avx_stalls",
15308ed77e4SKim Phillips    "EventCode": "0x0e",
15408ed77e4SKim Phillips    "BriefDescription": "Mixed SSE/AVX Stalls",
15508ed77e4SKim Phillips    "UMask": "0x0e"
15608ed77e4SKim Phillips  },
15708ed77e4SKim Phillips  {
15808ed77e4SKim Phillips    "EventName": "uops_retired",
15908ed77e4SKim Phillips    "EventCode": "0xc1",
16008ed77e4SKim Phillips    "BriefDescription": "Micro-ops Retired"
16108ed77e4SKim Phillips  },
16208ed77e4SKim Phillips  {
16308ed77e4SKim Phillips    "MetricName": "all_remote_links_outbound",
16408ed77e4SKim Phillips    "BriefDescription": "Approximate: Outbound data bytes for all Remote Links for a node (die)",
16508ed77e4SKim Phillips    "MetricExpr": "remote_outbound_data_controller_0 + remote_outbound_data_controller_1 + remote_outbound_data_controller_2 + remote_outbound_data_controller_3",
16608ed77e4SKim Phillips    "MetricGroup": "data_fabric",
16708ed77e4SKim Phillips    "PerPkg": "1",
16808ed77e4SKim Phillips    "ScaleUnit": "3e-5MiB"
16908ed77e4SKim Phillips  },
17008ed77e4SKim Phillips  {
17108ed77e4SKim Phillips    "MetricName": "nps1_die_to_dram",
17208ed77e4SKim Phillips    "BriefDescription": "Approximate: Combined DRAM B/bytes of all channels on a NPS1 node (die) (may need --metric-no-group)",
17308ed77e4SKim Phillips    "MetricExpr": "dram_channel_data_controller_0 + dram_channel_data_controller_1 + dram_channel_data_controller_2 + dram_channel_data_controller_3 + dram_channel_data_controller_4 + dram_channel_data_controller_5 + dram_channel_data_controller_6 + dram_channel_data_controller_7",
17408ed77e4SKim Phillips    "MetricGroup": "data_fabric",
17508ed77e4SKim Phillips    "PerPkg": "1",
17608ed77e4SKim Phillips    "ScaleUnit": "6.1e-5MiB"
17708ed77e4SKim Phillips  }
17808ed77e4SKim Phillips]
179