summaryrefslogtreecommitdiffstats
path: root/samples/bpf/tracex7_kern.c
Commit message (Collapse)AuthorAgeFilesLines
* samples/bpf: add a test for bpf_override_returnJosef Bacik2017-12-121-0/+16
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> Acked-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>