Home
last modified time | relevance | path

Searched refs:ASSERT_OK (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dmap_init.c31 if (!ASSERT_OK(err, "bpf_map_update_elem")) in map_populate()
49 if (!ASSERT_OK(err, "bpf_map__set_type")) in setup()
53 if (!ASSERT_OK(err, "bpf_map__set_max_entries")) in setup()
57 if (!ASSERT_OK(err, "skel_load")) in setup()
65 if (!ASSERT_OK(err, "map_populate")) in setup()
89 if (!ASSERT_OK(test_map_init__attach(skel), "skel_attach")) in prog_run_insert_elem()
144 if (!ASSERT_OK(err, "bpf_map_delete_elem")) in test_pcpu_map_init()
149 if (!ASSERT_OK(err, "prog_run_insert_elem")) in test_pcpu_map_init()
154 if (!ASSERT_OK(err, "bpf_map_lookup_elem")) in test_pcpu_map_init()
186 if (!ASSERT_OK(err, "prog_run_insert_elem")) in test_pcpu_lru_map_init()
[all …]
Dbtf_dump.c151 if (!ASSERT_OK(libbpf_get_error(d), "btf_dump__new")) in test_btf_dump_incremental()
164 ASSERT_OK(err, "enum_val_ok"); in test_btf_dump_incremental()
172 ASSERT_OK(err, "field_ok"); in test_btf_dump_incremental()
176 ASSERT_OK(err, "dump_type_ok"); in test_btf_dump_incremental()
209 ASSERT_OK(err, "field_ok"); in test_btf_dump_incremental()
211 ASSERT_OK(err, "field_ok"); in test_btf_dump_incremental()
215 ASSERT_OK(err, "dump_type_ok"); in test_btf_dump_incremental()
Dbtf_write.c96 ASSERT_OK(err, "f1_res"); in test_btf_write()
98 ASSERT_OK(err, "f2_res"); in test_btf_write()
126 ASSERT_OK(err, "f1_res"); in test_btf_write()
144 ASSERT_OK(err, "v1_res"); in test_btf_write()
146 ASSERT_OK(err, "v2_res"); in test_btf_write()
203 ASSERT_OK(err, "p1_res"); in test_btf_write()
205 ASSERT_OK(err, "p2_res"); in test_btf_write()
231 ASSERT_OK(err, "v1_res"); in test_btf_write()
Dsend_signal.c60 ASSERT_OK(errno, "getpriority"); in test_send_signal_common()
61 ASSERT_OK(setpriority(PRIO_PROCESS, 0, -20), "setpriority"); in test_send_signal_common()
79 ASSERT_OK(setpriority(PRIO_PROCESS, 0, old_prio), "setpriority"); in test_send_signal_common()
Dcore_autosize.c106 ASSERT_OK(err, "struct_fields"); in test_core_autosize()
141 if (!ASSERT_OK(err, "prog_load")) in test_core_autosize()
172 if (!ASSERT_OK(err, "bss_lookup")) in test_core_autosize()
Dbtf_endian.c54 ASSERT_OK(memcmp(raw_data, swap_raw_data, raw_sz), "mem_identical"); in test_btf_endian()
Dsock_fields.c51 if (!ASSERT_OK(unshare(CLONE_NEWNET), "create netns")) in create_netns()
54 if (!ASSERT_OK(system("ip link set dev lo up"), "bring up lo")) in create_netns()
121 ASSERT_OK(err, "bpf_map_lookup_elem(linum_map_fd, READ_SK_DST_PORT_IDX)"); in check_result()
Dcore_reloc.c816 if (!ASSERT_OK(err, "btf_src_file")) in test_core_reloc()
826 ASSERT_OK(err, "obj_load"); in test_core_reloc()
/tools/testing/selftests/bpf/
Dtest_progs.h155 #define ASSERT_OK(res, name) ({ \ macro