summaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorJoe Stringer2017-01-23 02:11:25 +0100
committerArnaldo Carvalho de Melo2017-01-26 15:42:58 +0100
commite28ff1a8382ee02b10cf11cf3b48541dc3d14a58 (patch)
tree7b2e4fbf719f7c62f506e2d19f5aca86597d0337 /tools/perf/util
parenttools lib bpf: Add set/is helpers for all prog types (diff)
downloadkernel-qcow2-linux-e28ff1a8382ee02b10cf11cf3b48541dc3d14a58.tar.gz
kernel-qcow2-linux-e28ff1a8382ee02b10cf11cf3b48541dc3d14a58.tar.xz
kernel-qcow2-linux-e28ff1a8382ee02b10cf11cf3b48541dc3d14a58.zip
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>
Diffstat (limited to 'tools/perf/util')
0 files changed, 0 insertions, 0 deletions