Ftrace regression tests in tools/testing/selftests/ftrace are picking up regressions in 5.7+ - not sure if these are kernel regressions or bugs in ftrace selftests. I'm seeing the following ftrace test regresions: 5.9-rc2 test failures with ARM64 in a 4GM VM + 8 CPUs Test 12, "Generic dynamic event - selective clear (compatibility)" Test 39, "Kprobe event with comm arguments" Test 40, "Kprobe event string type argument" Test 41, "Kprobe event symbol argument" Test 43, "Kprobe dynamic event with arguments" Test 44, "Kprobes event arguments with types" Test 45, "Kprobe event user-memory access" Test 47, "Kprobe dynamic event with function tracer" Test 48, "Kprobe dynamic event - probing module" Test 51, "Kretprobe dynamic event with arguments" 5.8.3, 5.7.17 test failures: Test 45, "Kprobe event user-memory access" Test 48, "Kprobe dynamic event - probing module" Test 51, "Kretprobe dynamic event with arguments" These tests were working fine when I tested with 5.4.60, 5.5.19, 5.6.19, so these are definite regressions
Urgh, typo. It should be "AMD64", in a QEMU VM.
I suspect I've got some config settings disabled. I wonder if the require config settings are described somewhere for these tests to work correctly?
Created attachment 292173 [details] config-5.8.3-050803-generic
Created attachment 292175 [details] config-5.9.0-rc2+
Is it possible to have a copy of a config where all these tests pass?
Make alldefconfig isn't producing passing results on amd64 for me either.
I confirmed all ftrace related tests passed with `LOCALVERSION=-dev-master sudo make kselftest KCFLAGS="-W" CC="ccache clang-12" -j 12 TARGETS="ftrace"`. Commit is 0457e5153e0e8420134f60921349099e907264ca Merge: fc93310c67ff f3136c4ce7ac Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Fri Feb 4 16:28:11 2022 -0800 .
(In reply to Akira Kawata from comment #7) > I confirmed all ftrace related tests passed with `LOCALVERSION=-dev-master > sudo make kselftest KCFLAGS="-W" CC="ccache clang-12" -j 12 > TARGETS="ftrace"`. Commit is > 0457e5153e0e8420134f60921349099e907264ca Merge: fc93310c67ff f3136c4ce7ac > Author: Linus Torvalds <torvalds@linux-foundation.org> > Date: Fri Feb 4 16:28:11 2022 -0800 > . Does this mean that we can close this bug? -- Steve
Created attachment 300400 [details] ftrace passed config
> Does this mean that we can close this bug? I think so. I attached the succeded config.
Created attachment 300401 [details] Succeeded test log Result of test here. `LOCALVERSION=-dev-master sudo make kselftest KCFLAGS="-W" CC="ccache clang-12" -j 12 TARGETS="ftrace" 2>& | tee kselftest.log
Ooops, I ran kselftest with old kernel. I will upload the correct log soon. Sorry.
Created attachment 300402 [details] Result of `LOCALVERSION=-dev-master sudo make kselftest KCFLAGS="-W" CC="ccache gcc" -j 12 TARGETS="ftrace" 2>&1 | tee kselftest.log` I attached the correct one. All tests passed also.