]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
selftests/bpf: Update error message in negative linked_list test
authorYonghong Song <yonghong.song@linux.dev>
Sun, 27 Aug 2023 15:27:54 +0000 (08:27 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 8 Sep 2023 15:42:17 +0000 (08:42 -0700)
Some error messages are changed due to the addition of
percpu kptr support. Fix linked_list test with changed
error messages.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20230827152754.1997769-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/linked_list.c

index 18cf7b17463d9f23bda1c339c20d92dc2433e6e3..db3bf6bbe01af95608641ea6493203afae8d3439 100644 (file)
@@ -65,8 +65,8 @@ static struct {
        { "map_compat_raw_tp", "tracing progs cannot use bpf_{list_head,rb_root} yet" },
        { "map_compat_raw_tp_w", "tracing progs cannot use bpf_{list_head,rb_root} yet" },
        { "obj_type_id_oor", "local type ID argument must be in range [0, U32_MAX]" },
-       { "obj_new_no_composite", "bpf_obj_new type ID argument must be of a struct" },
-       { "obj_new_no_struct", "bpf_obj_new type ID argument must be of a struct" },
+       { "obj_new_no_composite", "bpf_obj_new/bpf_percpu_obj_new type ID argument must be of a struct" },
+       { "obj_new_no_struct", "bpf_obj_new/bpf_percpu_obj_new type ID argument must be of a struct" },
        { "obj_drop_non_zero_off", "R1 must have zero offset when passed to release func" },
        { "new_null_ret", "R0 invalid mem access 'ptr_or_null_'" },
        { "obj_new_acq", "Unreleased reference id=" },