Lines Matching refs:regions

44  * discontiguous regions which cover every mapped areas.  However, the three
45 * regions should not include the two biggest unmapped areas in the original
47 * heap and the mmap()-ed regions, and 2) the mmap()-ed regions and stack.
54 * three regions and returns. For more detail, refer to the comment of
60 * mapped. To cover every mappings, the three regions should start with 10,
63 * unmapped areas, and thus it should be converted to three regions of 10-25,
69 struct damon_addr_range regions[3] = {0,};
84 __damon_va_three_regions(&mm, regions);
86 KUNIT_EXPECT_EQ(test, 10ul, regions[0].start);
87 KUNIT_EXPECT_EQ(test, 25ul, regions[0].end);
88 KUNIT_EXPECT_EQ(test, 200ul, regions[1].start);
89 KUNIT_EXPECT_EQ(test, 220ul, regions[1].end);
90 KUNIT_EXPECT_EQ(test, 300ul, regions[2].start);
91 KUNIT_EXPECT_EQ(test, 330ul, regions[2].end);
111 * regions an array containing start/end addresses of current
112 * monitoring target regions
113 * nr_regions the number of the addresses in 'regions'
114 * three_regions The three regions that need to be applied now
115 * expected start/end addresses of monitoring target regions that
121 * three regions, and updates the monitoring target regions to fit in the three
122 * regions. The update of current target regions is the role of
125 * This test passes the given target regions and the new three regions that
126 * need to be applied to the function and check whether it updates the regions
130 unsigned long *regions, int nr_regions,
140 r = damon_new_region(regions[i * 2], regions[i * 2 + 1]);
156 * This function test most common case where the three big regions are only
157 * slightly changed. Target regions should adjust their boundary (10-20-30,
158 * 50-55, 70-80, 90-100) to fit with the new big regions or remove target
159 * regions (57-79) that now out of the three regions.
164 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59,
175 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions),
181 * now require two target regions (50-55, 57-59) to be removed.
186 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59,
197 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions),
203 * different area (50-59 -> 61-63). The target regions which were in the old
210 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59,
221 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions),
226 * Test another big change. Both of the second and third big regions (50-59
228 * 65-68). The target regions which were in the old second and third big
229 * regions should now be removed and new target regions covering the new second
230 * and third big regions should be created.
235 unsigned long regions[] = {10, 20, 20, 30, 50, 55, 55, 57, 57, 59,
245 damon_do_test_apply_three_regions(test, regions, ARRAY_SIZE(regions),