Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | samples: bpf: include bpf/bpf.h instead of local libbpf.h | Jakub Kicinski | 2018-05-14 | 1 | -1/+1 |
| | | | | | | | | | | | There are two files in the tree called libbpf.h which is becoming problematic. Most samples don't actually need the local libbpf.h they simply include it to get to bpf/bpf.h. Include bpf/bpf.h directly instead. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> | ||||
* | samples/bpf: add a test for bpf_override_return | Josef Bacik | 2017-12-12 | 1 | -0/+28 |
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> |