Re: [PATCH bpf-next v2 8/9] selftests/bpf: Verify iter link_create logs
From: Leon Hwang
Date: Mon Nov 16 2026 - 02:31:07 EST
On 14/11/26 23:06, Leon Hwang wrote:
[...]
> +
> +static void test_log_invalid_iter_info(void)
As sashiko pointed out, the function name should be
test_log_invalid_iter_info_len.
Please update the function name when applying.
> +{
> + unsigned char info[sizeof(union bpf_iter_link_info) + 1] = {};
> + const char *msg = "Invalid iter_info_len.\n";
[...]
> +out:
> + bpf_iter_bpf_map__destroy(skel);
> +}
> +
> +static void test_log_invalid_iter_info_len(void)
As sashiko pointed out, the function name should be
test_log_invalid_iter_info.
Please update the function name when applying.
Thanks,
Leon
> +{
> + const char *msg = "Invalid iter_info.\n";
> + LIBBPF_OPTS(bpf_link_create_opts, opts,
> + .iter.info = (union bpf_iter_link_info *)1,
> + .iter.len = sizeof(union bpf_iter_link_info),
> + );
> +
> + test_iter_link_create_log(0, &opts, 0, -EFAULT, msg);
> +}
> +
[...]