linux_dsm_epyc7002/tools/lib/bpf
Jakub Kicinski 17387dd5ac tools: bpf: don't complain about no kernel version for networking code
BPF programs only have to specify the target kernel version for
tracing related hooks, in networking world that requirement does
not really apply.  Loosen the checks in libbpf to reflect that.

bpf_object__open() users will continue to see the error for backward
compatibility (and because prog_type is not available there).

Error code for NULL file name is changed from ENOENT to EINVAL,
as it seems more appropriate, hopefully, that's an OK change.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-05-11 01:40:52 +02:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
bpf.c bpf: btf: Tests for BPF_OBJ_GET_INFO_BY_FD and BPF_BTF_GET_FD_BY_ID 2018-05-09 17:25:14 +02:00
bpf.h bpf: btf: Tests for BPF_OBJ_GET_INFO_BY_FD and BPF_BTF_GET_FD_BY_ID 2018-05-09 17:25:14 +02:00
btf.c bpf: btf: Clean up btf.h in uapi 2018-04-23 11:32:01 +02:00
btf.h bpf: btf: Add BTF support to libbpf 2018-04-19 21:46:25 +02:00
Build bpf: btf: Add BTF support to libbpf 2018-04-19 21:46:25 +02:00
libbpf.c tools: bpf: don't complain about no kernel version for networking code 2018-05-11 01:40:52 +02:00
libbpf.h tools: bpf: improve comments in libbpf.h 2018-05-11 01:40:52 +02:00
Makefile tools: bpf: move the event reading loop to libbpf 2018-05-11 01:40:52 +02:00
nlattr.c libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00
nlattr.h libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00