Lines Matching full:regions
51 * discontiguous regions which cover every mapped areas. However, the three
52 * regions should not include the two biggest unmapped areas in the original
54 * heap and the mmap()-ed regions, and 2) the mmap()-ed regions and stack.
61 * three regions and returns. For more detail, refer to the comment of
67 * mapped. To cover every mappings, the three regions should start with 10,
70 * unmapped areas, and thus it should be converted to three regions of 10-25,
75 struct damon_addr_range regions[3] = {0,}; in damon_test_three_regions_in_vmas() local
88 __damon_va_three_regions(&vmas[0], regions); in damon_test_three_regions_in_vmas()
90 KUNIT_EXPECT_EQ(test, 10ul, regions[0].start); in damon_test_three_regions_in_vmas()
91 KUNIT_EXPECT_EQ(test, 25ul, regions[0].end); in damon_test_three_regions_in_vmas()
92 KUNIT_EXPECT_EQ(test, 200ul, regions[1].start); in damon_test_three_regions_in_vmas()
93 KUNIT_EXPECT_EQ(test, 220ul, regions[1].end); in damon_test_three_regions_in_vmas()
94 KUNIT_EXPECT_EQ(test, 300ul, regions[2].start); in damon_test_three_regions_in_vmas()
95 KUNIT_EXPECT_EQ(test, 330ul, regions[2].end); in damon_test_three_regions_in_vmas()
115 * regions an array containing start/end addresses of current
116 * monitoring target regions
117 * nr_regions the number of the addresses in 'regions'
118 * three_regions The three regions that need to be applied now
119 * expected start/end addresses of monitoring target regions that
125 * three regions, and updates the monitoring target regions to fit in the three
126 * regions. The update of current target regions is the role of
129 * This test passes the given target regions and the new three regions that
130 * need to be applied to the function and check whether it updates the regions
134 unsigned long *regions, int nr_regions, in damon_do_test_apply_three_regions() argument
144 r = damon_new_region(regions[i * 2], regions[i * 2 + 1]); in damon_do_test_apply_three_regions()
158 * This function test most common case where the three big regions are only
159 * slightly changed. Target regions should adjust their boundary (10-20-30,
160 * 50-55, 70-80, 90-100) to fit with the new big regions or remove target
161 * regions (57-79) that now out of the three regions.
166 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59, in damon_test_apply_three_regions1() local
177 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions), in damon_test_apply_three_regions1()
183 * now require two target regions (50-55, 57-59) to be removed.
188 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59, in damon_test_apply_three_regions2() local
199 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions), in damon_test_apply_three_regions2()
205 * different area (50-59 -> 61-63). The target regions which were in the old
212 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59, in damon_test_apply_three_regions3() local
223 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions), in damon_test_apply_three_regions3()
228 * Test another big change. Both of the second and third big regions (50-59
230 * 65-68). The target regions which were in the old second and third big
231 * regions should now be removed and new target regions covering the new second
232 * and third big regions should be created.
237 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59, in damon_test_apply_three_regions4() local
247 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions), in damon_test_apply_three_regions4()