linux_dsm_epyc7002/tools/lib/bpf
Joe Stringer e28ff1a838 tools lib bpf: Add libbpf_get_error()
This function will turn a libbpf pointer into a standard error code (or
0 if the pointer is valid).

This also allows removal of the dependency on linux/err.h in the public
header file, which causes problems in userspace programs built against
libbpf.

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Wang Nan <wangnan0@huawei.com>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: netdev@vger.kernel.org
Link: http://lkml.kernel.org/r/20170123011128.26534-5-joe@ovn.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-01-26 11:42:58 -03:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
bpf.c tools lib bpf: Add bpf_prog_{attach,detach} 2016-12-20 12:00:39 -03:00
bpf.h tools lib bpf: Add bpf_prog_{attach,detach} 2016-12-20 12:00:39 -03:00
Build bpf tools: Add bpf.c/h for common bpf operations 2015-08-07 10:16:58 -03:00
libbpf.c tools lib bpf: Add libbpf_get_error() 2017-01-26 11:42:58 -03:00
libbpf.h tools lib bpf: Add libbpf_get_error() 2017-01-26 11:42:58 -03:00
Makefile make use of make variable CURDIR instead of calling pwd 2016-12-11 12:12:56 +01:00