Skip to content

Commit 3b9a8c8

Browse files
timothy-hayesacmel
authored andcommitted
perf test: Add perf_event_attr test for Arm SPE
Adds a perf_event_attr test for Arm SPE in which the presence of physical addresses are checked when SPE unit is run with pa_enable=1. Reviewed-by: Leo Yan <[email protected]> Signed-off-by: Timothy Hayes <[email protected]> Tested-by: Leo Yan <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Fastabend <[email protected]> Cc: John Garry <[email protected]> Cc: KP Singh <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Martin KaFai Lau <[email protected]> Cc: Mathieu Poirier <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Song Liu <[email protected]> Cc: Will Deacon <[email protected]> Cc: Yonghong Song <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 7599b70 commit 3b9a8c8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tools/perf/tests/attr/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Following tests are defined (with perf commands):
6060
perf record -R kill (test-record-raw)
6161
perf record -c 2 -e arm_spe_0// -- kill (test-record-spe-period)
6262
perf record -e arm_spe_0/period=3/ -- kill (test-record-spe-period-term)
63+
perf record -e arm_spe_0/pa_enable=1/ -- kill (test-record-spe-physical-address)
6364
perf stat -e cycles kill (test-stat-basic)
6465
perf stat kill (test-stat-default)
6566
perf stat -d kill (test-stat-detailed-1)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[config]
2+
command = record
3+
args = --no-bpf-event -e arm_spe_0/pa_enable=1/ -- kill >/dev/null 2>&1
4+
ret = 1
5+
arch = aarch64
6+
7+
[event-10:base-record-spe]
8+
# 622727 is the decimal of IP|TID|TIME|CPU|IDENTIFIER|DATA_SRC|PHYS_ADDR
9+
sample_type=622727
10+
11+
# dummy event
12+
[event-1:base-record-spe]

0 commit comments

Comments
 (0)