Home
last modified time | relevance | path

Searched refs:when (Results 1 – 25 of 60) sorted by relevance

123

/xnu-11215/bsd/dev/dtrace/
H A Ddtrace_glue.c274 cyc_time_t when; member
358 wrapTC->when = *when; in timer_call_add_cyclic()
360 nanoseconds_to_absolutetime( wrapTC->when.cyt_interval, (uint64_t *)&wrapTC->when.cyt_interval ); in timer_call_add_cyclic()
484 cyc_time_t when; member
504 if (wrapTC->when.cyt_interval == WAKEUP_REAPER) { in _cyclic_apply()
521 wrapTC->when = *when; in cyclic_add()
523 ASSERT(when->cyt_when == 0); in cyclic_add()
524 ASSERT(when->cyt_interval < WAKEUP_REAPER); in cyclic_add()
526 nanoseconds_to_absolutetime(wrapTC->when.cyt_interval, (uint64_t *)&wrapTC->when.cyt_interval); in cyclic_add()
554 wrapTC->when.cyt_interval = WAKEUP_REAPER; in cyclic_remove()
[all …]
H A Dprofile_prvd.c465 profile_online(void *arg, dtrace_cpu_t *cpu, cyc_handler_t *hdlr, cyc_time_t *when) in profile_online() argument
478 when->cyt_interval = prof->prof_interval; in profile_online()
479 when->cyt_when = dtrace_gethrtime() + when->cyt_interval; in profile_online()
481 pcpu->profc_expected = when->cyt_when; in profile_online()
482 pcpu->profc_interval = when->cyt_interval; in profile_online()
503 cyc_time_t when; in profile_enable() local
513 when.cyt_interval = prof->prof_interval; in profile_enable()
515 when.cyt_when = dtrace_gethrtime() + when.cyt_interval; in profile_enable()
517 when.cyt_when = 0; in profile_enable()
527 prof->prof_cyclic = cyclic_timer_add(&hdlr, &when); in profile_enable()
/xnu-11215/libkern/c++/
H A DOSObject.cpp166 OSObject::taggedRelease(const void *tag, const int when) const in taggedRelease()
204 if ((UInt16) actualCount < when) { in taggedRelease()
258 OSObject::release(int when) const in release()
260 taggedRelease(NULL, when); in release()
H A DOSBoolean.cpp94 OSBoolean::taggedRelease(__unused const void *tag, __unused const int when) const in taggedRelease()
H A DOSSymbol.cpp583 OSSymbol::taggedRelease(const void *tag, const int when) const in taggedRelease()
586 super::taggedRelease(tag, when); in taggedRelease()
/xnu-11215/doc/debugging/
H A Dtask_ref.md11 of the task this reference count is modified, for example when a thread is
12 created it increments the reference count and when it exits that count drops.
26 _leaks_ commonly occur. This happens when a reference is taken but never
35 Reference groups are a feature which keep track of statistics (and when
107 enabled when `rlog` has been set to a suitable value.
H A Dmacro_testing.md5 Be careful when touching common framework code. For larger changes, ask the Platform Triage team to
/xnu-11215/tools/lldbmacros/
H A Druff.toml5 # Allow autofix for all enabled rules (when `--fix`) is provided.
24 # Allow unused variables when underscore-prefixed.
/xnu-11215/doc/building/
H A Dxnu_build_consolidation.md3 Making xnu build more efficently when targetting several devices at once.
8 given targets are small (e.g. when they both support the same ISA), XNU has traditionally required …
9 separate builds in cases where the topology of the targets differ (for example, when they feature d…
33 * Just like other components, the kernel has its share of responsibility when it comes to setting u…
83 Some architectural features are optional, which means that, when disabled at compile-time, this may…
135 in different places across the kernel; for example, when applying tunables, various fixes, or enabl…
142 provide correctness (which happens, for example, when the code block at hand should not be executed…
H A Dbound_checks.md25 * when it is disabled, whether we should allow `__indexable` and
27 * when it is enabled, whether a trap should be a panic, or whether it should
29 * when it is set to panic, whether we should optimize for code size at the
36 check in that function will jump to that trap instruction when they fail. Debug
84 pointers, and new diagnostics for when a bounds check is likely (or guaranteed)
171 Once we have confidence that a file doesn't cause issues when -fbounds-safety is
/xnu-11215/config/
H A DKcov_disabled.exports2 # This export file is used when kcov runtime is disabled in kernel.
/xnu-11215/doc/vm/
H A Dmemorystatus.md8 The xnu memorystatus subsystem is responsible for recovering the system when we're running dangerou…
36 Contains the policy decisions around when to perform which action.
105 Unmanaged processes go into their active jetsam band when they take out transactions.
107 Daemons have different memory limits when they're inactive (in band 0) vs. active (above band 0). T…
124 The following configurable (EDT) thresholds determine which actions to take when `memorystatus_avai…
153 …sible for freezing processes under memory pressure and demoting processes when the freezer is full…
180 This snapshot is also reset when dasd reads it. Note that it has to be separate from the OSAnalytic…
185 …not. In the kernel, memorystatus calls `memorystatus_approaching_fg_band` when we're about to do a…
H A Dfreezer.md13 …licy.c` for details on specifically when the freezer thread runs. Generally speaking, we want the …
38when we tried to remove them we discovered they were masking an interesting bug: wired memory. IOS…
64 …t may only touch 20MB and thus the other 80MB stays on NAND. As a result, when the app is put back…
96 …ons which the user is likely to keep using and they are placed in band 30 when idle. Importantly, …
H A Dmemorystatus_kills.md3 The different types of memorystatus kills, when they're necessary, and how they're done.
65 …erties/browse), which was passed in via launchd, and registers a callback when the limit is exceed…
67 Note that memorystatus also registers the `phys_footprint` limit when it's a soft limit. In that ca…
80 On macOS, when the memory pressure level escalates above normal, the memorystatus notification thre…
120 …PPABLE` and `MEMORYSTATUS_KILL_SWAPPABLE_SUSPENDED` actions. These happen when the system is under…
/xnu-11215/libkern/libkern/c++/
H A DOSBoolean.h87 const int when) const APPLE_KEXT_OVERRIDE;
/xnu-11215/doc/allocators/
H A Dapi-basics.md16 `kmem_alloc` for allocations larger than a few pages (32KB when this
80 used when making a zone:
118 to denote when a data-looking type is actually a pointer.
135 when this isn't possible, a zone should be considered.
145 The following rules are expected when dealing with variable sized allocations:
195 <td>This should be used when the allocated type contains no kernel pointer only</td>
271 `kfree_data_counted_by` and `kfree_data_sized_by` are used when working with
/xnu-11215/iokit/DriverKit/
H A DOSAction.iig105 …* when called in a process other than the owner that is receiving the OSAction as a p…
120 * @brief Install a handler to be invoked when no other processes reference the action.
142 * There should be no outstanding invocations of the action when EndWait is called,
H A DIOWorkGroup.iig77 * release it in Invalidate() or when the IOWorkGroup is freed.
98 …() require the caller to pass a token. This token should be allocated by the caller, and freed when
H A DIODMACommand.iig83 * duration of the I/O, and completed when the I/O is finished.
179 * @param data Callers buffer to read into or write from. Pass NULL when
/xnu-11215/doc/arm/
H A Dsme.md84 these bits independently can be useful when software needs to interleave SME and
175 `TPIDR2_EL0`, since its contents are valid even when EL0 isn't actually using
181 Likewise, when context-switching back to a thread where the saved-state
229 long as possible, even when the guest traps to EL2. xnu will only spill the `ZA`
230 and `ZT0` state back to memory when one of two things happens:
/xnu-11215/doc/primitives/
H A Dstring-handling.md13 * Use `strbuf*` when you have the length for all the strings;
14 * use `strl*` when you have the length of _one_ string, and the other is
16 * use `str*` when you don't have the length for any of the strings, and they
231 Without -fbounds-safety, these all work the same, but when you enable it,
/xnu-11215/iokit/Kernel/
H A DIOServicePrivate.h149 virtual void taggedRelease(const void *tag, const int when) const APPLE_KEXT_OVERRIDE;
/xnu-11215/doc/scheduler/
H A Dsched_clutch_edge.md57 When the EDF algorithm selects a low QoS root bucket even when a higher QoS root bucket is runnable…
91when threads from that clutch bucket are pre-empted. The runqueues also rotate the clutch bucket t…
248 The `SCHED(steal_thread)` scheduler callout is invoked when the processor does not find any thread …
252when these clutch buckets are enqueued on a cluster which are asymmetric from the preferred cluste…
282 …r since this always tries to fill up the native clusters to capacity even when non-native clusters…
286 …y partition work among ncpu threads. The scheduler invokes this mechanism when a thread expires a …
/xnu-11215/
H A DREADME.md11 …rom other projects to avoid dependency cycles when building. These headers should be regularly syn…
93 Define architectures in your environment or when running a make command.
466 2. *New Features* If the code you are guarding, when taken together,
497 To load these macros automatically when attaching to the kernel, add the following to `~/.lldbinit`:
/xnu-11215/osfmk/mach/
H A Dresource_notify.defs46 /* The kernel sends the message, so we compile with KernelUser when

123