Lines Matching defs:zp
107 * "zp-factor=N" as a boot-arg. To turn this feature off, set "zp-factor=0" or "-no-zp".
124 * want to set "zp-factor=1" or "-zp" if you are attempting to reproduce a known bug.
144 uint32_t free_check_sample_factor = 0; /* set by zp-factor=N boot arg */
1447 if (PE_parse_boot_argn("-zp", temp_buf, sizeof(temp_buf))) {
1450 if (PE_parse_boot_argn("-no-zp", temp_buf, sizeof(temp_buf))) {
1454 /* zp-factor=XXXX (override how often to poison freed zone elements) */
1455 if (PE_parse_boot_argn("zp-factor", &free_check_sample_factor, sizeof(free_check_sample_factor))) {
2354 struct zone_page_table_entry *zp;
2369 zp = zone_page_table_lookup(i);
2370 if (zp->collect_count == zp->alloc_count)
2382 struct zone_page_table_entry *zp;
2397 zp = zone_page_table_lookup(i);
2398 zp->collect_count = 0;
2407 struct zone_page_table_entry *zp;
2422 zp = zone_page_table_lookup(i);
2423 ++zp->collect_count;
2432 struct zone_page_table_entry *zp;
2450 zp = zone_page_table_lookup(i);
2451 assert(zp);
2452 zp->alloc_count = ZONE_PAGE_UNUSED;
2453 zp->collect_count = 0;
2462 struct zone_page_table_entry *zp;
2477 zp = zone_page_table_lookup(i);
2478 assert(zp);
2484 if (zp->alloc_count == ZONE_PAGE_UNUSED)
2485 zp->alloc_count = ZONE_PAGE_USED;
2487 ++zp->alloc_count;
2498 struct zone_page_table_entry *zp;
2513 zp = zone_page_table_lookup(i);
2515 if (zp->collect_count > 0)
2516 --zp->collect_count;
2517 if (--zp->alloc_count == 0) {
2521 zp->alloc_count = ZONE_PAGE_UNUSED;
2522 zp->collect_count = 0;
2619 struct zone_page_table_entry *zp;
2621 zp = zone_page_table_lookup(i);
2622 assert(!zp || (zp->collect_count == 0));