diff options
author | Artem Savkov <[email protected]> | 2022-04-21 15:01:04 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-04-21 16:34:55 +0200 |
commit | 920fd5e1771db8b338d4145c2d30d60bf0bcce99 (patch) | |
tree | 020352f368979bfde1c743492799e0da57e8e428 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 9d87e41a6d644d4cee66a72fd1656fac5b7850d1 (diff) |
selftests/bpf: Fix attach tests retcode checks
Switching to libbpf 1.0 API broke test_sock and test_sysctl as they
check for return of bpf_prog_attach to be exactly -1. Switch the check
to '< 0' instead.
Fixes: b858ba8c52b6 ("selftests/bpf: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK")
Signed-off-by: Artem Savkov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Yafang Shao <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions