Searched refs:ASSERT_OK (Results 1 – 9 of 9) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | map_init.c | 31 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 …]
|
D | btf_dump.c | 151 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()
|
D | btf_write.c | 96 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()
|
D | send_signal.c | 60 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()
|
D | core_autosize.c | 106 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()
|
D | btf_endian.c | 54 ASSERT_OK(memcmp(raw_data, swap_raw_data, raw_sz), "mem_identical"); in test_btf_endian()
|
D | sock_fields.c | 51 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()
|
D | core_reloc.c | 816 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/ |
D | test_progs.h | 155 #define ASSERT_OK(res, name) ({ \ macro
|