-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf vendor events intel: Add core event list for Elkhartlake
Add JSON core events for Elkhartlake to perf. Based on JSON list v1.02: https://download.01.org/perfmon/EHL/ Signed-off-by: Jin Yao <yao.jin@linux.intel.com> Reviewed-by: Andi Kleen <ak@linux.intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20210802053440.21035-2-yao.jin@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
- Loading branch information
Jin Yao
authored and
Arnaldo Carvalho de Melo
committed
Aug 2, 2021
1 parent
b9efd75
commit aa1bd89
Showing
8 changed files
with
1,405 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,226 @@ | ||
[ | ||
{ | ||
"BriefDescription": "Counts the number of first level data cacheline (dirty) evictions caused by misses, stores, and prefetches.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x51", | ||
"EventName": "DL1.DIRTY_EVICTION", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the number of first level data cacheline (dirty) evictions caused by misses, stores, and prefetches. Does not count evictions or dirty writebacks caused by snoops. Does not count a replacement unless a (dirty) line was written back.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x1" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of cacheable memory requests that miss in the LLC. Counts on a per core basis.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x2e", | ||
"EventName": "LONGEST_LAT_CACHE.MISS", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the number of cacheable memory requests that miss in the Last Level Cache (LLC). If the platform has an L3 cache, the LLC is the L3 cache, otherwise it is the L2 cache. Counts on a per core basis.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x41" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of cacheable memory requests that access the LLC. Counts on a per core basis.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x2e", | ||
"EventName": "LONGEST_LAT_CACHE.REFERENCE", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the number of cacheable memory requests that access the Last Level Cache (LLC). Requests include demand loads, reads for ownership (RFO), instruction fetches and L1 HW prefetches. If the platform has an L3 cache, the LLC is the L3 cache, otherwise it is the L2 cache. Counts on a per core basis.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x4f" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of cycles the core is stalled due to an instruction cache or TLB miss which hit in DRAM or MMIO (Non-DRAM).", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x34", | ||
"EventName": "MEM_BOUND_STALLS.IFETCH_DRAM_HIT", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the number of cycles a core is stalled due to an instruction cache or translation lookaside buffer (TLB) access which hit in DRAM or MMIO (non-DRAM).", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x20" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of cycles the core is stalled due to an instruction cache or TLB miss which hit in the L2 cache.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x34", | ||
"EventName": "MEM_BOUND_STALLS.IFETCH_L2_HIT", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the number of cycles a core is stalled due to an instruction cache or Translation Lookaside Buffer (TLB) access which hit in the L2 cache.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x8" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of cycles the core is stalled due to an instruction cache or TLB miss which hit in the LLC or other core with HITE/F/M.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x34", | ||
"EventName": "MEM_BOUND_STALLS.IFETCH_LLC_HIT", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the number of cycles a core is stalled due to an instruction cache or Translation Lookaside Buffer (TLB) access which hit in the Last Level Cache (LLC) or other core with HITE/F/M.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x10" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of cycles the core is stalled due to a demand load miss which hit in DRAM or MMIO (Non-DRAM).", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x34", | ||
"EventName": "MEM_BOUND_STALLS.LOAD_DRAM_HIT", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x4" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of cycles the core is stalled due to a demand load which hit in the L2 cache.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x34", | ||
"EventName": "MEM_BOUND_STALLS.LOAD_L2_HIT", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the number of cycles a core is stalled due to a demand load which hit in the L2 cache.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x1" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of cycles the core is stalled due to a demand load which hit in the LLC or other core with HITE/F/M.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x34", | ||
"EventName": "MEM_BOUND_STALLS.LOAD_LLC_HIT", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "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.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x2" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of cycles a core is stalled due to a store buffer being full.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x34", | ||
"EventName": "MEM_BOUND_STALLS.STORE_BUFFER_FULL", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x40" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of load ops retired that hit in DRAM.", | ||
"Counter": "0,1,2,3", | ||
"Data_LA": "1", | ||
"EventCode": "0xd1", | ||
"EventName": "MEM_LOAD_UOPS_RETIRED.DRAM_HIT", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x80" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of load uops retired that hit in the L1 data cache.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"Data_LA": "1", | ||
"EventCode": "0xd1", | ||
"EventName": "MEM_LOAD_UOPS_RETIRED.L1_HIT", | ||
"PEBS": "1", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x1" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of load uops retired that miss in the L1 data cache.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"Data_LA": "1", | ||
"EventCode": "0xd1", | ||
"EventName": "MEM_LOAD_UOPS_RETIRED.L1_MISS", | ||
"PEBS": "1", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x8" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of load uops retired that hit in the L2 cache.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"Data_LA": "1", | ||
"EventCode": "0xd1", | ||
"EventName": "MEM_LOAD_UOPS_RETIRED.L2_HIT", | ||
"PEBS": "1", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x2" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of load uops retired that miss in the L2 cache.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"Data_LA": "1", | ||
"EventCode": "0xd1", | ||
"EventName": "MEM_LOAD_UOPS_RETIRED.L2_MISS", | ||
"PEBS": "1", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x10" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of load uops retired that hit in the L3 cache.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0xd1", | ||
"EventName": "MEM_LOAD_UOPS_RETIRED.L3_HIT", | ||
"PEBS": "1", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x4" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of load uops retired.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"Data_LA": "1", | ||
"EventCode": "0xd0", | ||
"EventName": "MEM_UOPS_RETIRED.ALL_LOADS", | ||
"PEBS": "1", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the total number of load uops retired.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x81" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of store uops retired.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"Data_LA": "1", | ||
"EventCode": "0xd0", | ||
"EventName": "MEM_UOPS_RETIRED.ALL_STORES", | ||
"PEBS": "1", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the total number of store uops retired.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x82" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of issue slots every cycle that were not delivered by the frontend due to instruction cache misses.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x71", | ||
"EventName": "TOPDOWN_FE_BOUND.ICACHE", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "1000003", | ||
"UMask": "0x20" | ||
} | ||
] |
24 changes: 24 additions & 0 deletions
24
tools/perf/pmu-events/arch/x86/elkhartlake/floating-point.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
{ | ||
"BriefDescription": "Counts the number of cycles the floating point divider is busy. Does not imply a stall waiting for the divider.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0xcd", | ||
"EventName": "CYCLES_DIV_BUSY.FPDIV", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x2" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of floating point divide uops retired (x87 and SSE, including x87 sqrt).", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0xc2", | ||
"EventName": "UOPS_RETIRED.FPDIV", | ||
"PEBS": "1", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "2000003", | ||
"UMask": "0x8" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
[ | ||
{ | ||
"BriefDescription": "Counts the total number of BACLEARS.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0xe6", | ||
"EventName": "BACLEARS.ANY", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the total number of BACLEARS, which occur 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.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x1" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of BACLEARS due to a conditional jump.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0xe6", | ||
"EventName": "BACLEARS.COND", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x10" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of BACLEARS due to an indirect branch.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0xe6", | ||
"EventName": "BACLEARS.INDIRECT", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x2" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of BACLEARS due to a return branch.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0xe6", | ||
"EventName": "BACLEARS.RETURN", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x8" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of BACLEARS due to a non-indirect, non-conditional jump.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0xe6", | ||
"EventName": "BACLEARS.UNCOND", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x4" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of times a decode restriction reduces the decode throughput due to wrong instruction length prediction.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0xe9", | ||
"EventName": "DECODE_RESTRICTION.PREDECODE_WRONG", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x1" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of requests to the instruction cache for one or more bytes of a cache line.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x80", | ||
"EventName": "ICACHE.ACCESSES", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the total number of requests to the instruction cache. The event only counts new cache line accesses, so that multiple back to back fetches to the exact same cache line or byte chunk count as one. Specifically, the event counts when accesses from sequential code crosses the cache line boundary, or when a branch target is moved to a new line or to a non-sequential byte chunk of the same line.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x3" | ||
}, | ||
{ | ||
"BriefDescription": "Counts the number of instruction cache misses.", | ||
"CollectPEBSRecord": "2", | ||
"Counter": "0,1,2,3", | ||
"EventCode": "0x80", | ||
"EventName": "ICACHE.MISSES", | ||
"PDIR_COUNTER": "na", | ||
"PEBScounters": "0,1,2,3", | ||
"PublicDescription": "Counts the number of missed requests to the instruction cache. The event only counts new cache line accesses, so that multiple back to back fetches to the exact same cache line and byte chunk count as one. Specifically, the event counts when accesses from sequential code crosses the cache line boundary, or when a branch target is moved to a new line or to a non-sequential byte chunk of the same line.", | ||
"SampleAfterValue": "200003", | ||
"UMask": "0x2" | ||
} | ||
] |
Oops, something went wrong.