* [PATCH bpf-next] selftests/bpf: Add missing line break in test_verifier
@ 2024-01-26 1:57 Tiezhu Yang
2024-01-26 19:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Tiezhu Yang @ 2024-01-26 1:57 UTC (permalink / raw)
To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko; +Cc: bpf, linux-kernel
There are no break lines in the test log for test_verifier #106 ~ #111
if jit is disabled, add the missing line break at the end of printf()
to fix it.
Without this patch:
[root@linux bpf]# echo 0 > /proc/sys/net/core/bpf_jit_enable
[root@linux bpf]# ./test_verifier 106
#106/p inline simple bpf_loop call SKIP (requires BPF JIT)Summary: 0 PASSED, 1 SKIPPED, 0 FAILED
With this patch:
[root@linux bpf]# echo 0 > /proc/sys/net/core/bpf_jit_enable
[root@linux bpf]# ./test_verifier 106
#106/p inline simple bpf_loop call SKIP (requires BPF JIT)
Summary: 0 PASSED, 1 SKIPPED, 0 FAILED
Fixes: 0b50478fd877 ("selftests/bpf: Skip callback tests if jit is disabled in test_verifier")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
I am not sure whether the Fixes tag is necessary, you can remove it
if it is useless, thank you.
tools/testing/selftests/bpf/test_verifier.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/bpf/test_verifier.c b/tools/testing/selftests/bpf/test_verifier.c
index e1a1dfe8d7fa..df04bda1c927 100644
--- a/tools/testing/selftests/bpf/test_verifier.c
+++ b/tools/testing/selftests/bpf/test_verifier.c
@@ -1527,7 +1527,7 @@ static void do_test_single(struct bpf_test *test, bool unpriv,
int i, err;
if ((test->flags & F_NEEDS_JIT_ENABLED) && jit_disabled) {
- printf("SKIP (requires BPF JIT)");
+ printf("SKIP (requires BPF JIT)\n");
skips++;
sched_yield();
return;
--
2.42.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH bpf-next] selftests/bpf: Add missing line break in test_verifier
2024-01-26 1:57 [PATCH bpf-next] selftests/bpf: Add missing line break in test_verifier Tiezhu Yang
@ 2024-01-26 19:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-01-26 19:20 UTC (permalink / raw)
To: Tiezhu Yang; +Cc: ast, daniel, andrii, bpf, linux-kernel
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Fri, 26 Jan 2024 09:57:36 +0800 you wrote:
> There are no break lines in the test log for test_verifier #106 ~ #111
> if jit is disabled, add the missing line break at the end of printf()
> to fix it.
>
> Without this patch:
>
> [root@linux bpf]# echo 0 > /proc/sys/net/core/bpf_jit_enable
> [root@linux bpf]# ./test_verifier 106
> #106/p inline simple bpf_loop call SKIP (requires BPF JIT)Summary: 0 PASSED, 1 SKIPPED, 0 FAILED
>
> [...]
Here is the summary with links:
- [bpf-next] selftests/bpf: Add missing line break in test_verifier
https://git.kernel.org/bpf/bpf-next/c/fa7178b0f12e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-26 19:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 1:57 [PATCH bpf-next] selftests/bpf: Add missing line break in test_verifier Tiezhu Yang
2024-01-26 19:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox