Lines Matching refs:KUNIT_EXPECT_EQ
23 KUNIT_EXPECT_EQ(test, 1ul, r->ar.start); in damon_test_regions()
24 KUNIT_EXPECT_EQ(test, 2ul, r->ar.end); in damon_test_regions()
25 KUNIT_EXPECT_EQ(test, 0u, r->nr_accesses); in damon_test_regions()
28 KUNIT_EXPECT_EQ(test, 0u, damon_nr_regions(t)); in damon_test_regions()
31 KUNIT_EXPECT_EQ(test, 1u, damon_nr_regions(t)); in damon_test_regions()
34 KUNIT_EXPECT_EQ(test, 0u, damon_nr_regions(t)); in damon_test_regions()
56 KUNIT_EXPECT_EQ(test, 0u, nr_damon_targets(c)); in damon_test_target()
59 KUNIT_EXPECT_EQ(test, 1u, nr_damon_targets(c)); in damon_test_target()
62 KUNIT_EXPECT_EQ(test, 0u, nr_damon_targets(c)); in damon_test_target()
107 KUNIT_EXPECT_EQ(test, 0u, r->nr_accesses); in damon_test_aggregate()
111 KUNIT_EXPECT_EQ(test, 3, ir); in damon_test_aggregate()
115 KUNIT_EXPECT_EQ(test, 3, it); in damon_test_aggregate()
130 KUNIT_EXPECT_EQ(test, r->ar.start, 0ul); in damon_test_split_at()
131 KUNIT_EXPECT_EQ(test, r->ar.end, 25ul); in damon_test_split_at()
134 KUNIT_EXPECT_EQ(test, r->ar.start, 25ul); in damon_test_split_at()
135 KUNIT_EXPECT_EQ(test, r->ar.end, 100ul); in damon_test_split_at()
156 KUNIT_EXPECT_EQ(test, r->ar.start, 0ul); in damon_test_merge_two()
157 KUNIT_EXPECT_EQ(test, r->ar.end, 300ul); in damon_test_merge_two()
158 KUNIT_EXPECT_EQ(test, r->nr_accesses, 16u); in damon_test_merge_two()
165 KUNIT_EXPECT_EQ(test, i, 1); in damon_test_merge_two()
204 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 5u); in damon_test_merge_regions_of()
207 KUNIT_EXPECT_EQ(test, r->ar.start, saddrs[i]); in damon_test_merge_regions_of()
208 KUNIT_EXPECT_EQ(test, r->ar.end, eaddrs[i]); in damon_test_merge_regions_of()
241 KUNIT_EXPECT_EQ(test, damon_select_ops(c, DAMON_OPS_VADDR), 0); in damon_test_ops_registration()
242 KUNIT_EXPECT_EQ(test, damon_select_ops(c, DAMON_OPS_PADDR), 0); in damon_test_ops_registration()
246 KUNIT_EXPECT_EQ(test, damon_register_ops(&ops), -EINVAL); in damon_test_ops_registration()
248 KUNIT_EXPECT_EQ(test, damon_register_ops(&ops), -EINVAL); in damon_test_ops_registration()
251 KUNIT_EXPECT_EQ(test, damon_select_ops(c, NR_DAMON_OPS), -EINVAL); in damon_test_ops_registration()
260 KUNIT_EXPECT_EQ(test, damon_register_ops(&ops), 0); in damon_test_ops_registration()
267 KUNIT_EXPECT_EQ(test, damon_register_ops(&ops), -EINVAL); in damon_test_ops_registration()
284 KUNIT_EXPECT_EQ(test, damon_nr_regions(t), 3); in damon_test_set_regions()
286 KUNIT_EXPECT_EQ(test, r->ar.start, expects[expect_idx++]); in damon_test_set_regions()
287 KUNIT_EXPECT_EQ(test, r->ar.end, expects[expect_idx++]); in damon_test_set_regions()
305 KUNIT_EXPECT_EQ(test, r->nr_accesses, 15); in damon_test_update_monitoring_result()
306 KUNIT_EXPECT_EQ(test, r->age, 2); in damon_test_update_monitoring_result()
311 KUNIT_EXPECT_EQ(test, r->nr_accesses, 150); in damon_test_update_monitoring_result()
312 KUNIT_EXPECT_EQ(test, r->age, 2); in damon_test_update_monitoring_result()
317 KUNIT_EXPECT_EQ(test, r->nr_accesses, 150); in damon_test_update_monitoring_result()
318 KUNIT_EXPECT_EQ(test, r->age, 20); in damon_test_update_monitoring_result()