On 25/03/2024 23:19, Andrii Nakryiko wrote:
On Mon, Mar 25, 2024 at 8:22 AM Mykyta Yatsenko
<mykyta.yatsenko5@xxxxxxxxx> wrote:
From: Mykyta Yatsenko <yatsenko@xxxxxxxx>
BPF verifier emits "unknown func" message when given BPF program type
does not support BPF helper. This message may be confusing for users, as
important context that helper is unknown only to current program type is
not provided.
This patch changes message to "program of this type cannot use helper "
and aligns dependent code in libbpf and tests. Any suggestions on
improving/changing this message are welcome.
Signed-off-by: Mykyta Yatsenko <yatsenko@xxxxxxxx>
---
"unknown func bpf_somehelper" is one of the common confusions users
run into (and I had to explain multiple times), so this more
meaningful message is definitely an improvement, thanks!
Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx>
Same here; and thanks for including the bpftool update!
Acked-by: Quentin Monnet <qmo@xxxxxxxxxx>