test child forked, pid 45193Both Arm and Arm64 platforms cannot support signal handler with
breakpoint, please see the details in [1].
So I think we need
something like below:
static int test__sigtrap(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
{
...
if (!BP_SIGNAL_IS_SUPPORTED) {
pr_debug("Test not supported on this architecture");
return TEST_SKIP;
}
...
}
Since we have defined BP_SIGNAL_IS_SUPPORTED, I think we can reuse it at
here.
[1]https://lore.kernel.org/lkml/157169993406.29376.12473771029179755767.tip-bot2@tip-bot2/
And fails on my x86 broadwell machine:It is a bit suprise for the failure on x86, as I remembered x86 platform
john@localhost:~/kernel-dev2/tools/perf> sudo ./perf test -v 73
73: Sigtrap :
--- start ---
test child forked, pid 22255
FAILED sys_perf_event_open(): Argument list too long
test child finished with -1
---- end ----
Sigtrap: FAILED!
john@localhost:~/kernel-dev2/tools/perf>
can support signal handler with hw breakpoint. And from the error
"Argument list too long", it should be a different issue from other
archs.