]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Output message if no helpers found in feature probing
authorMilan Landaverde <milan@mdaverde.com>
Wed, 4 May 2022 16:13:32 +0000 (12:13 -0400)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 10 May 2022 00:16:05 +0000 (17:16 -0700)
commitab8e2e431d3a881dd088ed796ef7796258bcf414
treefcfdc05cea7c63cb457c771f560047bfa8371197
parent9a3654ef863c5d1e0ef5a3760714e1a501c46d93
bpftool: Output message if no helpers found in feature probing

Currently in libbpf, we have hardcoded program types that are not
supported for helper function probing (e.g. tracing, ext, lsm).
Due to this (and other legitimate failures), bpftool feature probe returns
empty for those program type helper functions.

Instead of implying to the user that there are no helper functions
available for a program type, we output a message to the user explaining
that helper function probing failed for that program type.

Signed-off-by: Milan Landaverde <milan@mdaverde.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220504161356.3497972-3-milan@mdaverde.com
tools/bpf/bpftool/feature.c