Skip to content

Commit a484e64

Browse files
James-A-Clarkacmel
authored andcommitted
perf vendor events arm64: Update V1 events using Arm telemetry repo
The new data [1] includes descriptions that may have product specific details and new groupings that will be consistent with other products. The following command was used to generate the jsons: $ telemetry-solution/tools/perf_json_generator/generate.py \ linux/tools/perf/ --telemetry-files \ telemetry-solution/data/pmu/cpu/neoverse/neoverse-v1.json [1]: https://gitlab.arm.com/telemetry-solution/telemetry-solution/-/blob/main/data/pmu/cpu/neoverse/neoverse-v1.json Signed-off-by: James Clark <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Garry <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mike Leach <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Nick Forrington <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent a1ebf77 commit a484e64

20 files changed

+502
-341
lines changed

tools/perf/pmu-events/arch/arm64/arm/neoverse-v1/branch.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
[
22
{
3-
"ArchStdEvent": "CPU_CYCLES"
3+
"ArchStdEvent": "BUS_ACCESS",
4+
"PublicDescription": "Counts memory transactions issued by the CPU to the external bus, including snoop requests and snoop responses. Each beat of data is counted individually."
45
},
56
{
6-
"ArchStdEvent": "BUS_ACCESS"
7+
"ArchStdEvent": "BUS_CYCLES",
8+
"PublicDescription": "Counts bus cycles in the CPU. Bus cycles represent a clock cycle in which a transaction could be sent or received on the interface from the CPU to the external bus. Since that interface is driven at the same clock speed as the CPU, this event is a duplicate of CPU_CYCLES."
79
},
810
{
9-
"ArchStdEvent": "BUS_CYCLES"
11+
"ArchStdEvent": "BUS_ACCESS_RD",
12+
"PublicDescription": "Counts memory read transactions seen on the external bus. Each beat of data is counted individually."
1013
},
1114
{
12-
"ArchStdEvent": "BUS_ACCESS_RD"
13-
},
14-
{
15-
"ArchStdEvent": "BUS_ACCESS_WR"
16-
},
17-
{
18-
"ArchStdEvent": "CNT_CYCLES"
15+
"ArchStdEvent": "BUS_ACCESS_WR",
16+
"PublicDescription": "Counts memory write transactions seen on the external bus. Each beat of data is counted individually."
1917
}
2018
]

tools/perf/pmu-events/arch/arm64/arm/neoverse-v1/cache.json

Lines changed: 0 additions & 155 deletions
This file was deleted.
Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,62 @@
11
[
22
{
3-
"ArchStdEvent": "EXC_TAKEN"
3+
"ArchStdEvent": "EXC_TAKEN",
4+
"PublicDescription": "Counts any taken architecturally visible exceptions such as IRQ, FIQ, SError, and other synchronous exceptions. Exceptions are counted whether or not they are taken locally."
45
},
56
{
6-
"ArchStdEvent": "MEMORY_ERROR"
7+
"ArchStdEvent": "EXC_RETURN",
8+
"PublicDescription": "Counts any architecturally executed exception return instructions. Eg: AArch64: ERET"
79
},
810
{
9-
"ArchStdEvent": "EXC_UNDEF"
11+
"ArchStdEvent": "EXC_UNDEF",
12+
"PublicDescription": "Counts the number of synchronous exceptions which are taken locally that are due to attempting to execute an instruction that is UNDEFINED. Attempting to execute instruction bit patterns that have not been allocated. Attempting to execute instructions when they are disabled. Attempting to execute instructions at an inappropriate Exception level. Attempting to execute an instruction when the value of PSTATE.IL is 1."
1013
},
1114
{
12-
"ArchStdEvent": "EXC_SVC"
15+
"ArchStdEvent": "EXC_SVC",
16+
"PublicDescription": "Counts SVC exceptions taken locally."
1317
},
1418
{
15-
"ArchStdEvent": "EXC_PABORT"
19+
"ArchStdEvent": "EXC_PABORT",
20+
"PublicDescription": "Counts synchronous exceptions that are taken locally and caused by Instruction Aborts."
1621
},
1722
{
18-
"ArchStdEvent": "EXC_DABORT"
23+
"ArchStdEvent": "EXC_DABORT",
24+
"PublicDescription": "Counts exceptions that are taken locally and are caused by data aborts or SErrors. Conditions that could cause those exceptions are attempting to read or write memory where the MMU generates a fault, attempting to read or write memory with a misaligned address, interrupts from the nSEI inputs and internally generated SErrors."
1925
},
2026
{
21-
"ArchStdEvent": "EXC_IRQ"
27+
"ArchStdEvent": "EXC_IRQ",
28+
"PublicDescription": "Counts IRQ exceptions including the virtual IRQs that are taken locally."
2229
},
2330
{
24-
"ArchStdEvent": "EXC_FIQ"
31+
"ArchStdEvent": "EXC_FIQ",
32+
"PublicDescription": "Counts FIQ exceptions including the virtual FIQs that are taken locally."
2533
},
2634
{
27-
"ArchStdEvent": "EXC_SMC"
35+
"ArchStdEvent": "EXC_SMC",
36+
"PublicDescription": "Counts SMC exceptions take to EL3."
2837
},
2938
{
30-
"ArchStdEvent": "EXC_HVC"
39+
"ArchStdEvent": "EXC_HVC",
40+
"PublicDescription": "Counts HVC exceptions taken to EL2."
3141
},
3242
{
33-
"ArchStdEvent": "EXC_TRAP_PABORT"
43+
"ArchStdEvent": "EXC_TRAP_PABORT",
44+
"PublicDescription": "Counts exceptions which are traps not taken locally and are caused by Instruction Aborts. For example, attempting to execute an instruction with a misaligned PC."
3445
},
3546
{
36-
"ArchStdEvent": "EXC_TRAP_DABORT"
47+
"ArchStdEvent": "EXC_TRAP_DABORT",
48+
"PublicDescription": "Counts exceptions which are traps not taken locally and are caused by Data Aborts or SError interrupts. Conditions that could cause those exceptions are:\n\n1. Attempting to read or write memory where the MMU generates a fault,\n2. Attempting to read or write memory with a misaligned address,\n3. Interrupts from the SEI input.\n4. internally generated SErrors."
3749
},
3850
{
39-
"ArchStdEvent": "EXC_TRAP_OTHER"
51+
"ArchStdEvent": "EXC_TRAP_OTHER",
52+
"PublicDescription": "Counts the number of synchronous trap exceptions which are not taken locally and are not SVC, SMC, HVC, data aborts, Instruction Aborts, or interrupts."
4053
},
4154
{
42-
"ArchStdEvent": "EXC_TRAP_IRQ"
55+
"ArchStdEvent": "EXC_TRAP_IRQ",
56+
"PublicDescription": "Counts IRQ exceptions including the virtual IRQs that are not taken locally."
4357
},
4458
{
45-
"ArchStdEvent": "EXC_TRAP_FIQ"
59+
"ArchStdEvent": "EXC_TRAP_FIQ",
60+
"PublicDescription": "Counts FIQs which are not taken locally but taken from EL0, EL1,\n or EL2 to EL3 (which would be the normal behavior for FIQs when not executing\n in EL3)."
4661
}
4762
]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"ArchStdEvent": "FP_SCALE_OPS_SPEC",
4+
"PublicDescription": "Counts speculatively executed scalable single precision floating point operations."
5+
},
6+
{
7+
"ArchStdEvent": "FP_FIXED_OPS_SPEC",
8+
"PublicDescription": "Counts speculatively executed non-scalable single precision floating point operations."
9+
}
10+
]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"ArchStdEvent": "CPU_CYCLES",
4+
"PublicDescription": "Counts CPU clock cycles (not timer cycles). The clock measured by this event is defined as the physical clock driving the CPU logic."
5+
},
6+
{
7+
"ArchStdEvent": "CNT_CYCLES",
8+
"PublicDescription": "Counts constant frequency cycles"
9+
}
10+
]

0 commit comments

Comments
 (0)