diff options
| author | Hou Tao <[email protected]> | 2023-12-15 10:07:07 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-12-15 21:54:55 +0000 |
| commit | 00cdcd2900bdb9190d1e75438b39cef74cd99232 (patch) | |
| tree | 7c7977496850c4fa2e9bc22f18599886a98ee1cb /tools/net/ynl/generated/devlink-user.c | |
| parent | selftests/bpf: Add test for abnormal cnt during multi-uprobe attachment (diff) | |
| download | kernel-00cdcd2900bdb9190d1e75438b39cef74cd99232.tar.gz kernel-00cdcd2900bdb9190d1e75438b39cef74cd99232.zip | |
selftests/bpf: Don't use libbpf_get_error() in kprobe_multi_test
Since libbpf v1.0, libbpf doesn't return error code embedded into the
pointer iteself, libbpf_get_error() is deprecated and it is basically
the same as using -errno directly.
So replace the invocations of libbpf_get_error() by -errno in
kprobe_multi_test. For libbpf_get_error() in test_attach_api_fails(),
saving -errno before invoking ASSERT_xx() macros just in case that
errno is overwritten by these macros. However, the invocation of
libbpf_get_error() in get_syms() should be kept intact, because
hashmap__new() still returns a pointer with embedded error code.
Signed-off-by: Hou Tao <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/net/ynl/generated/devlink-user.c')
0 files changed, 0 insertions, 0 deletions
