Skip to content

Commit f268088

Browse files
John Garryacmel
authored andcommitted
perf test: Skip failing sigtrap test for arm+aarch64
Skip the Sigtrap test for arm + arm64, same as was done for s390 in commit a840974 ("perf test: Test 73 Sig_trap fails on s390"). For this, reuse BP_SIGNAL_IS_SUPPORTED - meaning that the arch can use BP to generate signals - instead of BP_ACCOUNT_IS_SUPPORTED, which is appropriate. As described by Will at [0], in the test we get stuck in a loop of handling the HW breakpoint exception and never making progress. GDB handles this by stepping over the faulting instruction, but with perf the kernel is expected to handle the step (which it doesn't for arm). Dmitry made an attempt to get this work, also mentioned in the same thread as [0], which was appreciated. But the best thing to do is skip the test for now. [0] https://lore.kernel.org/linux-perf-users/20220118124343.GC98966@leoy-ThinkPad-X240s/T/#m13b06c39d2a5100d340f009435df6f4d8ee57b5a Fixes: 5504f67 ("perf test sigtrap: Add basic stress test for sigtrap handling") Signed-off-by: John Garry <john.garry@huawei.com> Tested-by: Leo Yan <leo.yan@linaro.org> Acked-by: Marco Elver <elver@google.com> Cc: Dmitriy Vyukov <dvyukov@google.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Marco Elver <elver@google.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Richter <tmricht@linux.ibm.com> Cc: Will Deacon <will@kernel.org> Cc: linux-arm-kernel@lists.infradead.org Cc: linux@armlinux.org.uk Link: https://lore.kernel.org/r/1645176813-202756-1-git-send-email-john.garry@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 9195e5e commit f268088

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

‎tools/perf/tests/sigtrap.c‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,6 @@
2222
#include "tests.h"
2323
#include "../perf-sys.h"
2424

25-
/*
26-
* PowerPC and S390 do not support creation of instruction breakpoints using the
27-
* perf_event interface.
28-
*
29-
* Just disable the test for these architectures until these issues are
30-
* resolved.
31-
*/
32-
#if defined(__powerpc__) || defined(__s390x__)
33-
#define BP_ACCOUNT_IS_SUPPORTED 0
34-
#else
35-
#define BP_ACCOUNT_IS_SUPPORTED 1
36-
#endif
37-
3825
#define NUM_THREADS 5
3926

4027
static struct {
@@ -135,7 +122,7 @@ static int test__sigtrap(struct test_suite *test __maybe_unused, int subtest __m
135122
char sbuf[STRERR_BUFSIZE];
136123
int i, fd, ret = TEST_FAIL;
137124

138-
if (!BP_ACCOUNT_IS_SUPPORTED) {
125+
if (!BP_SIGNAL_IS_SUPPORTED) {
139126
pr_debug("Test not supported on this architecture");
140127
return TEST_SKIP;
141128
}

0 commit comments

Comments
 (0)