]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test: Fix perf record test for precise_max
authorThomas Richter <tmricht@linux.ibm.com>
Fri, 31 Jan 2025 10:27:55 +0000 (11:27 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 4 Feb 2025 19:34:25 +0000 (11:34 -0800)
commit859199431d768091ff60351319a1c2886c18b592
treea04d16c0a75763095cc37881fa4baaa71b93799d
parent23e0a63c6dd3f69cb7ee18411e5f6857cca55b30
perf test: Fix perf record test for precise_max

On s390 the event instructions can not be used for recording.
This event is only supported by perf stat.

Test that each event cycles and instructions supports sampling.
If the event can not be sampled, skip it.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Suggested-by: James Clark <james.clark@linaro.org>
Reviewed-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250131102756.4185235-2-tmricht@linux.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/record.sh