Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf/bpftool: handle libbpf_probe_prog_type errors
Previously [1], we were using bpf_probe_prog_type which returned a bool, but the new libbpf_probe_bpf_prog_type can return a negative error code on failure. This change decides for bpftool to declare a program type is not available on probe failure. [1] https://lore.kernel.org/bpf/20220202225916.3313522-3-andrii@kernel.org/ Signed-off-by: Milan Landaverde <milan@mdaverde.com>
- Loading branch information