| /xnu-11215/libkern/os/ |
| H A D | log_mem.c | 135 block_size_level(logmem_t *lm, size_t amount) in block_size_level() argument 138 if (amount <= BLOCK_SIZE(l)) { in block_size_level() 148 size_t level = block_size_level(lm, amount); in block_locate() 177 assert(amount); in logmem_alloc_impl() 186 if (*amount == 0 || *amount > BLOCK_SIZE(lm->lm_max_order)) { in logmem_alloc_impl() 204 return &lm->lm_mem[block * *amount]; in logmem_alloc_impl() 210 return logmem_alloc_impl(lm, amount, true); in logmem_alloc_locked() 214 logmem_alloc(logmem_t *lm, size_t *amount) in logmem_alloc() argument 223 assert(amount > 0 && ((amount & (amount - 1)) == 0)); in logmem_free_impl() 243 logmem_free_impl(lm, addr, amount, true); in logmem_free_locked() [all …]
|
| H A D | log_queue.c | 141 log_queue_buffer_alloc(size_t amount) in log_queue_buffer_alloc() argument 143 return kalloc_data_tag(amount, Z_WAITOK_ZERO, VM_KERN_MEMORY_LOG); in log_queue_buffer_alloc() 147 log_queue_buffer_free(void *addr, size_t amount) in log_queue_buffer_free() argument 149 kfree_data(addr, amount); in log_queue_buffer_free()
|
| H A D | log_encode.c | 77 log_context_cursor_advance(os_log_context_t ctx, size_t amount) in log_context_cursor_advance() argument 79 ctx->ctx_content_off += amount; in log_context_cursor_advance()
|
| /xnu-11215/osfmk/arm/ |
| H A D | counter.c | 38 counter_add(scalable_counter_t *counter, uint64_t amount) in counter_add() argument 40 os_atomic_add(zpercpu_get(*counter), amount, relaxed); in counter_add() 64 counter_add_preemption_disabled(scalable_counter_t *counter, uint64_t amount) in counter_add_preemption_disabled() argument 66 counter_add(counter, amount); in counter_add_preemption_disabled()
|
| /xnu-11215/osfmk/x86_64/ |
| H A D | counter.c | 65 counter_add(scalable_counter_t *counter, uint64_t amount) in counter_add() argument 68 (*zpercpu_get(*counter)) += amount; in counter_add() 92 counter_add_preemption_disabled(scalable_counter_t *counter, uint64_t amount) in counter_add_preemption_disabled() argument 94 (*zpercpu_get(*counter)) += amount; in counter_add_preemption_disabled()
|
| /xnu-11215/libkern/gen/ |
| H A D | OSAtomicOperations.c | 99 OSAddAtomic8(SInt32 amount, volatile SInt8 *address) in OSAddAtomic8() argument 101 return os_atomic_add_orig(address, (SInt8)amount, relaxed); in OSAddAtomic8() 105 OSAddAtomic16(SInt32 amount, volatile SInt16 *address) in OSAddAtomic16() argument 107 return os_atomic_add_orig(address, (SInt16)amount, relaxed); in OSAddAtomic16() 112 OSAddAtomic(SInt32 amount, volatile SInt32 *address) in OSAddAtomic() argument 115 return os_atomic_add_orig(address, amount, relaxed); in OSAddAtomic() 120 OSAddAtomic64(SInt64 amount, volatile SInt64 *address) in OSAddAtomic64() argument 125 return os_atomic_add_orig(aligned_address, amount, relaxed); in OSAddAtomic64()
|
| /xnu-11215/tests/counter/ |
| H A D | counter.c | 24 sysctl_write(const char* name, int64_t amount) in sysctl_write() argument 27 result = sysctlbyname(name, NULL, NULL, &amount, sizeof(int64_t)); in sysctl_write() 32 scalable_counter_add(int64_t amount) in scalable_counter_add() argument 34 sysctl_write("kern.scalable_counter_test_add", amount); in scalable_counter_add() 38 static_scalable_counter_add(int64_t amount) in static_scalable_counter_add() argument 40 sysctl_write("kern.static_scalable_counter_test_add", amount); in static_scalable_counter_add()
|
| /xnu-11215/osfmk/kern/ |
| H A D | counter.h | 151 extern void counter_add(struct generic_counter_t *, uint64_t amount); 167 extern void counter_add_preemption_disabled(struct generic_counter_t *, uint64_t amount); 206 extern void counter_add(counter_t *, uint64_t amount); \ 215 extern void counter_add_preemption_disabled(counter_t *, uint64_t amount); \
|
| H A D | counter_common.c | 107 counter_add(atomic_counter_t *counter, uint64_t amount) in counter_add() argument 109 os_atomic_add(counter, amount, relaxed); in counter_add() 128 counter_add_preemption_disabled(atomic_counter_t *counter, uint64_t amount) in counter_add_preemption_disabled() argument 130 counter_add(counter, amount); in counter_add_preemption_disabled()
|
| H A D | ledger.h | 223 ledger_amount_t amount); 225 ledger_amount_t amount); 227 ledger_amount_t amount); 229 ledger_amount_t amount); 231 int entry, ledger_amount_t amount); 233 int entry, ledger_amount_t amount);
|
| H A D | ledger.c | 1144 if (amount == 0) { in ledger_credit_thread() 1150 old = OSAddAtomic64(amount, &les->les_credit); in ledger_credit_thread() 1151 new = old + amount; in ledger_credit_thread() 1155 old = OSAddAtomic64(amount, &le->le_credit); in ledger_credit_thread() 1156 new = old + amount; in ledger_credit_thread() 1816 if (amount == 0) { in ledger_debit_thread() 1823 new = old - amount; in ledger_debit_thread() 1829 old = OSAddAtomic64(-amount, &le->le_credit); in ledger_debit_thread() 1830 new = old - amount; in ledger_debit_thread() 1832 old = OSAddAtomic64(amount, &le->le_debit); in ledger_debit_thread() [all …]
|
| /xnu-11215/tests/ |
| H A D | proc_rlimit.c | 100 change_rlimits(int limit_type, rlim_t amount, int action) in change_rlimits() argument 119 if (newlim.rlim_cur + amount > newlim.rlim_max) { in change_rlimits() 123 newlim.rlim_cur += amount; in change_rlimits() 128 newlim.rlim_cur -= amount; in change_rlimits() 137 newlim.rlim_max += amount; in change_rlimits() 146 newlim.rlim_max -= amount; in change_rlimits()
|
| /xnu-11215/bsd/kern/ |
| H A D | subr_log_stream.c | 214 blocks_count(size_t amount) in blocks_count() argument 216 return amount >> LOG_BLK_EXP; in blocks_count() 220 blocks_needed(size_t amount) in blocks_needed() argument 222 if (amount % LOG_BLK_SIZE == 0) { in blocks_needed() 223 return blocks_count(amount); in blocks_needed() 225 return blocks_count(amount) + 1; in blocks_needed() 261 log_stream_reserve(log_stream_t *ls, size_t amount) in log_stream_reserve() argument 264 assert(amount > 0 && amount <= ls->ls_blk_count); in log_stream_reserve() 269 .lst_size = amount, in log_stream_reserve() 712 log_cache_consume(log_cache_t *lc, size_t amount) in log_cache_consume() argument [all …]
|
| H A D | kpi_mbuf.c | 501 mbuf_adjustlen(mbuf_t m, int amount) in mbuf_adjustlen() argument 504 if (amount > 0) { in mbuf_adjustlen() 508 if ((size_t)(amount + used) > mbuf_maxlen(m)) { in mbuf_adjustlen() 511 } else if (-amount > m->m_len) { in mbuf_adjustlen() 515 m->m_len += amount; in mbuf_adjustlen() 769 mbuf_pkthdr_adjustlen(mbuf_t mbuf, int amount) in mbuf_pkthdr_adjustlen() argument 771 mbuf->m_pkthdr.len += amount; in mbuf_pkthdr_adjustlen()
|
| /xnu-11215/libkern/libkern/ |
| H A D | OSAtomic.h | 290 SInt32 amount, 309 SInt32 amount, 327 SInt32 amount,
|
| /xnu-11215/doc/observability/ |
| H A D | mt_stackshot.md | 52 such as the amount of time spent waiting for the queue and the number of tasks / 79 `stackshot_latency_cpu` struct. This includes the total amount of buffer space 80 used and the amount of buffer space allocated from other clusters. 94 a good chunk size. The amount of memory added to the freelist is reported by
|
| /xnu-11215/iokit/DriverKit/ |
| H A D | IOEventLink.iig | 133 …* @param signalsConsumed When the calling thread wakes up, the amount of signals consumed … 142 …* @param signalsConsumed When the calling thread wakes up, the amount of signals consumed … 153 …* @param signalsConsumed When the calling thread wakes up, the amount of signals consumed …
|
| /xnu-11215/doc/vm/ |
| H A D | memorystatus_notify.md | 41 The VM monitors the amount of "available memory" , which comprises the following: 97 Conversely, vm_pressure attempts to maintain the amount of memory available to
|
| H A D | freezer.md | 26 …al limit on the amount of shared memory that can be in the freezer. `memorystatus_freeze_shared_mb…
|
| /xnu-11215/osfmk/arm64/sptm/pmap/ |
| H A D | pmap_data.c | 1908 pmap_ledger_credit(pmap_t pmap, int entry, ledger_amount_t amount) in pmap_ledger_credit() argument 1912 return ledger_credit(pmap->ledger, entry, amount); in pmap_ledger_credit() 1926 pmap_ledger_debit(pmap_t pmap, int entry, ledger_amount_t amount) in pmap_ledger_debit() argument 1930 return ledger_debit(pmap->ledger, entry, amount); in pmap_ledger_debit()
|
| /xnu-11215/bsd/sys/ |
| H A D | kpi_mbuf.h | 797 extern errno_t mbuf_adjustlen(mbuf_t mbuf, int amount) 1045 extern void mbuf_pkthdr_adjustlen(mbuf_t mbuf, int amount)
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_vnops.c | 2065 off_t amount; in vnode_readable_data_count() local 2066 amount = vp->v_un.vu_ubcinfo->ui_size - current_offset; in vnode_readable_data_count() 2067 if (amount > INT64_MAX) { in vnode_readable_data_count() 2069 } else if (amount < INT64_MIN) { in vnode_readable_data_count() 2072 return (int64_t)amount; in vnode_readable_data_count()
|
| /xnu-11215/osfmk/arm/pmap/ |
| H A D | pmap_data.c | 3233 pmap_ledger_credit(pmap_t pmap, int entry, ledger_amount_t amount) in pmap_ledger_credit() argument 3246 return ledger_credit_nocheck(pmap->ledger, entry, amount); in pmap_ledger_credit() 3248 return ledger_credit(pmap->ledger, entry, amount); in pmap_ledger_credit() 3267 pmap_ledger_debit(pmap_t pmap, int entry, ledger_amount_t amount) in pmap_ledger_debit() argument 3280 return ledger_debit_nocheck(pmap->ledger, entry, amount); in pmap_ledger_debit() 3282 return ledger_debit(pmap->ledger, entry, amount); in pmap_ledger_debit()
|
| /xnu-11215/tools/tests/perf_index/ |
| H A D | README | 18 size argument to find a value that will complete in a reasonable amount of time.
|
| /xnu-11215/doc/scheduler/ |
| H A D | sched_clutch_edge.md | 81 * **Clutch Bucket Group Blocked Time**: Maintains the amount of time no threads were runnable for t… 82 * **Clutch Bucket Group Pending Time**: Maintains the amount of time threads were pending execution… 222 …The metric has its roots in queueing delay algorithms and calculates the amount of time it would t… 228 … execution latency of threads at a particular QoS. This value tracks the amount of work threads at…
|