diff options
author | Mykyta Yatsenko <yatsenko@meta.com> | 2024-03-25 18:22:10 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-03-29 04:30:53 +0300 |
commit | 786bf0e7e2ec90b349a7bab6e97947982ab31f2c (patch) | |
tree | 06035090d80edace56555e7454bc414989f07903 /tools/certs | |
parent | 59b418c7063d30e0a3e1f592d47df096db83185c (diff) | |
download | linux-786bf0e7e2ec90b349a7bab6e97947982ab31f2c.tar.xz |
bpf: improve error message for unsupported helper
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@meta.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/r/20240325152210.377548-1-yatsenko@meta.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/certs')
0 files changed, 0 insertions, 0 deletions