Searched refs:zpercpu_count (Results 1 – 12 of 12) sorted by relevance
| /xnu-11215/tests/ |
| H A D | os_refcnt.c | 26 zpercpu_count(void) in zpercpu_count() function 42 (uint64_t _Atomic *)calloc((size_t)zpercpu_count(), ZPERCPU_STRIDE) 56 for (int cpu = 0, __n = zpercpu_count(); cpu < __n; cpu++) 59 for (int cpu = 0, __n = zpercpu_count(); cpu < __n; cpu++) 530 T_PASS("%.2fM rounds per thread per second (atomic)", count / (zpercpu_count() * scale)); 545 T_PASS("%.2fM rounds per thread per second (pcpu)", count / (zpercpu_count() * scale));
|
| /xnu-11215/san/memory/ |
| H A D | kasan-classic.c | 525 for (uint32_t i = 1; i < zpercpu_count(); i++) { in kasan_alloc() 555 for (uint32_t i = 1; i < zpercpu_count(); i++) { in kasan_free()
|
| /xnu-11215/osfmk/kern/ |
| H A D | zalloc.h | 1246 __end_##it = zpercpu_get_cpu(ptr, zpercpu_count()); \ 1258 for (unsigned cpu = 0; cpu < zpercpu_count(); cpu++) 2616 extern unsigned zpercpu_count(void) __pure2;
|
| H A D | smr.c | 551 size = zpercpu_count() * sizeof(struct smr_pcpu); in __smr_domain_init() 565 pcpu = kalloc_type(struct smr_pcpu, zpercpu_count(), in smr_domain_create() 592 kfree_type(struct smr_pcpu, zpercpu_count(), smr->smr_pcpu); in smr_domain_free() 1549 .smrb_pending = zpercpu_count(), in smr_barrier() 1550 .smrb_count = zpercpu_count(), in smr_barrier()
|
| H A D | test_lock.c | 522 ctx.active = zpercpu_count() * 2; /* overcommit the system on purpose */ in smr_sleepable_stress_test()
|
| H A D | zalloc_internal.h | 704 size *= zpercpu_count(); in zone_scale_for_percpu()
|
| H A D | zalloc.c | 2050 chunk_len = zpercpu_count(); in zba_scan_bitmap_inline() 2867 zpercpu_count(void) in zpercpu_count() function 3147 for (size_t i = zpercpu_count(); --i > 0;) { in zalloc_validate_element() 3968 assert(pg_end == zpercpu_count()); in zcram_and_lock() 5572 if (pgz_slots < zpercpu_count() * 4) { in pgz_get_size() 5573 pgz_slots = zpercpu_count() * 4; in pgz_get_size() 8133 (zpercpu_count() * ZONE_WSS_UPDATE_PERIOD); in compute_zone_working_set_size() 9436 alloc_granule = PAGE_SIZE * zpercpu_count(); in zone_get_min_alloc_granule() 10544 zone_raise_reserve(zc_magazine_zone, (uint16_t)(2 * zpercpu_count())); in zone_init()
|
| H A D | btlog.c | 1389 *counter = (cpu + 1) * sample / zpercpu_count(); in btlog_create()
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | fbt_blacklist.c | 284 CLOSURE(zpercpu_count)
|
| /xnu-11215/libkern/os/ |
| H A D | refcnt.c | 781 for (int cpu = zpercpu_count(); cpu-- > 1;) { 1011 for (int cpu = zpercpu_count(); cpu-- > 1;) { in os_ref_count_t()
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_pageout.c | 5725 if (min_delayed_work_ctx_allocated < zpercpu_count()) { 5726 min_delayed_work_ctx_allocated = (uint16_t)zpercpu_count();
|
| H A D | vm_resident.c | 10037 info->size *= zpercpu_count(); in vm_page_diagnose_zone_stats()
|