/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 85 assert(!bpf_map_lookup_elem(mfd, &zero, value)); in bpf_map_lookup_elem_with_ref_bit() 100 assert(!bpf_map_lookup_elem(map1, &next_key, value1)); in map_subset() 157 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity0() 163 assert(lru_map_fd != -1); in test_lru_sanity0() 166 assert(expected_map_fd != -1); in test_lru_sanity0() 173 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 174 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0() 178 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -EEXIST); in test_lru_sanity0() 181 assert(bpf_map_update_elem(lru_map_fd, &key, value, -1) == -EINVAL); in test_lru_sanity0() 187 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -ENOENT); in test_lru_sanity0() [all …]
|
D | test_lpm_map.c | 59 assert(node); in tlpm_add() 133 assert(0); in tlpm_delete() 143 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 146 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() 147 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic() 148 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16)); in test_lpm_basic() 149 assert(!tlpm_match(list, (uint8_t[]){ 0x7f }, 8)); in test_lpm_basic() 150 assert(!tlpm_match(list, (uint8_t[]){ 0xfe }, 8)); in test_lpm_basic() 151 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 7)); in test_lpm_basic() 154 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic() [all …]
|
D | test_maps.c | 51 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 55 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 60 assert(bpf_map_update_elem(fd, &key, &value, -1) < 0 && in test_hashmap() 64 assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap() 69 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 72 assert(bpf_map_lookup_and_delete_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap() 75 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_hashmap() 78 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && in test_hashmap() 83 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) == 0); in test_hashmap() 89 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() [all …]
|
D | test_dev_cgroup.c | 60 assert(system("rm -f /tmp/test_dev_cgroup_null") == 0); in main() 61 assert(system("mknod /tmp/test_dev_cgroup_null c 1 3")); in main() 62 assert(system("rm -f /tmp/test_dev_cgroup_null") == 0); in main() 65 assert(system("rm -f /tmp/test_dev_cgroup_zero") == 0); in main() 66 assert(system("mknod /tmp/test_dev_cgroup_zero c 1 5") == 0); in main() 67 assert(system("rm -f /tmp/test_dev_cgroup_zero") == 0); in main() 69 assert(system("dd if=/dev/urandom of=/dev/zero count=64") == 0); in main() 72 assert(system("dd if=/dev/urandom of=/dev/full count=64")); in main() 75 assert(system("dd if=/dev/random of=/dev/zero count=64")); in main()
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/ |
D | isp2400_input_system_private.h | 30 assert(ID < N_INPUT_SYSTEM_ID); in input_system_reg_store() 31 assert(INPUT_SYSTEM_BASE[ID] != (hrt_address)-1); in input_system_reg_store() 41 assert(ID < N_INPUT_SYSTEM_ID); in input_system_reg_load() 42 assert(INPUT_SYSTEM_BASE[ID] != (hrt_address)-1); in input_system_reg_load() 52 assert(ID < N_RX_ID); in receiver_reg_store() 53 assert(RX_BASE[ID] != (hrt_address)-1); in receiver_reg_store() 62 assert(ID < N_RX_ID); in receiver_reg_load() 63 assert(RX_BASE[ID] != (hrt_address)-1); in receiver_reg_load() 73 assert(ID < N_RX_ID); in receiver_port_reg_store() 74 assert(port_ID < N_MIPI_PORT_ID); in receiver_port_reg_store() [all …]
|
/linux-6.1.9/tools/testing/radix-tree/ |
D | tag_check.c | 20 assert(item_tag_get(tree, index, tag) == 0); in __simple_checks() 23 assert(item_tag_get(tree, index, tag) == 0); in __simple_checks() 26 assert(ret != 0); in __simple_checks() 28 assert(ret == 1); in __simple_checks() 30 assert(ret != 0); in __simple_checks() 32 assert(ret != 0); in __simple_checks() 35 assert(ret == 0); in __simple_checks() 37 assert(ret != 0); in __simple_checks() 39 assert(ret == 0); in __simple_checks() 67 assert(item_tag_get(&tree, 43, 0) == 0); in extend_checks() [all …]
|
D | idr-test.c | 19 assert(item->index == id); in item_idr_free() 28 assert(item->index == id); in item_idr_remove() 38 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0); in idr_alloc_test() 39 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd); in idr_alloc_test() 53 assert(id == item->index); in idr_alloc_test() 81 assert(idr_is_empty(&idr)); in idr_null_test() 83 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test() 84 assert(!idr_is_empty(&idr)); in idr_null_test() 86 assert(idr_is_empty(&idr)); in idr_null_test() 88 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test() [all …]
|
D | multiorder.c | 48 assert(!err); in multiorder_iteration() 62 assert((xas.xa_index | mask) == (index[i] | mask)); in multiorder_iteration() 63 assert(xas.xa_node->shift == shift); in multiorder_iteration() 64 assert(!radix_tree_is_internal_node(item)); in multiorder_iteration() 65 assert((item->index | mask) == (index[i] | mask)); in multiorder_iteration() 66 assert(item->order == order[i]); in multiorder_iteration() 90 assert(!item_insert_order(xa, index[i], order[i])); in multiorder_tagged_iteration() 92 assert(!xa_marked(xa, XA_MARK_1)); in multiorder_tagged_iteration() 114 assert((xas.xa_index | mask) == (tag_index[i] | mask)); in multiorder_tagged_iteration() 115 assert(!xa_is_internal(item)); in multiorder_tagged_iteration() [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
D | sp_private.h | 30 assert(ID < N_SP_ID); in sp_ctrl_store() 31 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_store() 40 assert(ID < N_SP_ID); in sp_ctrl_load() 41 assert(SP_CTRL_BASE[ID] != (hrt_address)-1); in sp_ctrl_load() 83 assert(ID < N_SP_ID); in sp_dmem_store() 84 assert(SP_DMEM_BASE[ID] != (hrt_address)-1); in sp_dmem_store() 95 assert(ID < N_SP_ID); in sp_dmem_load() 96 assert(SP_DMEM_BASE[ID] != (hrt_address)-1); in sp_dmem_load() 106 assert(ID < N_SP_ID); in sp_dmem_store_uint8() 107 assert(SP_DMEM_BASE[ID] != (hrt_address)-1); in sp_dmem_store_uint8() [all …]
|
D | fifo_monitor_private.h | 37 assert(ID == FIFO_MONITOR0_ID); in fifo_switch_set() 38 assert(FIFO_MONITOR_BASE[ID] != (hrt_address) - 1); in fifo_switch_set() 39 assert(switch_id < N_FIFO_SWITCH); in fifo_switch_set() 51 assert(ID == FIFO_MONITOR0_ID); in fifo_switch_get() 52 assert(FIFO_MONITOR_BASE[ID] != (hrt_address) - 1); in fifo_switch_get() 53 assert(switch_id < N_FIFO_SWITCH); in fifo_switch_get() 64 assert(ID < N_FIFO_MONITOR_ID); in fifo_monitor_reg_store() 65 assert(FIFO_MONITOR_BASE[ID] != (hrt_address) - 1); in fifo_monitor_reg_store() 75 assert(ID < N_FIFO_MONITOR_ID); in fifo_monitor_reg_load() 76 assert(FIFO_MONITOR_BASE[ID] != (hrt_address) - 1); in fifo_monitor_reg_load()
|
D | event_fifo_private.h | 29 assert(ID < N_EVENT_ID); in event_wait_for() 30 assert(event_source_addr[ID] != ((hrt_address) - 1)); in event_wait_for() 45 assert(ID < N_EVENT_ID); in event_receive_token() 46 assert(event_source_addr[ID] != ((hrt_address) - 1)); in event_receive_token() 53 assert(ID < N_EVENT_ID); in event_send_token() 54 assert(event_sink_addr[ID] != ((hrt_address) - 1)); in event_send_token() 62 assert(ID < N_EVENT_ID); in is_event_pending() 63 assert(event_source_query_addr[ID] != ((hrt_address) - 1)); in is_event_pending() 72 assert(ID < N_EVENT_ID); in can_event_send_token() 73 assert(event_sink_query_addr[ID] != ((hrt_address) - 1)); in can_event_send_token()
|
/linux-6.1.9/tools/virtio/ringtest/ |
D | main.c | 41 assert(r == sizeof v); in notify() 52 assert(r == sizeof v); in wait_for_notify() 88 assert(!*endptr); in set_affinity() 90 assert(cpu >= 0 && cpu < CPU_SETSIZE); in set_affinity() 97 assert(!ret); in set_affinity() 148 assert(completed <= bufs); in run_guest() 149 assert(started <= bufs); in run_guest() 193 assert(completed <= bufs); in run_host() 303 assert(kickfd >= 0); in main() 305 assert(callfd >= 0); in main() [all …]
|
/linux-6.1.9/tools/testing/selftests/proc/ |
D | proc-subset-pid.c | 78 assert(d); in main() 89 assert(!dot); in main() 91 assert(de->d_type == DT_DIR); in main() 93 assert(!dot_dot); in main() 95 assert(de->d_type == DT_DIR); in main() 97 assert(!self); in main() 99 assert(de->d_type == DT_LNK); in main() 101 assert(!thread_self); in main() 103 assert(de->d_type == DT_LNK); in main() 107 assert(0); in main() [all …]
|
D | proc-pid-vm.c | 366 assert(rv == len); in main() 367 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main() 369 assert(memcmp(buf + strlen(buf0), str_vsyscall, strlen(str_vsyscall)) == 0); in main() 385 assert(0 <= rv && rv <= sizeof(buf)); in main() 387 assert(rv >= strlen(buf0)); in main() 388 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main() 394 assert(memmem(buf, rv, RSS1, strlen(RSS1)) || in main() 396 assert(memmem(buf, rv, PSS1, strlen(PSS1)) || in main() 412 assert(memmem(buf, rv, S[i], strlen(S[i]))); in main() 416 assert(memmem(buf, rv, str_vsyscall, strlen(str_vsyscall))); in main() [all …]
|
D | fd-002-posix-eq.c | 33 assert(fd0 >= 0); in main() 37 assert(fd1 >= 0); in main() 41 assert(fd2 >= 0); in main() 44 assert(rv == 0); in main() 46 assert(rv == 0); in main() 48 assert(rv == 0); in main() 50 assert(st0.st_dev == st1.st_dev); in main() 51 assert(st0.st_ino == st1.st_ino); in main() 53 assert(st0.st_dev == st2.st_dev); in main() 54 assert(st0.st_ino == st2.st_ino); in main()
|
D | proc-uptime.h | 34 assert(0 <= rv && rv <= sizeof(buf)); in proc_uptime() 40 assert(p[0] == '.'); in proc_uptime() 41 assert('0' <= p[1] && p[1] <= '9'); in proc_uptime() 42 assert('0' <= p[2] && p[2] <= '9'); in proc_uptime() 43 assert(p[3] == ' '); in proc_uptime() 51 assert(p[0] == '.'); in proc_uptime() 52 assert('0' <= p[1] && p[1] <= '9'); in proc_uptime() 53 assert('0' <= p[2] && p[2] <= '9'); in proc_uptime() 54 assert(p[3] == '\n'); in proc_uptime() 59 assert(p + 4 == buf + rv); in proc_uptime()
|
D | fd-001-lookup.c | 40 assert(rv == 0); in test_lookup_pass() 41 assert(S_ISLNK(st.st_mode)); in test_lookup_pass() 50 assert(rv == -1 && errno == ENOENT); in test_lookup_fail() 116 assert(de->d_type == DT_DIR); in main() 117 assert(streq(de->d_name, ".")); in main() 120 assert(de->d_type == DT_DIR); in main() 121 assert(streq(de->d_name, "..")); in main() 129 assert(de->d_type == DT_LNK); in main() 132 assert(*end == '\0'); in main() 133 assert(fd_ull == (unsigned int)fd_ull); in main() [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/isp/kernels/dvs/dvs_1.0/ |
D | ia_css_dvs.host.c | 92 assert(config); in convert_coords_to_ispparams() 93 assert(gdc_warp_table); in convert_coords_to_ispparams() 94 assert(gdc_warp_table->address); in convert_coords_to_ispparams() 117 assert(width == num_blocks_x + in convert_coords_to_ispparams() 119 assert(height == num_blocks_y + 1); in convert_coords_to_ispparams() 139 assert(x01 >= xmin); in convert_coords_to_ispparams() 140 assert(x11 >= xmin); in convert_coords_to_ispparams() 142 assert(y10 >= ymin); in convert_coords_to_ispparams() 143 assert(y11 >= ymin); in convert_coords_to_ispparams() 173 assert(s.p0_x < (s.in_block_width << DVS_COORD_FRAC_BITS)); in convert_coords_to_ispparams() [all …]
|
/linux-6.1.9/tools/testing/selftests/net/mptcp/ |
D | mptcp_sockopt.c | 249 assert(ret < 0); /* 0 size_subflow_data */ in do_getsockopt_bogus_sf_data() 250 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data() 255 assert(ret == 0); in do_getsockopt_bogus_sf_data() 256 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data() 257 assert(bd.d.num_subflows == 1); in do_getsockopt_bogus_sf_data() 258 assert(bd.d.size_kernel > 0); in do_getsockopt_bogus_sf_data() 259 assert(bd.d.size_user == 0); in do_getsockopt_bogus_sf_data() 265 assert(ret < 0); /* bogus olen */ in do_getsockopt_bogus_sf_data() 266 assert(olen == _olen); /* must be unchanged */ in do_getsockopt_bogus_sf_data() 272 assert(ret < 0); /* size_kernel not 0 */ in do_getsockopt_bogus_sf_data() [all …]
|
/linux-6.1.9/include/kunit/ |
D | assert.h | 51 typedef void (*assert_format_t)(const struct kunit_assert *assert, 66 struct kunit_assert assert; member 69 void kunit_fail_assert_format(const struct kunit_assert *assert, 84 struct kunit_assert assert; member 89 void kunit_unary_assert_format(const struct kunit_assert *assert, 117 struct kunit_assert assert; member 122 void kunit_ptr_not_err_assert_format(const struct kunit_assert *assert, 166 struct kunit_assert assert; member 172 void kunit_binary_assert_format(const struct kunit_assert *assert, 210 struct kunit_assert assert; member [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ |
D | ia_css_sdis2.host.c | 51 assert(padding >= 0); in ia_css_sdis2_horicoef_vmem_encode() 52 assert(total_bytes <= size); in ia_css_sdis2_horicoef_vmem_encode() 53 assert(size % (IA_CSS_DVS2_NUM_COEF_TYPES * ISP_VEC_NELEMS * sizeof( in ia_css_sdis2_horicoef_vmem_encode() 76 assert(padding >= 0); in ia_css_sdis2_vertcoef_vmem_encode() 77 assert(total_bytes <= size); in ia_css_sdis2_vertcoef_vmem_encode() 78 assert(size % (IA_CSS_DVS2_NUM_COEF_TYPES * ISP_VEC_NELEMS * sizeof( in ia_css_sdis2_vertcoef_vmem_encode() 123 assert(stream); in ia_css_get_isp_dvs2_coefficients() 124 assert(hor_coefs_odd_real); in ia_css_get_isp_dvs2_coefficients() 125 assert(hor_coefs_odd_imag); in ia_css_get_isp_dvs2_coefficients() 126 assert(hor_coefs_even_real); in ia_css_get_isp_dvs2_coefficients() [all …]
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/ |
D | sparsebit.c | 366 assert(idx > parentp->idx + MASK_BITS + parentp->num_after - 1); in node_add() 385 assert(prev->num_after > 0); in node_add() 386 assert(n1 < MASK_BITS); in node_add() 387 assert(!(nodep->mask & (1 << n1))); in node_add() 415 assert(s->num_set >= num_set || sparsebit_all_set(s)); in node_rm() 441 assert(nodep == nodep->parent->right); in node_rm() 463 assert(nodep == nodep->parent->right); in node_rm() 481 assert(nodep == nodep->parent->right); in node_rm() 504 assert(!(idx % MASK_BITS)); in node_split() 649 assert(nodep->num_after != 0); in node_reduce() [all …]
|
/linux-6.1.9/tools/virtio/ |
D | virtio_test.c | 59 assert(r == sizeof v); in vq_notify() 81 assert(r >= 0); in vhost_vq_setup() 84 assert(r >= 0); in vhost_vq_setup() 87 assert(r >= 0); in vhost_vq_setup() 89 assert(r >= 0); in vhost_vq_setup() 92 assert(r >= 0); in vhost_vq_setup() 95 assert(r >= 0); in vhost_vq_setup() 107 assert(info->vq); in vq_reset() 119 assert(r >= 0); in vq_info_add() 136 assert(dev->buf); in vdev_info_init() [all …]
|
D | vringh_test.c | 183 assert(user_addr_offset); in parallel_test() 260 assert(riov.i == riov.used); in parallel_test() 267 assert(wiov.i == wiov.used); in parallel_test() 338 assert(*dbuf == finished - 1); in parallel_test() 340 assert(*dbuf == finished); in parallel_test() 416 assert(*dbuf == finished - 1); in parallel_test() 418 assert(len == 0); in parallel_test() 527 assert(riov.used == 1); in main() 528 assert(riov.iov[0].iov_base == __user_addr_max - 1); in main() 529 assert(riov.iov[0].iov_len == 1); in main() [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/camera/pipe/src/ |
D | pipe_binarydesc.c | 44 assert(pipe); in pipe_binarydesc_get_offline() 45 assert(descr); in pipe_binarydesc_get_offline() 87 assert(pipe); in ia_css_pipe_get_copy_binarydesc() 88 assert(in_info); in ia_css_pipe_get_copy_binarydesc() 114 assert(pipe); in ia_css_pipe_get_vfpp_binarydesc() 115 assert(in_info); in ia_css_pipe_get_vfpp_binarydesc() 181 assert(in_w != 0 && in_h != 0); in binarydesc_calculate_bds_factor() 182 assert(out_w != 0 && out_h != 0); in binarydesc_calculate_bds_factor() 219 assert(pipe); in ia_css_pipe_get_preview_binarydesc() 220 assert(in_info); in ia_css_pipe_get_preview_binarydesc() [all …]
|