linux_dsm_epyc7002/tools/lib/bpf
Nikita V. Shirokov 47ae7e3d0b libbpf: make bpf_object__open default to UNSPEC
currently by default libbpf's bpf_object__open requires
bpf's program to specify  version in a code because of two things:
1) default prog type is set to KPROBE
2) KPROBE requires (in kernel/bpf/syscall.c) version to be specified

in this patch i'm changing default prog type to UNSPEC and also changing
requirments for version's section to be present in object file.
now it would reflect what we have today in kernel
(only KPROBE prog type requires for version to be explicitly set).

v1 -> v2:
 - RFC tag has been dropped

Signed-off-by: Nikita V. Shirokov <tehnerd@tehnerd.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-11-23 22:27:05 +01:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
bpf.c bpf: libbpf: remove map name retry from bpf_create_map_xattr 2018-11-21 23:26:04 +01:00
bpf.h libbpf: make sure bpf headers are c++ include-able 2018-11-21 23:15:41 +01:00
btf.c tools/bpf: refactor to implement btf_get_from_id() in lib/bpf 2018-11-20 10:54:39 -08:00
btf.h libbpf: make sure bpf headers are c++ include-able 2018-11-21 23:15:41 +01:00
Build Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2018-09-25 20:29:38 -07:00
libbpf_errno.c libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
libbpf.c libbpf: make bpf_object__open default to UNSPEC 2018-11-23 22:27:05 +01:00
libbpf.h bpf: adding support for map in map in libbpf 2018-11-21 23:33:21 +01:00
Makefile libbpf: make sure bpf headers are c++ include-able 2018-11-21 23:15:41 +01:00
netlink.c libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
nlattr.c libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
nlattr.h libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
str_error.c libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
str_error.h libbpf: relicense libbpf as LGPL-2.1 OR BSD-2-Clause 2018-10-08 10:09:48 +02:00
test_libbpf.cpp libbpf: make sure bpf headers are c++ include-able 2018-11-21 23:15:41 +01:00