selftests/bpf: Assert link info uprobe_multi count & path_size if unset
authorTyrone Wu <wudevelops@gmail.com>
Fri, 11 Oct 2024 00:08:03 +0000 (00:08 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 11 Oct 2024 02:11:28 +0000 (19:11 -0700)
commitb836cbdf3b81a4a22b3452186efa2e5105a77e10
treee8ab78470cdacf7e5c4607faf6d3bc761413c0ed
parentad6b5b6ea9b764018249285a4fe0a2226bef4caa
selftests/bpf: Assert link info uprobe_multi count & path_size if unset

Add assertions in `bpf_link_info.uprobe_multi` test to verify that
`count` and `path_size` fields are correctly populated when the fields
are unset.

This tests a previous bug where the `path_size` field was not populated
when `path` and `path_size` were unset.

Signed-off-by: Tyrone Wu <wudevelops@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241011000803.681190-2-wudevelops@gmail.com
tools/testing/selftests/bpf/prog_tests/fill_link_info.c