Lines Matching +full:hot +full:- +full:plug

3 /*-
57 /* Testing API - assumes userland */
112 #define PAGE_MASK (PAGE_SIZE - 1)
190 /* end - Provide Kernel API equivalents */
195 #include <atf-c.h>
237 printf("%s: seg->start == %ld\n", __func__, in uvm_physseg_dump_seg()
239 printf("%s: seg->end == %ld\n", __func__, in uvm_physseg_dump_seg()
241 printf("%s: seg->avail_start == %ld\n", __func__, in uvm_physseg_dump_seg()
243 printf("%s: seg->avail_end == %ld\n", __func__, in uvm_physseg_dump_seg()
287 /* <---- Tests for Internal functions ----> */
302 uvm_physseg_alloc(sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()
337 /* Retry static alloc()s as dynamic - we expect them to pass */ in ATF_TC_BODY()
339 ATF_REQUIRE(uvm_physseg_alloc(sizeof(struct uvm_physseg) - 1)); in ATF_TC_BODY()
356 uvm_physseg_free(&uvm_physseg[0], sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()
376 * error. Thus VM_PHYSSEG_MAX - 1. in ATF_TC_BODY()
379 seg = uvm_physseg_alloc((VM_PHYSSEG_MAX - 1) * sizeof(*seg)); in ATF_TC_BODY()
380 uvm_physseg_free(seg, (VM_PHYSSEG_MAX - 1) * sizeof(struct uvm_physseg)); in ATF_TC_BODY()
383 /* Retry static alloc()s as dynamic - we expect them to pass */ in ATF_TC_BODY()
386 seg = uvm_physseg_alloc(sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()
387 uvm_physseg_free(seg, sizeof(struct uvm_physseg) - 1); in ATF_TC_BODY()
439 n = uvm_physseg_get_end(bank) - uvm_physseg_get_start(bank); in uvm_page_init_fake()
445 pagecount -= n; in uvm_page_init_fake()
455 "Test plug functionality."); in ATF_TC_HEAD()
457 /* Note: We only do the second boot time plug if VM_PHYSSEG_MAX > 1 */
460 int nentries = 0; /* Count of entries via plug done so far */ in ATF_TC_BODY()
470 psize_t npages1 = (VALID_END_PFN_1 - VALID_START_PFN_1); in ATF_TC_BODY()
471 psize_t npages2 = (VALID_END_PFN_2 - VALID_START_PFN_2); in ATF_TC_BODY()
472 psize_t npages3 = (VALID_END_PFN_3 - VALID_START_PFN_3); in ATF_TC_BODY()
473 psize_t npages4 = (VALID_END_PFN_4 - VALID_START_PFN_4); in ATF_TC_BODY()
484 /* Vanilla plug x 2 */ in ATF_TC_BODY()
503 /* Scavenge plug - goes into the same slab */ in ATF_TC_BODY()
512 /* Scavenge plug should fit right in the slab */ in ATF_TC_BODY()
516 /* Hot plug - goes into a brand new slab */ in ATF_TC_BODY()
518 /* The hot plug slab should have nothing to do with the original slab */ in ATF_TC_BODY()
537 psize_t npages1 = (VALID_END_PFN_1 - VALID_START_PFN_1); in ATF_TC_BODY()
538 psize_t npages2 = (VALID_END_PFN_2 - VALID_START_PFN_2); in ATF_TC_BODY()
539 psize_t npages3 = (VALID_END_PFN_3 - VALID_START_PFN_3); in ATF_TC_BODY()
588 /* Now unplug the tail fragment - should swallow the complete entry */ in ATF_TC_BODY()
613 /* <---- end Tests for Internal functions ----> */
678 psize_t npages1 = (VALID_END_PFN_1 - VALID_START_PFN_1); in ATF_TC_BODY()
679 psize_t npages2 = (VALID_END_PFN_2 - VALID_START_PFN_2); in ATF_TC_BODY()
788 ATF_REQUIRE_EQ(0, extent_alloc(seg->ext, sizeof(*slab), 1, 0, EX_BOUNDZERO, (void *)&pgs)); in ATF_TC_BODY()
789 err = extent_free(seg->ext, (u_long) pgs, sizeof(*slab), EX_BOUNDZERO); in ATF_TC_BODY()
801 ATF_REQUIRE_EQ(0, extent_alloc(seg->ext, sizeof(*slab), 1, 0, EX_BOUNDZERO, (void *)&pgs)); in ATF_TC_BODY()
802 err = extent_free(seg->ext, (u_long) pgs, sizeof(*slab), EX_BOUNDZERO); in ATF_TC_BODY()
814 ATF_REQUIRE_EQ(0, extent_alloc(seg->ext, sizeof(*slab), 1, 0, EX_BOUNDZERO, (void *)&pgs)); in ATF_TC_BODY()
815 err = extent_free(seg->ext, (u_long) pgs, sizeof(*slab), EX_BOUNDZERO); in ATF_TC_BODY()
884 seg->start = 0; in ATF_TC_BODY()
885 seg->end = npages; in ATF_TC_BODY()
887 seg->avail_start = 0; in ATF_TC_BODY()
888 seg->avail_end = npages; in ATF_TC_BODY()
905 psize_t npages = (VALID_END_PFN_1 - VALID_START_PFN_1);
1009 ATF_CHECK_EQ((paddr_t) -1, in ATF_TC_BODY()
1070 ATF_CHECK_EQ((paddr_t) -1, in ATF_TC_BODY()
1131 ATF_CHECK_EQ((paddr_t) -1, in ATF_TC_BODY()
1192 ATF_CHECK_EQ((paddr_t) -1, in ATF_TC_BODY()
1493 psize_t npages = (VALID_END_PFN_1 - VALID_START_PFN_1); in ATF_TC_BODY()
1556 ATF_CHECK_EQ(VALID_AVAIL_END_PFN_1 - 1, uvm_physseg_get_highest_frame()); in ATF_TC_BODY()
1564 ATF_CHECK_EQ(VALID_AVAIL_END_PFN_3 - 1, uvm_physseg_get_highest_frame()); in ATF_TC_BODY()
1573 ATF_CHECK_EQ(VALID_AVAIL_END_PFN_3 - 1, uvm_physseg_get_highest_frame()); in ATF_TC_BODY()
1642 psize_t npages = (VALID_END_PFN_1 - VALID_START_PFN_1); in ATF_TC_BODY()
1699 psize_t npages = (VALID_END_PFN_1 - VALID_START_PFN_1); in ATF_TC_BODY()
1726 ATF_CHECK_EQ(5 * PAGE_SIZE, extracted_pg->phys_addr); in ATF_TC_BODY()
1731 ATF_CHECK_EQ(113 * PAGE_SIZE, extracted_pg->phys_addr); in ATF_TC_BODY()
1743 psize_t npages = (VALID_END_PFN_1 - VALID_START_PFN_1); in ATF_TC_BODY()
1779 extracted_pmseg->dummy_variable = pmseg.dummy_variable; in ATF_TC_BODY()
1790 ATF_CHECK_EQ(true, extracted_pmseg->dummy_variable); in ATF_TC_BODY()
1804 psize_t offset = (psize_t) -1; in ATF_TC_BODY()
1831 result = uvm_physseg_find(atop(ONE_MEGABYTE - 1024), NULL); in ATF_TC_BODY()
1842 ATF_REQUIRE_EQ((psize_t) -1, offset); in ATF_TC_BODY()
1859 /* atop(ONE_MEGABYTE + (2 * PAGE_SIZE)) - VALID_START_PFN1 = 2 */ in ATF_TC_BODY()
1863 result = uvm_physseg_find(atop(ONE_MEGABYTE - 12288), &offset); in ATF_TC_BODY()
1875 /* atop(ONE_MEGABYTE - (3 * PAGE_SIZE)) - VALID_START_PFN1 = 253 */ in ATF_TC_BODY()
1884 is (paddr_t) -1 when a non existant PFN is passed into \ in ATF_TC_HEAD()
1889 psize_t offset = (psize_t) -1; in ATF_TC_BODY()
1903 ATF_REQUIRE_EQ((psize_t) -1, offset); in ATF_TC_BODY()
1909 ATF_CHECK_EQ((psize_t) -1, offset); in ATF_TC_BODY()
1923 psize_t npages = (VALID_END_PFN_2 - VALID_START_PFN_2); in ATF_TC_BODY()
1993 * Remember if X is the upper limit the actual valid pointer is X - 1 in ATF_TC_BODY()
1996 * pointer is 256 - 1 = 255 in ATF_TC_BODY()
1999 ATF_CHECK_EQ(VALID_END_PFN_2 - 1, atop(p)); in ATF_TC_BODY()
2004 * New avail end will be VALID_AVAIL_END_PFN_2 - 1 in ATF_TC_BODY()
2005 * New end will be VALID_AVAIL_PFN_2 - 1 in ATF_TC_BODY()
2008 ATF_CHECK_EQ(VALID_AVAIL_END_PFN_2 - 1, uvm_physseg_get_avail_end(upm)); in ATF_TC_BODY()
2010 ATF_CHECK_EQ(VALID_END_PFN_2 - 1, uvm_physseg_get_end(upm)); in ATF_TC_BODY()
2023 because of non-aligned start / avail_start and end / avail_end \ in ATF_TC_HEAD()
2028 psize_t npages = (VALID_END_PFN_2 - VALID_START_PFN_2); in ATF_TC_BODY()
2043 VALID_AVAIL_START_PFN_2 + 1, VALID_AVAIL_END_PFN_2 - 1, in ATF_TC_BODY()
2065 ATF_CHECK_EQ(VALID_AVAIL_END_PFN_2 - 1, in ATF_TC_BODY()
2093 upm = uvm_page_physload(VALID_END_PFN_1 - 1, VALID_END_PFN_1, in ATF_TC_BODY()
2094 VALID_AVAIL_END_PFN_1 - 1, VALID_AVAIL_END_PFN_1, in ATF_TC_BODY()
2116 ATF_CHECK_EQ(VALID_END_PFN_1 - 1, atop(p)); in ATF_TC_BODY()
2200 psize_t npages = (VALID_END_PFN_2 - VALID_START_PFN_2); in ATF_TC_BODY()
2279 upm = uvm_physseg_find(VALID_AVAIL_END_PFN_1 - 1, NULL); in ATF_TC_BODY()