Lines Matching +full:- +full:70
1 /* SPDX-License-Identifier: GPL-2.0 */
20 int i, ret = -ENOMEM; in __link_vmas()
28 mas_set_range(&mas, vmas[i].vm_start, vmas[i].vm_end - 1); in __link_vmas()
47 * heap and the mmap()-ed regions, and 2) the mmap()-ed regions and stack.
57 * For example, suppose virtual address ranges of 10-20, 20-25, 200-210,
58 * 210-220, 300-305, and 307-330 (Other comments represent this mappings in
59 * more short form: 10-20-25, 200-210-220, 300-305, 307-330) of a process are
61 * and end with 305. The process also has three unmapped areas, 25-200,
62 * 220-300, and 305-307. Among those, 25-200 and 220-300 are the biggest two
63 * unmapped areas, and thus it should be converted to three regions of 10-25,
64 * 200-220, and 300-330.
70 /* 10-20-25, 200-210-220, 300-305, 307-330 */ in damon_test_three_regions_in_vmas()
148 KUNIT_EXPECT_EQ(test, r->ar.start, expected[i * 2]); in damon_do_test_apply_three_regions()
149 KUNIT_EXPECT_EQ(test, r->ar.end, expected[i * 2 + 1]); in damon_do_test_apply_three_regions()
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.
163 /* 10-20-30, 50-55-57-59, 70-80-90-100 */ in damon_test_apply_three_regions1()
165 70, 80, 80, 90, 90, 100}; in damon_test_apply_three_regions1()
166 /* 5-27, 45-55, 73-104 */ in damon_test_apply_three_regions1()
171 /* 5-20-27, 45-55, 73-80-90-104 */ in damon_test_apply_three_regions1()
181 * now require two target regions (50-55, 57-59) to be removed.
185 /* 10-20-30, 50-55-57-59, 70-80-90-100 */ in damon_test_apply_three_regions2()
187 70, 80, 80, 90, 90, 100}; in damon_test_apply_three_regions2()
188 /* 5-27, 56-57, 65-104 */ in damon_test_apply_three_regions2()
193 /* 5-20-27, 56-57, 65-80-90-104 */ in damon_test_apply_three_regions2()
203 * different area (50-59 -> 61-63). The target regions which were in the old
204 * second big region (50-55-57-59) should be removed and new target region
205 * covering the second big region (61-63) should be created.
209 /* 10-20-30, 50-55-57-59, 70-80-90-100 */ in damon_test_apply_three_regions3()
211 70, 80, 80, 90, 90, 100}; in damon_test_apply_three_regions3()
212 /* 5-27, 61-63, 65-104 */ in damon_test_apply_three_regions3()
217 /* 5-20-27, 61-63, 65-80-90-104 */ in damon_test_apply_three_regions3()
226 * Test another big change. Both of the second and third big regions (50-59
227 * and 70-100) has totally freed and mapped to different area (30-32 and
228 * 65-68). The target regions which were in the old second and third big
234 /* 10-20-30, 50-55-57-59, 70-80-90-100 */ in damon_test_apply_three_regions4()
236 70, 80, 80, 90, 90, 100}; in damon_test_apply_three_regions4()
237 /* 5-7, 30-32, 65-68 */ in damon_test_apply_three_regions4()
242 /* expect 5-7, 30-32, 65-68 */ in damon_test_apply_three_regions4()
257 damon_va_evenly_split_region(t, r, nr_pieces), -EINVAL); in damon_test_split_evenly_fail()
261 KUNIT_EXPECT_EQ(test, r->ar.start, start); in damon_test_split_evenly_fail()
262 KUNIT_EXPECT_EQ(test, r->ar.end, end); in damon_test_split_evenly_fail()
273 unsigned long expected_width = (end - start) / nr_pieces; in damon_test_split_evenly_succ()
282 if (i == nr_pieces - 1) { in damon_test_split_evenly_succ()
284 r->ar.start, start + i * expected_width); in damon_test_split_evenly_succ()
285 KUNIT_EXPECT_EQ(test, r->ar.end, end); in damon_test_split_evenly_succ()
289 r->ar.start, start + i++ * expected_width); in damon_test_split_evenly_succ()
290 KUNIT_EXPECT_EQ(test, r->ar.end, start + i * expected_width); in damon_test_split_evenly_succ()
298 -EINVAL); in damon_test_split_evenly()
317 .name = "damon-operations",