-
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 test: Add perf_event_attr tests for the arm_spe event
Adds a couple of perf_event_attr tests for the fix introduced in [1]. The tests check that the correct sample_period value is set in the struct perf_event_attr of the arm_spe events. [1]: https://lore.kernel.org/all/20220118144054.2541-1-german.gomez@arm.com/ Reviewed-by: James Clark <james.clark@arm.com> Signed-off-by: German Gomez <german.gomez@arm.com> Tested-by: Leo Yan <leo.yan@linaro.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: John Fastabend <john.fastabend@gmail.com> Cc: KP Singh <kpsingh@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Martin KaFai Lau <kafai@fb.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Song Liu <songliubraving@fb.com> Cc: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/r/20220126160710.32983-1-german.gomez@arm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
- Loading branch information
German Gomez
authored and
Arnaldo Carvalho de Melo
committed
Mar 5, 2022
1 parent
2c0fd42
commit d57159e
Showing
4 changed files
with
66 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
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,40 @@ | ||
[event] | ||
fd=* | ||
group_fd=-1 | ||
flags=* | ||
cpu=* | ||
type=* | ||
size=* | ||
config=* | ||
sample_period=* | ||
sample_type=* | ||
read_format=* | ||
disabled=* | ||
inherit=* | ||
pinned=* | ||
exclusive=* | ||
exclude_user=* | ||
exclude_kernel=* | ||
exclude_hv=* | ||
exclude_idle=* | ||
mmap=* | ||
comm=* | ||
freq=* | ||
inherit_stat=* | ||
enable_on_exec=* | ||
task=* | ||
watermark=* | ||
precise_ip=* | ||
mmap_data=* | ||
sample_id_all=* | ||
exclude_host=* | ||
exclude_guest=* | ||
exclude_callchain_kernel=* | ||
exclude_callchain_user=* | ||
wakeup_events=* | ||
bp_type=* | ||
config1=* | ||
config2=* | ||
branch_sample_type=* | ||
sample_regs_user=* | ||
sample_stack_user=* |
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,12 @@ | ||
[config] | ||
command = record | ||
args = --no-bpf-event -c 2 -e arm_spe_0// -- kill >/dev/null 2>&1 | ||
ret = 1 | ||
arch = aarch64 | ||
|
||
[event-10:base-record-spe] | ||
sample_period=2 | ||
freq=0 | ||
|
||
# dummy event | ||
[event-1:base-record-spe] |
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,12 @@ | ||
[config] | ||
command = record | ||
args = --no-bpf-event -e arm_spe_0/period=3/ -- kill >/dev/null 2>&1 | ||
ret = 1 | ||
arch = aarch64 | ||
|
||
[event-10:base-record-spe] | ||
sample_period=3 | ||
freq=0 | ||
|
||
# dummy event | ||
[event-1:base-record-spe] |