commit | f1eead9e3ceef67b98be4b55ed1bfcfa4497b7db | [log] [tgz] |
---|---|---|
author | Andrii Nakryiko <andriin@fb.com> | Sun Oct 20 20:38:57 2019 -0700 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Mon Oct 21 14:49:12 2019 +0200 |
tree | a07798031fd8a292c208edb054e46d24d44c6bad | |
parent | bc3f2956f2b2241aac339d0a1ab7e3a0b8fcc886 [diff] |
libbpf: Add bpf_program__get_{type, expected_attach_type) APIs There are bpf_program__set_type() and bpf_program__set_expected_attach_type(), but no corresponding getters, which seems rather incomplete. Fix this. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20191021033902.3856966-3-andriin@fb.com