diff options
| author | Andrii Nakryiko <[email protected]> | 2021-05-25 03:59:35 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-05-26 00:32:35 +0000 |
| commit | 9c6c0449deb41dbe3a66ab9adfd08020bba6c43d (patch) | |
| tree | 5fd75a8338c75b97f64195d2bf77fccbd8819ce8 /tools/lib/bpf/bpf_helpers.h | |
| parent | libbpf: Streamline error reporting for high-level APIs (diff) | |
| download | kernel-9c6c0449deb41dbe3a66ab9adfd08020bba6c43d.tar.gz kernel-9c6c0449deb41dbe3a66ab9adfd08020bba6c43d.zip | |
bpftool: Set errno on skeleton failures and propagate errors
Follow libbpf's error handling conventions and pass through errors and errno
properly. Skeleton code always returned NULL on errors (not ERR_PTR(err)), so
there are no backwards compatibility concerns. But now we also set errno
properly, so it's possible to distinguish different reasons for failure, if
necessary.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions
