Commit 3c9c3157 authored by Ian Rogers's avatar Ian Rogers Committed by Arnaldo Carvalho de Melo

perf vendor events: Update Intel elkhartlake

Update to v1.03. Elkhartlake metrics aren't in TMA but basic metrics are
left unchanged.

Use script at:
https://github.com/intel/event-converter-for-linux-perf/blob/master/download_and_gen.py

to download and generate the latest events and metrics. Manually copy
the elkhartlake files into perf and update mapfile.csv.

Tested on a non-elkhartlake with 'perf test':
 10: PMU events                                                      :
 10.1: PMU event table sanity                                        : Ok
 10.2: PMU event map aliases                                         : Ok
 10.3: Parsing of PMU event table metrics                            : Ok
 10.4: Parsing of PMU event table metrics with fake PMUs             : Ok
Signed-off-by: default avatarIan Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Caleb Biggers <caleb.biggers@intel.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.garry@huawei.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Kshipra Bopardikar <kshipra.bopardikar@intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Perry Taylor <perry.taylor@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Link: http://lore.kernel.org/lkml/20220727220832.2865794-8-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent f9d45862
[ [
{ {
"BriefDescription": "Counts the number of cycles the floating point divider is busy. Does not imply a stall waiting for the divider.", "BriefDescription": "Counts the number of cycles the floating point divider is busy.",
"CollectPEBSRecord": "2", "CollectPEBSRecord": "2",
"Counter": "0,1,2,3", "Counter": "0,1,2,3",
"EventCode": "0xcd", "EventCode": "0xcd",
"EventName": "CYCLES_DIV_BUSY.FPDIV", "EventName": "CYCLES_DIV_BUSY.FPDIV",
"PDIR_COUNTER": "na", "PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3", "PEBScounters": "0,1,2,3",
"PublicDescription": "Counts the number of cycles the floating point divider is busy. Does not imply a stall waiting for the divider.",
"SampleAfterValue": "200003", "SampleAfterValue": "200003",
"UMask": "0x2" "UMask": "0x2"
}, },
{
"BriefDescription": "Counts the number of floating point operations retired that required microcode assist.",
"CollectPEBSRecord": "2",
"Counter": "0,1,2,3",
"EventCode": "0xc3",
"EventName": "MACHINE_CLEARS.FP_ASSIST",
"PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3",
"PublicDescription": "Counts the number of floating point operations retired that required microcode assist, which is not a reflection of the number of FP operations, instructions or uops.",
"SampleAfterValue": "20003",
"UMask": "0x4"
},
{ {
"BriefDescription": "Counts the number of floating point divide uops retired (x87 and SSE, including x87 sqrt).", "BriefDescription": "Counts the number of floating point divide uops retired (x87 and SSE, including x87 sqrt).",
"CollectPEBSRecord": "2", "CollectPEBSRecord": "2",
......
[ [
{ {
"BriefDescription": "Counts the total number of BACLEARS.", "BriefDescription": "Counts the total number of BACLEARS due to all branch types including conditional and unconditional jumps, returns, and indirect branches.",
"CollectPEBSRecord": "2", "CollectPEBSRecord": "2",
"Counter": "0,1,2,3", "Counter": "0,1,2,3",
"EventCode": "0xe6", "EventCode": "0xe6",
"EventName": "BACLEARS.ANY", "EventName": "BACLEARS.ANY",
"PDIR_COUNTER": "na", "PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3", "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.", "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", "SampleAfterValue": "200003",
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"Counter": "0,1,2,3", "Counter": "0,1,2,3",
"EventCode": "0xe6", "EventCode": "0xe6",
"EventName": "BACLEARS.COND", "EventName": "BACLEARS.COND",
"PDIR_COUNTER": "na", "PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3", "PEBScounters": "0,1,2,3",
"SampleAfterValue": "200003", "SampleAfterValue": "200003",
"UMask": "0x10" "UMask": "0x10"
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
"Counter": "0,1,2,3", "Counter": "0,1,2,3",
"EventCode": "0xe6", "EventCode": "0xe6",
"EventName": "BACLEARS.INDIRECT", "EventName": "BACLEARS.INDIRECT",
"PDIR_COUNTER": "na", "PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3", "PEBScounters": "0,1,2,3",
"SampleAfterValue": "200003", "SampleAfterValue": "200003",
"UMask": "0x2" "UMask": "0x2"
...@@ -39,18 +39,18 @@ ...@@ -39,18 +39,18 @@
"Counter": "0,1,2,3", "Counter": "0,1,2,3",
"EventCode": "0xe6", "EventCode": "0xe6",
"EventName": "BACLEARS.RETURN", "EventName": "BACLEARS.RETURN",
"PDIR_COUNTER": "na", "PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3", "PEBScounters": "0,1,2,3",
"SampleAfterValue": "200003", "SampleAfterValue": "200003",
"UMask": "0x8" "UMask": "0x8"
}, },
{ {
"BriefDescription": "Counts the number of BACLEARS due to a non-indirect, non-conditional jump.", "BriefDescription": "Counts the number of BACLEARS due to a direct, unconditional jump.",
"CollectPEBSRecord": "2", "CollectPEBSRecord": "2",
"Counter": "0,1,2,3", "Counter": "0,1,2,3",
"EventCode": "0xe6", "EventCode": "0xe6",
"EventName": "BACLEARS.UNCOND", "EventName": "BACLEARS.UNCOND",
"PDIR_COUNTER": "na", "PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3", "PEBScounters": "0,1,2,3",
"SampleAfterValue": "200003", "SampleAfterValue": "200003",
"UMask": "0x4" "UMask": "0x4"
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
"Counter": "0,1,2,3", "Counter": "0,1,2,3",
"EventCode": "0xe9", "EventCode": "0xe9",
"EventName": "DECODE_RESTRICTION.PREDECODE_WRONG", "EventName": "DECODE_RESTRICTION.PREDECODE_WRONG",
"PDIR_COUNTER": "na", "PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3", "PEBScounters": "0,1,2,3",
"SampleAfterValue": "200003", "SampleAfterValue": "200003",
"UMask": "0x1" "UMask": "0x1"
...@@ -72,19 +72,31 @@ ...@@ -72,19 +72,31 @@
"Counter": "0,1,2,3", "Counter": "0,1,2,3",
"EventCode": "0x80", "EventCode": "0x80",
"EventName": "ICACHE.ACCESSES", "EventName": "ICACHE.ACCESSES",
"PDIR_COUNTER": "na", "PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3", "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.", "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", "SampleAfterValue": "200003",
"UMask": "0x3" "UMask": "0x3"
}, },
{
"BriefDescription": "Counts the number of instruction cache hits.",
"CollectPEBSRecord": "2",
"Counter": "0,1,2,3",
"EventCode": "0x80",
"EventName": "ICACHE.HIT",
"PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3",
"PublicDescription": "Counts the number of requests that hit in 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": "0x1"
},
{ {
"BriefDescription": "Counts the number of instruction cache misses.", "BriefDescription": "Counts the number of instruction cache misses.",
"CollectPEBSRecord": "2", "CollectPEBSRecord": "2",
"Counter": "0,1,2,3", "Counter": "0,1,2,3",
"EventCode": "0x80", "EventCode": "0x80",
"EventName": "ICACHE.MISSES", "EventName": "ICACHE.MISSES",
"PDIR_COUNTER": "na", "PDIR_COUNTER": "NA",
"PEBScounters": "0,1,2,3", "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.", "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", "SampleAfterValue": "200003",
......
...@@ -5,6 +5,7 @@ GenuineIntel-6-(3D|47),v26,broadwell,core ...@@ -5,6 +5,7 @@ GenuineIntel-6-(3D|47),v26,broadwell,core
GenuineIntel-6-56,v23,broadwellde,core GenuineIntel-6-56,v23,broadwellde,core
GenuineIntel-6-4F,v19,broadwellx,core GenuineIntel-6-4F,v19,broadwellx,core
GenuineIntel-6-55-[56789ABCDEF],v1.16,cascadelakex,core GenuineIntel-6-55-[56789ABCDEF],v1.16,cascadelakex,core
GenuineIntel-6-96,v1.03,elkhartlake,core
GenuineIntel-6-5C,v8,goldmont,core GenuineIntel-6-5C,v8,goldmont,core
GenuineIntel-6-7A,v1,goldmontplus,core GenuineIntel-6-7A,v1,goldmontplus,core
GenuineIntel-6-3C,v24,haswell,core GenuineIntel-6-3C,v24,haswell,core
...@@ -37,7 +38,6 @@ GenuineIntel-6-A7,v1,icelake,core ...@@ -37,7 +38,6 @@ GenuineIntel-6-A7,v1,icelake,core
GenuineIntel-6-6A,v1,icelakex,core GenuineIntel-6-6A,v1,icelakex,core
GenuineIntel-6-6C,v1,icelakex,core GenuineIntel-6-6C,v1,icelakex,core
GenuineIntel-6-86,v1,snowridgex,core GenuineIntel-6-86,v1,snowridgex,core
GenuineIntel-6-96,v1,elkhartlake,core
GenuineIntel-6-8F,v1,sapphirerapids,core GenuineIntel-6-8F,v1,sapphirerapids,core
AuthenticAMD-23-([12][0-9A-F]|[0-9A-F]),v2,amdzen1,core AuthenticAMD-23-([12][0-9A-F]|[0-9A-F]),v2,amdzen1,core
AuthenticAMD-23-[[:xdigit:]]+,v1,amdzen2,core AuthenticAMD-23-[[:xdigit:]]+,v1,amdzen2,core
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment