| /xnu-8792.81.2/doc/ |
| H A D | recount.md | 3 Recount is a resource accounting subsystem in the kernel that tracks the CPU resources consumed by … 4 It supports attributing counts to a specific level of the CPU topology (per-CPU and per-CPU kind). 10 …, Recount tracks its counters per-CPU kind (e.g. performance or efficiency) for threads, per-CPU f… 44 …spects counters in an LLDB session and is generally useful for retrospective analysis of CPU usage. 45 … each metric as a column and then uses rows for the groupings, like per-CPU or per-CPU kind values. 49 - `recount thread <thread-ptr> [...]` prints a table of per-CPU kind counts for threads. 51 - `recount task <task-ptr> [...]` prints a table of per-CPU counts for tasks. 55 - `recount coalition <coalition-ptr>` prints a table of per-CPU kind counts for each coalition, not… 70 To count CPU resource usage, a `struct recount_usage` has the following fields: 74 - `ru_cycles`: the cycles run by a CPU with `CONFIG_PERVASIVE_CPI` [all …]
|
| H A D | sched_clutch_edge.md | 5 …CPU for latency sensitive workloads (eg. UI interactions, multimedia recording/playback) to starva… 7 …CPU accounting at the thread level incentivizes creating more threads on the system. Also in the w… 22 …ementation. The goal of this level is to provide low latency access to the CPU for high QoS classe… 39 …CPU in the recent past such that its behind the lower buckets in deadline order. Now, if a small b… 53 …CPU access for Above UI threads while supporting the use case of high priority timeshare threads c… 66 …g on behalf of a specific workload. The goal of this level is to share the CPU among various user … 70 …ued on all clusters on the platform. The clutch bucket group maintains the CPU utilization history… 75 …s an interactivity score based on the ratio of voluntary blocking time and CPU usage time for the … 82 * **Clutch Bucket Group CPU Time**: Maintains the CPU time used by all threads of this clutch bucke… 86 …ows for a fair sharing of CPU among thread groups based on their recent behavior. Since the algori… [all …]
|
| H A D | xnu_build_consolidation.md | 39 various CPU-specific parameters. 50 ### Performing CPU/Revision-specific checks at runtime 52 CPU and revision checks may be required at various places, although the focus here has been the app… 58 * On a subset of all of the CPU revisions. 71 type, CPU ID, revision(s), or a combination of these. 74 `MIDR_EL1` register against a CPU revision that is passed as a parameter to the macro, where applic… 108 * Similarly, deriving CPU physical IDs from the topology parser.
|
| H A D | sched_cond.md | 37 This results in precious CPU cycles being spent in (A) to wake the thread despite the fact that 40 …the thread will still yield (D), thus spending precious CPU cycles setting itself up to block only
|
| /xnu-8792.81.2/bsd/dev/dtrace/ |
| H A D | dtrace_glue.c | 434 (omni->cyo_online)(omni->cyo_arg, CPU, &cH, &cT); in _cyclic_add_omni() 470 (omni->cyo_offline)(omni->cyo_arg, CPU, oarg); in _cyclic_remove_omni() 964 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = uaddr; in dtrace_copycheck() 978 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = src; in dtrace_copyin() 1003 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = src; in dtrace_copyinstr() 1017 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = dst; in dtrace_copyout() 1039 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = dst; in dtrace_copyoutstr() 1088 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = uaddr; in dtrace_fuword8() 1106 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = uaddr; in dtrace_fuword16() 1124 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = uaddr; in dtrace_fuword32() [all …]
|
| H A D | dtrace.c | 517 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = addr; \ 566 &cpu_core[CPU->cpu_id].cpuc_dtrace_flags; \ 581 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = addr; \ 595 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = addr; \ 1133 volatile uint64_t *illval = &cpu_core[CPU->cpu_id].cpuc_dtrace_illval; in dtrace_canload_remains() 1335 flags = (volatile uint16_t *)&cpu_core[CPU->cpu_id].cpuc_dtrace_flags; in dtrace_strncmp() 1389 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = kaddr; in dtrace_istoxic() 1395 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = taddr; in dtrace_istoxic() 1479 flags = (volatile uint16_t *)&cpu_core[CPU->cpu_id].cpuc_dtrace_flags; in dtrace_bcmp() 1683 cpu_core[CPU->cpu_id].cpuc_dtrace_flags |= CPU_DTRACE_UPRIV; in dtrace_priv_proc_destructive() [all …]
|
| H A D | fasttrap.c | 1132 dtrace_cpu_t *cur, *cpu = CPU; in fasttrap_disable_callbacks()
|
| /xnu-8792.81.2/bsd/dev/arm64/ |
| H A D | fbt_arm.c | 118 if (0 == CPU->cpu_dtrace_invop_underway) { in fbt_invop() 119 CPU->cpu_dtrace_invop_underway = 1; /* Race not possible on in fbt_invop() 160 CPU->cpu_dtrace_caller = get_saved_state_lr(regs); in fbt_invop() 170 CPU->cpu_dtrace_caller = 0; in fbt_invop() 171 CPU->cpu_dtrace_invop_underway = 0; in fbt_invop()
|
| H A D | dtrace_isa.c | 114 if (pArg->cpu == CPU->cpu_id || pArg->cpu == DTRACE_CPUALL) { in xcRemote() 197 volatile uint16_t *flags = (volatile uint16_t *) &cpu_core[CPU->cpu_id].cpuc_dtrace_flags; in dtrace_getustack_common() 235 volatile uint16_t *flags = (volatile uint16_t *) &cpu_core[CPU->cpu_id].cpuc_dtrace_flags; in dtrace_getupcstack() 345 volatile uint16_t *flags = (volatile uint16_t *) &cpu_core[CPU->cpu_id].cpuc_dtrace_flags; in dtrace_getufpstack() 473 uintptr_t caller = CPU->cpu_dtrace_caller; in dtrace_getpcstack() 475 if ((on_intr = CPU_ON_INTR(CPU)) != 0) { in dtrace_getpcstack()
|
| H A D | dtrace_subr_arm.c | 120 rwp = &CPU->cpu_ft_lock; in dtrace_user_probe() 132 rwp = &CPU->cpu_ft_lock; in dtrace_user_probe()
|
| H A D | fasttrap_isa.c | 196 pid_mtx = &cpu_core[CPU->cpu_id].cpuc_pid_lock; 968 pid_mtx = &cpu_core[CPU->cpu_id].cpuc_pid_lock;
|
| /xnu-8792.81.2/bsd/dev/i386/ |
| H A D | dtrace_isa.c | 144 if ( pArg->cpu == CPU->cpu_id || pArg->cpu == DTRACE_CPUALL ) { in xcRemote() 282 cpu_core[CPU->cpu_id].cpuc_dtrace_illval = ndx; in dtrace_getvmreg() 443 (volatile uint16_t *)&cpu_core[CPU->cpu_id].cpuc_dtrace_flags; in dtrace_getustack_common() 526 volatile uint16_t *flags = (volatile uint16_t *) &cpu_core[CPU->cpu_id].cpuc_dtrace_flags; in dtrace_adjust_stack() 565 missing_tos = cpu_core[CPU->cpu_id].cpuc_missing_tos; in dtrace_adjust_stack() 594 (volatile uint16_t *)&cpu_core[CPU->cpu_id].cpuc_dtrace_flags; in dtrace_getupcstack() 719 (volatile uint16_t *)&cpu_core[CPU->cpu_id].cpuc_dtrace_flags; in dtrace_getufpstack() 835 uintptr_t caller = CPU->cpu_dtrace_caller; in dtrace_getpcstack() 838 if ((on_intr = CPU_ON_INTR(CPU)) != 0) in dtrace_getpcstack()
|
| H A D | dtrace_subr_x86.c | 139 rwp = &CPU->cpu_ft_lock; in dtrace_user_probe() 155 rwp = &CPU->cpu_ft_lock; in dtrace_user_probe()
|
| H A D | fbt_x86.c | 113 … CPU->cpu_dtrace_caller = *(uintptr_t *)(((uintptr_t)(regs->isf.rsp))+sizeof(uint64_t)); // 8(%rsp) in fbt_invop() 116 CPU->cpu_dtrace_caller = 0; in fbt_invop() 120 CPU->cpu_dtrace_caller = 0; in fbt_invop()
|
| H A D | fasttrap_isa.c | 685 pid_mtx = &cpu_core[CPU->cpu_id].cpuc_pid_lock; in fasttrap_return_common() 737 cpu_core[CPU->cpu_id].cpuc_missing_tos = pc; in fasttrap_return_common() 751 cpu_core[CPU->cpu_id].cpuc_missing_tos = 0; in fasttrap_return_common() 992 pid_mtx = &cpu_core[CPU->cpu_id].cpuc_pid_lock; in fasttrap_pid_probe32() 1556 pid_mtx = &cpu_core[CPU->cpu_id].cpuc_pid_lock; in fasttrap_pid_probe64()
|
| /xnu-8792.81.2/san/coverage/ |
| H A D | kcov-blacklist-x86_64 | 24 # sumac, x86, boostrap 2nd+ CPU
|
| /xnu-8792.81.2/bsd/sys/ |
| H A D | dtrace.h | 2608 (cpu_core[CPU->cpu_id].cpuc_dtrace_flags & (flag)) 2611 (cpu_core[CPU->cpu_id].cpuc_dtrace_flags |= (flag)) 2614 (cpu_core[CPU->cpu_id].cpuc_dtrace_flags &= ~(flag))
|
| H A D | dtrace_glue.h | 147 #define CPU (&(cpu_list[cpu_number()])) /* Pointer to current CPU */ macro
|
| /xnu-8792.81.2/iokit/DriverKit/ |
| H A D | IODMACommand.iig | 169 * @brief Perform CPU access to the DMA mapping.
|
| H A D | IOService.iig | 332 * consumption and maximize battery life by still allowing some level of CPU power management.
|
| /xnu-8792.81.2/ |
| H A D | README.md | 386 a. *CPU Characteristics* If the code you are guarding has specific 387 characterstics that will vary only based on the CPU architecture being
|
| /xnu-8792.81.2/osfmk/arm/pmap/ |
| H A D | pmap.c | 8430 #error CPU copy windows are not properly supported with both the PPL and incoherent IO
|