-
- Downloads
samples/bpf: add a test for bpf_override_return
This adds a basic test for bpf_override_return to verify it works. We override the main function for mounting a btrfs fs so it'll return -ENOMEM and then make sure that trying to mount a btrfs fs will fail. Acked-by:Alexei Starovoitov <ast@kernel.org> Signed-off-by:
Josef Bacik <jbacik@fb.com> Acked-by:
Daniel Borkmann <daniel@iogearbox.net> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- samples/bpf/Makefile 4 additions, 0 deletionssamples/bpf/Makefile
- samples/bpf/test_override_return.sh 15 additions, 0 deletionssamples/bpf/test_override_return.sh
- samples/bpf/tracex7_kern.c 16 additions, 0 deletionssamples/bpf/tracex7_kern.c
- samples/bpf/tracex7_user.c 28 additions, 0 deletionssamples/bpf/tracex7_user.c
- tools/include/uapi/linux/bpf.h 6 additions, 1 deletiontools/include/uapi/linux/bpf.h
- tools/testing/selftests/bpf/bpf_helpers.h 2 additions, 1 deletiontools/testing/selftests/bpf/bpf_helpers.h
Loading
Please register or sign in to comment