]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libbpf: Refactor bpf_object__open APIs to use common opts
authorAndrii Nakryiko <andriin@fb.com>
Tue, 15 Oct 2019 18:28:46 +0000 (11:28 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 15 Oct 2019 23:06:05 +0000 (16:06 -0700)
commit291ee02b5e407eb1eb99c9eeaa968ef8a0c16949
tree9b8e63970154c0b3e91fc80fa1f62033d58b453a
parent511bb0085c6fe48353c35cd3d25f4f8720579a6d
libbpf: Refactor bpf_object__open APIs to use common opts

Refactor all the various bpf_object__open variations to ultimately
specify common bpf_object_open_opts struct. This makes it easy to keep
extending this common struct w/ extra parameters without having to
update all the legacy APIs.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191015182849.3922287-3-andriin@fb.com
tools/lib/bpf/libbpf.c