selftests/bpf: Add tests for dynptr convenience helpers
authorJoanne Koong <joannelkoong@gmail.com>
Thu, 20 Apr 2023 07:14:14 +0000 (00:14 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 27 Apr 2023 08:40:52 +0000 (10:40 +0200)
commitd911ba7ceafd29606df4018bbd87a1642f9e6d88
treee04de098eec6ea62f16a0d76ad564acedf89c05a
parent361f129f3cc185af6667aca0bec0be9a020a8abc
selftests/bpf: Add tests for dynptr convenience helpers

Add various tests for the added dynptr convenience helpers.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230420071414.570108-6-joannelkoong@gmail.com
tools/testing/selftests/bpf/bpf_kfuncs.h
tools/testing/selftests/bpf/prog_tests/dynptr.c
tools/testing/selftests/bpf/progs/dynptr_fail.c
tools/testing/selftests/bpf/progs/dynptr_success.c