/linux-6.1.9/lib/ |
D | cpumask_kunit.c | 23 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(mask)); \ 33 KUNIT_EXPECT_EQ_MSG((test), nr_cpu_ids - mask_weight, iter, MASK_MSG(mask)); \ 56 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(mask)); \ 65 KUNIT_EXPECT_EQ_MSG((test), mask_weight, iter, MASK_MSG(cpu_##name##_mask)); \ 77 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_weight(&mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_weight() 78 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids, cpumask_weight(cpu_possible_mask), in test_cpumask_weight() 80 KUNIT_EXPECT_EQ_MSG(test, nr_cpumask_bits, cpumask_weight(&mask_all), MASK_MSG(&mask_all)); in test_cpumask_weight() 86 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_first(cpu_possible_mask), MASK_MSG(cpu_possible_mask)); in test_cpumask_first() 88 KUNIT_EXPECT_EQ_MSG(test, 0, cpumask_first_zero(&mask_empty), MASK_MSG(&mask_empty)); in test_cpumask_first() 97 KUNIT_EXPECT_EQ_MSG(test, nr_cpu_ids - 1, cpumask_last(cpu_possible_mask), in test_cpumask_last() [all …]
|
D | test_hash.c | 76 KUNIT_EXPECT_EQ_MSG(test, params->h1, params->h2, in test_int__hash_32() 89 KUNIT_EXPECT_EQ_MSG(test, params->h1, params->h2, in test_int_hash_64() 164 KUNIT_EXPECT_EQ_MSG(test, string_or, -1u, in test_string_or() 187 KUNIT_EXPECT_EQ_MSG(test, hashlen_len(hashlen), j-i, in test_hash_or() 191 KUNIT_EXPECT_EQ_MSG(test, hashlen_hash(hashlen), h0, in test_hash_or() 200 KUNIT_EXPECT_EQ_MSG(test, hash_or[0][0], -1u, in test_hash_or() 205 KUNIT_EXPECT_EQ_MSG(test, hash_or[1][0], -1u, in test_hash_or() 215 KUNIT_EXPECT_EQ_MSG(test, hash_or[0][i], m, in test_hash_or() 218 KUNIT_EXPECT_EQ_MSG(test, hash_or[1][i], m, in test_hash_or()
|
D | test_list_sort.c | 39 KUNIT_EXPECT_EQ_MSG(test, ela->poison1, TEST_POISON1, "bad poison"); in check() 40 KUNIT_EXPECT_EQ_MSG(test, ela->poison2, TEST_POISON2, "bad poison"); in check() 42 KUNIT_EXPECT_EQ_MSG(test, elb->poison1, TEST_POISON1, "bad poison"); in check() 43 KUNIT_EXPECT_EQ_MSG(test, elb->poison2, TEST_POISON2, "bad poison"); in check() 106 KUNIT_EXPECT_EQ_MSG(test, count, TEST_LIST_LEN, in list_sort_test()
|
D | cmdline_kunit.c | 50 KUNIT_EXPECT_EQ_MSG(test, ret, rc, fmt, in); in cmdline_do_one_test() 116 KUNIT_EXPECT_EQ_MSG(test, r[0], e[0], "in test %u (parsed) expected %d numbers, got %d", in cmdline_do_one_range_test() 119 KUNIT_EXPECT_EQ_MSG(test, r[i], e[i], "in test %u at %u", n, i); in cmdline_do_one_range_test() 123 KUNIT_EXPECT_EQ_MSG(test, r[0], e[0], "in test %u (validated) expected %d numbers, got %d", in cmdline_do_one_range_test()
|
D | overflow_kunit.c | 259 KUNIT_EXPECT_EQ_MSG(test, _of, of, \ 262 KUNIT_EXPECT_EQ_MSG(test, _r, r, \ 267 KUNIT_EXPECT_EQ_MSG(test, _a_orig, _a_bump, "Unexpected " #op " macro side-effect!\n"); \ 268 KUNIT_EXPECT_EQ_MSG(test, _b_orig, _b_bump, "Unexpected " #op " macro side-effect!\n"); \ 343 KUNIT_EXPECT_EQ_MSG(test, __of, of, \ 347 KUNIT_EXPECT_EQ_MSG(test, __d, __e, \ 665 KUNIT_EXPECT_EQ_MSG(test, _r, expected, \ in overflow_size_helpers_test()
|
D | memcpy_kunit.c | 43 KUNIT_EXPECT_EQ_MSG(test, one.data[i], two.data[i], \ 284 KUNIT_EXPECT_EQ_MSG(test, wrap.canary1, ULONG_MAX, in strtomem_test() 286 KUNIT_EXPECT_EQ_MSG(test, wrap.canary2, ULONG_MAX, in strtomem_test()
|
/linux-6.1.9/drivers/gpu/drm/tests/ |
D | drm_damage_helper_test.c | 133 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return plane src as damage."); in drm_test_damage_iter_no_damage() 153 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, in drm_test_damage_iter_no_damage_fractional_src() 173 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return plane src as damage."); in drm_test_damage_iter_no_damage_src_moved() 193 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return plane src as damage."); in drm_test_damage_iter_no_damage_fractional_src_moved() 212 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_no_damage_not_visible() 230 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_no_damage_no_crtc() 248 KUNIT_EXPECT_EQ_MSG(test, num_hits, 0, "Should have no damage."); in drm_test_damage_iter_no_damage_no_fb() 270 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return damage when set."); in drm_test_damage_iter_simple_damage() 292 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return damage when set."); in drm_test_damage_iter_single_damage() 315 KUNIT_EXPECT_EQ_MSG(test, num_hits, 1, "Should return damage clipped to src."); in drm_test_damage_iter_single_damage_intersect_src() [all …]
|
D | drm_buddy_test.c | 464 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_order(block), order, in drm_test_buddy_alloc_smoke() 704 KUNIT_EXPECT_EQ_MSG(test, mm.max_order, DRM_BUDDY_MAX_ORDER, in drm_test_buddy_alloc_limit() 715 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_order(block), mm.max_order, in drm_test_buddy_alloc_limit() 719 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_size(&mm, block), in drm_test_buddy_alloc_limit()
|
D | drm_dp_mst_helper_test.c | 39 KUNIT_EXPECT_EQ_MSG(test, pbn, test_params[i].expected, in drm_test_dp_mst_calc_pbn_mode()
|
/linux-6.1.9/fs/fat/ |
D | fat_test.c | 145 KUNIT_EXPECT_EQ_MSG(test, in fat_time_fat2unix_test() 149 KUNIT_EXPECT_EQ_MSG(test, in fat_time_fat2unix_test() 168 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test() 172 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test() 176 KUNIT_EXPECT_EQ_MSG(test, in fat_time_unix2fat_test()
|
/linux-6.1.9/kernel/ |
D | resource_kunit.c | 87 KUNIT_EXPECT_EQ_MSG(test, ret, exp_ret, "Resources %pR %pR", r1, r2); in resource_do_test() 88 KUNIT_EXPECT_EQ_MSG(test, r->start, exp_r->start, "Start elements are not equal"); in resource_do_test() 89 KUNIT_EXPECT_EQ_MSG(test, r->end, exp_r->end, "End elements are not equal"); in resource_do_test()
|
/linux-6.1.9/fs/ext4/ |
D | inode-test.c | 252 KUNIT_EXPECT_EQ_MSG(test, in inode_test_xtimestamp_decoding() 260 KUNIT_EXPECT_EQ_MSG(test, in inode_test_xtimestamp_decoding()
|
/linux-6.1.9/sound/soc/ |
D | soc-topology-test.c | 66 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe() 231 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_comp() 335 KUNIT_EXPECT_EQ_MSG(kunit_comp->kunit, kunit_comp->expect, ret, in d_probe_null_fw()
|
/linux-6.1.9/include/kunit/ |
D | test.h | 733 KUNIT_EXPECT_EQ_MSG(test, left, right, NULL) 735 #define KUNIT_EXPECT_EQ_MSG(test, left, right, fmt, ...) \ macro
|
/linux-6.1.9/Documentation/dev-tools/kunit/ |
D | tips.rst | 174 KUNIT_EXPECT_EQ_MSG(test, strlen(some_str), 40, "some_str='%s'", some_str);
|
/linux-6.1.9/drivers/iio/test/ |
D | iio-test-rescale.c | 670 KUNIT_EXPECT_EQ_MSG(test, rel_ppm, 0, in iio_rescale_test_scale()
|
/linux-6.1.9/kernel/kcsan/ |
D | kcsan_test.c | 543 KUNIT_EXPECT_EQ_MSG(test, reorder_access->size, \ in test_barrier_nothreads()
|