Lines Matching full:regions
37 * discontiguous regions which cover every mapped areas. However, the three
38 * regions should not include the two biggest unmapped areas in the original
40 * heap and the mmap()-ed regions, and 2) the mmap()-ed regions and stack.
47 * three regions and returns. For more detail, refer to the comment of
53 * mapped. To cover every mappings, the three regions should start with 10,
56 * unmapped areas, and thus it should be converted to three regions of 10-25,
62 struct damon_addr_range regions[3] = {0,}; in damon_test_three_regions_in_vmas() local
76 __damon_va_three_regions(&mm, regions); in damon_test_three_regions_in_vmas()
78 KUNIT_EXPECT_EQ(test, 10ul, regions[0].start); in damon_test_three_regions_in_vmas()
79 KUNIT_EXPECT_EQ(test, 25ul, regions[0].end); in damon_test_three_regions_in_vmas()
80 KUNIT_EXPECT_EQ(test, 200ul, regions[1].start); in damon_test_three_regions_in_vmas()
81 KUNIT_EXPECT_EQ(test, 220ul, regions[1].end); in damon_test_three_regions_in_vmas()
82 KUNIT_EXPECT_EQ(test, 300ul, regions[2].start); in damon_test_three_regions_in_vmas()
83 KUNIT_EXPECT_EQ(test, 330ul, regions[2].end); in damon_test_three_regions_in_vmas()
103 * regions an array containing start/end addresses of current
104 * monitoring target regions
105 * nr_regions the number of the addresses in 'regions'
106 * three_regions The three regions that need to be applied now
107 * expected start/end addresses of monitoring target regions that
113 * three regions, and updates the monitoring target regions to fit in the three
114 * regions. The update of current target regions is the role of
117 * This test passes the given target regions and the new three regions that
118 * need to be applied to the function and check whether it updates the regions
122 unsigned long *regions, int nr_regions, in damon_do_test_apply_three_regions() argument
132 r = damon_new_region(regions[i * 2], regions[i * 2 + 1]); in damon_do_test_apply_three_regions()
146 * This function test most common case where the three big regions are only
147 * slightly changed. Target regions should adjust their boundary (10-20-30,
148 * 50-55, 70-80, 90-100) to fit with the new big regions or remove target
149 * regions (57-79) that now out of the three regions.
154 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59, in damon_test_apply_three_regions1() local
165 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions), in damon_test_apply_three_regions1()
171 * now require two target regions (50-55, 57-59) to be removed.
176 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59, in damon_test_apply_three_regions2() local
187 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions), in damon_test_apply_three_regions2()
193 * different area (50-59 -> 61-63). The target regions which were in the old
200 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59, in damon_test_apply_three_regions3() local
211 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions), in damon_test_apply_three_regions3()
216 * Test another big change. Both of the second and third big regions (50-59
218 * 65-68). The target regions which were in the old second and third big
219 * regions should now be removed and new target regions covering the new second
220 * and third big regions should be created.
225 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59, in damon_test_apply_three_regions4() local
235 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions), in damon_test_apply_three_regions4()