Commit d02d5dc8 authored by John Garry's avatar John Garry Committed by Arnaldo Carvalho de Melo

perf vendor events arm64: Reference common and uarch events for Ampere eMag

Reduce duplication in the JSONs by referencing standard events from
armv8-common-and-microarch.json

In general the "PublicDescription" fields are not modified when somewhat
significantly worded differently than the standard.

Apart from that, description and names for events slightly different to
standard are changed (to standard) for consistency.

Note that names for events 0x34 and 0x35 are non-standard and remain
unchanged. Those events came from the following originally:

  https://github.com/AmpereComputing/ampere-centos-kernel/blob/4c2479c67bbcf35b35224db12a092b33682b181c/Documentation/arm64/eMAG-ARM-CoreImpDefined.pdfSigned-off-by: default avatarJohn Garry <john.garry@huawei.com>
Acked-by: default avatarWill Deacon <will@kernel.org>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Nakamura, Shunsuke/中村 俊介 <nakamura.shun@fujitsu.com>
Cc: mathieu.poirier@linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linuxarm@openeuler.org
Link: https://lore.kernel.org/r/1611835236-34696-4-git-send-email-john.garry@huawei.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent c7766966
...@@ -9,15 +9,11 @@ ...@@ -9,15 +9,11 @@
"ArchStdEvent": "BR_INDIRECT_SPEC" "ArchStdEvent": "BR_INDIRECT_SPEC"
}, },
{ {
"PublicDescription": "Mispredicted or not predicted branch speculatively executed", "ArchStdEvent": "BR_MIS_PRED",
"EventCode": "0x10",
"EventName": "BR_MIS_PRED",
"BriefDescription": "Branch mispredicted" "BriefDescription": "Branch mispredicted"
}, },
{ {
"PublicDescription": "Predictable branch speculatively executed", "ArchStdEvent": "BR_PRED",
"EventCode": "0x12",
"EventName": "BR_PRED",
"BriefDescription": "Predictable branch" "BriefDescription": "Predictable branch"
} }
] ]
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
"ArchStdEvent": "BUS_ACCESS_PERIPH" "ArchStdEvent": "BUS_ACCESS_PERIPH"
}, },
{ {
"PublicDescription": "Bus access", "ArchStdEvent": "BUS_ACCESS",
"EventCode": "0x19",
"EventName": "BUS_ACCESS",
"BriefDescription": "Bus access"
} }
] ]
...@@ -39,70 +39,40 @@ ...@@ -39,70 +39,40 @@
"ArchStdEvent": "L2D_CACHE_INVAL" "ArchStdEvent": "L2D_CACHE_INVAL"
}, },
{ {
"PublicDescription": "Level 1 instruction cache refill", "ArchStdEvent": "L1I_CACHE_REFILL",
"EventCode": "0x01",
"EventName": "L1I_CACHE_REFILL",
"BriefDescription": "L1I cache refill"
}, },
{ {
"PublicDescription": "Level 1 instruction TLB refill", "ArchStdEvent": "L1I_TLB_REFILL",
"EventCode": "0x02",
"EventName": "L1I_TLB_REFILL",
"BriefDescription": "L1I TLB refill"
}, },
{ {
"PublicDescription": "Level 1 data cache refill", "ArchStdEvent": "L1D_CACHE_REFILL",
"EventCode": "0x03",
"EventName": "L1D_CACHE_REFILL",
"BriefDescription": "L1D cache refill"
}, },
{ {
"PublicDescription": "Level 1 data cache access", "ArchStdEvent": "L1D_CACHE",
"EventCode": "0x04",
"EventName": "L1D_CACHE_ACCESS",
"BriefDescription": "L1D cache access"
}, },
{ {
"PublicDescription": "Level 1 data TLB refill", "ArchStdEvent": "L1D_TLB_REFILL",
"EventCode": "0x05",
"EventName": "L1D_TLB_REFILL",
"BriefDescription": "L1D TLB refill"
}, },
{ {
"PublicDescription": "Level 1 instruction cache access", "ArchStdEvent": "L1I_CACHE",
"EventCode": "0x14",
"EventName": "L1I_CACHE_ACCESS",
"BriefDescription": "L1I cache access"
}, },
{ {
"PublicDescription": "Level 2 data cache access", "ArchStdEvent": "L2D_CACHE",
"EventCode": "0x16",
"EventName": "L2D_CACHE_ACCESS",
"BriefDescription": "L2D cache access"
}, },
{ {
"PublicDescription": "Level 2 data refill", "ArchStdEvent": "L2D_CACHE_REFILL",
"EventCode": "0x17",
"EventName": "L2D_CACHE_REFILL",
"BriefDescription": "L2D cache refill"
}, },
{ {
"PublicDescription": "Level 2 data cache, Write-Back", "ArchStdEvent": "L2D_CACHE_WB",
"EventCode": "0x18",
"EventName": "L2D_CACHE_WB",
"BriefDescription": "L2D cache Write-Back"
}, },
{ {
"PublicDescription": "Level 1 data TLB access. This event counts any load or store operation which accesses the data L1 TLB", "PublicDescription": "This event counts any load or store operation which accesses the data L1 TLB",
"EventCode": "0x25", "ArchStdEvent": "L1D_TLB",
"EventName": "L1D_TLB_ACCESS",
"BriefDescription": "L1D TLB access" "BriefDescription": "L1D TLB access"
}, },
{ {
"PublicDescription": "Level 1 instruction TLB access. This event counts any instruction fetch which accesses the instruction L1 TLB", "PublicDescription": "This event counts any instruction fetch which accesses the instruction L1 TLB",
"EventCode": "0x26", "ArchStdEvent": "L1I_TLB",
"EventName": "L1I_TLB_ACCESS",
"BriefDescription": "L1I TLB access"
}, },
{ {
"PublicDescription": "Level 2 access to data TLB that caused a page table walk. This event counts on any data access which causes L2D_TLB_REFILL to count", "PublicDescription": "Level 2 access to data TLB that caused a page table walk. This event counts on any data access which causes L2D_TLB_REFILL to count",
......
[ [
{ {
"PublicDescription": "The number of core clock cycles", "PublicDescription": "The number of core clock cycles",
"EventCode": "0x11", "ArchStdEvent": "CPU_CYCLES",
"EventName": "CPU_CYCLES",
"BriefDescription": "Clock cycles"
}, },
{ {
"PublicDescription": "FSU clocking gated off cycle", "PublicDescription": "FSU clocking gated off cycle",
......
...@@ -36,15 +36,9 @@ ...@@ -36,15 +36,9 @@
"ArchStdEvent": "EXC_TRAP_FIQ" "ArchStdEvent": "EXC_TRAP_FIQ"
}, },
{ {
"PublicDescription": "Exception taken", "ArchStdEvent": "EXC_TAKEN",
"EventCode": "0x09",
"EventName": "EXC_TAKEN",
"BriefDescription": "Exception taken"
}, },
{ {
"PublicDescription": "Instruction architecturally executed, condition check pass, exception return", "ArchStdEvent": "EXC_RETURN",
"EventCode": "0x0a",
"EventName": "EXC_RETURN",
"BriefDescription": "Exception return"
} }
] ]
...@@ -40,45 +40,29 @@ ...@@ -40,45 +40,29 @@
}, },
{ {
"PublicDescription": "Instruction architecturally executed, software increment", "PublicDescription": "Instruction architecturally executed, software increment",
"EventCode": "0x00", "ArchStdEvent": "SW_INCR",
"EventName": "SW_INCR",
"BriefDescription": "Software increment" "BriefDescription": "Software increment"
}, },
{ {
"PublicDescription": "Instruction architecturally executed", "ArchStdEvent": "INST_RETIRED",
"EventCode": "0x08",
"EventName": "INST_RETIRED",
"BriefDescription": "Instruction retired"
}, },
{ {
"PublicDescription": "Instruction architecturally executed, condition code check pass, write to CONTEXTIDR", "ArchStdEvent": "CID_WRITE_RETIRED",
"EventCode": "0x0b",
"EventName": "CID_WRITE_RETIRED",
"BriefDescription": "Write to CONTEXTIDR" "BriefDescription": "Write to CONTEXTIDR"
}, },
{ {
"PublicDescription": "Operation speculatively executed", "ArchStdEvent": "INST_SPEC",
"EventCode": "0x1b",
"EventName": "INST_SPEC",
"BriefDescription": "Speculatively executed"
}, },
{ {
"PublicDescription": "Instruction architecturally executed (condition check pass), write to TTBR", "ArchStdEvent": "TTBR_WRITE_RETIRED",
"EventCode": "0x1c",
"EventName": "TTBR_WRITE_RETIRED",
"BriefDescription": "Instruction executed, TTBR write"
}, },
{ {
"PublicDescription": "Instruction architecturally executed, branch. This event counts all branches, taken or not. This excludes exception entries, debug entries and CCFAIL branches", "PublicDescription": "This event counts all branches, taken or not. This excludes exception entries, debug entries and CCFAIL branches",
"EventCode": "0x21", "ArchStdEvent": "BR_RETIRED",
"EventName": "BR_RETIRED",
"BriefDescription": "Branch retired"
}, },
{ {
"PublicDescription": "Instruction architecturally executed, mispredicted branch. This event counts any branch counted by BR_RETIRED which is not correctly predicted and causes a pipeline flush", "PublicDescription": "This event counts any branch counted by BR_RETIRED which is not correctly predicted and causes a pipeline flush",
"EventCode": "0x22", "ArchStdEvent": "BR_MIS_PRED_RETIRED",
"EventName": "BR_MISPRED_RETIRED",
"BriefDescription": "Mispredicted branch retired"
}, },
{ {
"PublicDescription": "Operation speculatively executed, NOP", "PublicDescription": "Operation speculatively executed, NOP",
......
...@@ -15,15 +15,10 @@ ...@@ -15,15 +15,10 @@
"ArchStdEvent": "UNALIGNED_LDST_SPEC" "ArchStdEvent": "UNALIGNED_LDST_SPEC"
}, },
{ {
"PublicDescription": "Data memory access", "ArchStdEvent": "MEM_ACCESS",
"EventCode": "0x13",
"EventName": "MEM_ACCESS",
"BriefDescription": "Memory access"
}, },
{ {
"PublicDescription": "Local memory error. This event counts any correctable or uncorrectable memory error (ECC or parity) in the protected core RAMs", "PublicDescription": "This event counts any correctable or uncorrectable memory error (ECC or parity) in the protected core RAMs",
"EventCode": "0x1a", "ArchStdEvent": "MEMORY_ERROR",
"EventName": "MEM_ERROR",
"BriefDescription": "Memory error"
} }
] ]
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