All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next] Enable CONFIG_FPROBE for self tests
@ 2022-05-11 17:22 Daniel Müller
  2022-05-11 17:27 ` David Vernet
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daniel Müller @ 2022-05-11 17:22 UTC (permalink / raw)
  To: bpf, ast, andrii, daniel, kernel-team; +Cc: Daniel Müller

Some of the BPF selftests are failing when running with a rather bare
bones configuration based on tools/testing/selftests/bpf/config.
Specifically, we see a bunch of failures due to errno 95:

  > test_attach_api:PASS:fentry_raw_skel_load 0 nsec
  > libbpf: prog 'test_kprobe_manual': failed to attach: Operation not supported
  > test_attach_api:FAIL:bpf_program__attach_kprobe_multi_opts unexpected error: -95
  > 79 /6     kprobe_multi_test/attach_api_syms:FAIL

The cause of these is that CONFIG_FPROBE is missing. With this change we
add this configuration value to the BPF selftests config.

Signed-off-by: Daniel Müller <deso@posteo.net>
---
 tools/testing/selftests/bpf/config | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
index 763db6..08c6e5a 100644
--- a/tools/testing/selftests/bpf/config
+++ b/tools/testing/selftests/bpf/config
@@ -53,3 +53,4 @@ CONFIG_NF_DEFRAG_IPV4=y
 CONFIG_NF_DEFRAG_IPV6=y
 CONFIG_NF_CONNTRACK=y
 CONFIG_USERFAULTFD=y
+CONFIG_FPROBE=y
-- 
2.30.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH bpf-next] Enable CONFIG_FPROBE for self tests
  2022-05-11 17:22 [PATCH bpf-next] Enable CONFIG_FPROBE for self tests Daniel Müller
@ 2022-05-11 17:27 ` David Vernet
  2022-05-11 19:05 ` Alexei Starovoitov
  2022-05-11 19:10 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: David Vernet @ 2022-05-11 17:27 UTC (permalink / raw)
  To: Daniel Müller; +Cc: bpf, ast, andrii, daniel, kernel-team

On Wed, May 11, 2022 at 05:22:49PM +0000, Daniel Müller wrote:
> Some of the BPF selftests are failing when running with a rather bare
> bones configuration based on tools/testing/selftests/bpf/config.
> Specifically, we see a bunch of failures due to errno 95:
> 
>   > test_attach_api:PASS:fentry_raw_skel_load 0 nsec
>   > libbpf: prog 'test_kprobe_manual': failed to attach: Operation not supported
>   > test_attach_api:FAIL:bpf_program__attach_kprobe_multi_opts unexpected error: -95
>   > 79 /6     kprobe_multi_test/attach_api_syms:FAIL
> 
> The cause of these is that CONFIG_FPROBE is missing. With this change we
> add this configuration value to the BPF selftests config.
> 
> Signed-off-by: Daniel Müller <deso@posteo.net>
> ---
>  tools/testing/selftests/bpf/config | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
> index 763db6..08c6e5a 100644
> --- a/tools/testing/selftests/bpf/config
> +++ b/tools/testing/selftests/bpf/config
> @@ -53,3 +53,4 @@ CONFIG_NF_DEFRAG_IPV4=y
>  CONFIG_NF_DEFRAG_IPV6=y
>  CONFIG_NF_CONNTRACK=y
>  CONFIG_USERFAULTFD=y
> +CONFIG_FPROBE=y
> -- 
> 2.30.2
> 

Looks good, thanks Daniel.

Acked-by: David Vernet <void@manifault.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH bpf-next] Enable CONFIG_FPROBE for self tests
  2022-05-11 17:22 [PATCH bpf-next] Enable CONFIG_FPROBE for self tests Daniel Müller
  2022-05-11 17:27 ` David Vernet
@ 2022-05-11 19:05 ` Alexei Starovoitov
  2022-05-11 19:10 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: Alexei Starovoitov @ 2022-05-11 19:05 UTC (permalink / raw)
  To: Daniel Müller
  Cc: bpf, Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann, Kernel Team

On Wed, May 11, 2022 at 10:23 AM Daniel Müller <deso@posteo.net> wrote:
>
> Some of the BPF selftests are failing when running with a rather bare
> bones configuration based on tools/testing/selftests/bpf/config.
> Specifically, we see a bunch of failures due to errno 95:
>
>   > test_attach_api:PASS:fentry_raw_skel_load 0 nsec
>   > libbpf: prog 'test_kprobe_manual': failed to attach: Operation not supported
>   > test_attach_api:FAIL:bpf_program__attach_kprobe_multi_opts unexpected error: -95
>   > 79 /6     kprobe_multi_test/attach_api_syms:FAIL
>
> The cause of these is that CONFIG_FPROBE is missing. With this change we
> add this configuration value to the BPF selftests config.
>
> Signed-off-by: Daniel Müller <deso@posteo.net>

Please use 'selftests/bpf: ' prefix in the patch subj
in the future.
I've fixed it up while applying this time.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH bpf-next] Enable CONFIG_FPROBE for self tests
  2022-05-11 17:22 [PATCH bpf-next] Enable CONFIG_FPROBE for self tests Daniel Müller
  2022-05-11 17:27 ` David Vernet
  2022-05-11 19:05 ` Alexei Starovoitov
@ 2022-05-11 19:10 ` patchwork-bot+netdevbpf
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-05-11 19:10 UTC (permalink / raw)
  To: =?utf-8?q?Daniel_M=C3=BCller_=3Cdeso=40posteo=2Enet=3E?=
  Cc: bpf, ast, andrii, daniel, kernel-team

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Wed, 11 May 2022 17:22:49 +0000 you wrote:
> Some of the BPF selftests are failing when running with a rather bare
> bones configuration based on tools/testing/selftests/bpf/config.
> Specifically, we see a bunch of failures due to errno 95:
> 
>   > test_attach_api:PASS:fentry_raw_skel_load 0 nsec
>   > libbpf: prog 'test_kprobe_manual': failed to attach: Operation not supported
>   > test_attach_api:FAIL:bpf_program__attach_kprobe_multi_opts unexpected error: -95
>   > 79 /6     kprobe_multi_test/attach_api_syms:FAIL
> 
> [...]

Here is the summary with links:
  - [bpf-next] Enable CONFIG_FPROBE for self tests
    https://git.kernel.org/bpf/bpf-next/c/998e1869de1b

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] 4+ messages in thread

end of thread, other threads:[~2022-05-11 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 17:22 [PATCH bpf-next] Enable CONFIG_FPROBE for self tests Daniel Müller
2022-05-11 17:27 ` David Vernet
2022-05-11 19:05 ` Alexei Starovoitov
2022-05-11 19:10 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.