perf test: Add perf_event_attr tests for the arm_spe event
authorGerman Gomez <german.gomez@arm.com>
Wed, 26 Jan 2022 16:07:09 +0000 (16:07 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 5 Mar 2022 19:00:12 +0000 (16:00 -0300)
commitd57159efde1fbc35ed128f6be37d06ad88f660a7
treefb8d97e9a7ad72a9a235f3054a7bbfdaca0100c3
parent2c0fd42c1c8b6463c76979be40fa6fe3da49d975
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>
tools/perf/tests/attr/README
tools/perf/tests/attr/base-record-spe [new file with mode: 0644]
tools/perf/tests/attr/test-record-spe-period [new file with mode: 0644]
tools/perf/tests/attr/test-record-spe-period-term [new file with mode: 0644]