Home
last modified time | relevance | path

Searched refs:counters (Results 1 – 14 of 14) sorted by relevance

/xnu-11215/doc/observability/
H A Dcpu_counters.md3 The xnu subsystems that manage CPU performance counters.
7 CPU performance counters are hardware registers that count events of interest to efficient CPU exec…
9 The CPMU contains both fixed instructions and cycles counters, as well as configurable counters tha…
11 All counters in the UPMU are configurable.
16 2. In "sampling" mode, the counters are programmed to generate a Performance Monitor Interrupt (PMI…
22 …erformance Counter system is the oldest subsystem and still manages the configurable CPMU counters.
23 It can use PMIs from these counters to trigger kperf samples and counter values can be recorded in …
25 - Monotonic: The Monotonic system provides access to the fixed CPMU counters with limited support f…
34 - The Recount subsystem makes extensive use of the fixed CPMU counters to attribute CPU resources b…
H A Drecount.md17 By default, Recount tracks its counters per-CPU kind (e.g. performance or efficiency) for threads, …
51 The `recount` macro inspects counters in an LLDB session and is generally useful for retrospective …
59 - `-T` prints the task's active thread counters in additional tables.
66 - `-T` prints the processor's active thread counters in an additional table.
88 At context switch, `recount_switch_thread` captures the hardware counters with `recount_snapshot` i…
113 …on counters are not updated by threads switching off-CPU and are instead protected by the coalitio…
114 Reading the counters requires holding the lock and iterating the constituent tasks, grouping their …
118 The energy counters on ARM systems count a custom unit of energy that needs to be scaled to nanojou…
121 Unlike the other metrics, the energy counters are not sampled directly by Recount so the values can…
/xnu-11215/san/coverage/
H A Dkcov_ksancov.c256 ksancov_counters_t *counters = dev->counters; in trace_pc_guard_counter() local
259 if (counters->kc_hits[idx] < KSANCOV_MAX_HITS) { in trace_pc_guard_counter()
260 counters->kc_hits[idx]++; in trace_pc_guard_counter()
504 kmem_free(kernel_map, (uintptr_t)d->counters, d->sz); in free_dev()
572 if (!d->counters) { in ksancov_map()
575 addr = (uintptr_t)d->counters; in ksancov_map()
720 assert(d->counters == NULL); in ksancov_counters_alloc()
733 counters->kc_hdr.kh_magic = KSANCOV_COUNTERS_MAGIC; in ksancov_counters_alloc()
734 counters->kc_nedges = ksancov_edgemap->ke_nedges; in ksancov_counters_alloc()
735 os_atomic_init(&counters->kc_hdr.kh_enabled, 0); in ksancov_counters_alloc()
[all …]
H A Dkcov_ksancov_data.h104 ksancov_counters_t *counters; member
/xnu-11215/bsd/kern/
H A Dkern_kpc.c181 sysctl_kpc_get_counters(uint32_t counters, in sysctl_kpc_get_counters() argument
188 count = kpc_get_cpu_counters(counters & KPC_ALL_CPUS, in sysctl_kpc_get_counters()
189 counters, in sysctl_kpc_get_counters()
203 sysctl_kpc_get_shadow_counters(uint32_t counters, in sysctl_kpc_get_shadow_counters() argument
210 count = kpc_get_shadow_counters(counters & KPC_ALL_CPUS, in sysctl_kpc_get_shadow_counters()
211 counters, in sysctl_kpc_get_shadow_counters()
553 SYSCTL_PROC(_kpc, OID_AUTO, counters,
/xnu-11215/osfmk/arm/
H A Dmachine_routines_common.c339 perfcontrol_callout_counters_begin(uint64_t *counters) in perfcontrol_callout_counters_begin() argument
344 mt_fixed_counts(counters); in perfcontrol_callout_counters_begin()
438 uint64_t counters[MT_CORE_NFIXED]; in machine_switch_perfcontrol_context() local
439 bool ctrs_enabled = perfcontrol_callout_counters_begin(counters); in machine_switch_perfcontrol_context()
475 uint64_t counters[MT_CORE_NFIXED]; in machine_switch_perfcontrol_state_update() local
476 bool ctrs_enabled = perfcontrol_callout_counters_begin(counters); in machine_switch_perfcontrol_state_update()
528 uint64_t counters[MT_CORE_NFIXED]; in machine_thread_going_on_core() local
529 bool ctrs_enabled = perfcontrol_callout_counters_begin(counters); in machine_thread_going_on_core()
534 perfcontrol_callout_counters_end(counters, PERFCONTROL_CALLOUT_ON_CORE); in machine_thread_going_on_core()
559 uint64_t counters[MT_CORE_NFIXED]; in machine_thread_going_off_core() local
[all …]
/xnu-11215/san/tools/
H A Dksancov.h305 ksancov_counters_t *counters = (ksancov_counters_t *)buf; in ksancov_reset() local
306 bzero(counters->kc_hits, counters->kc_nedges); in ksancov_reset()
/xnu-11215/osfmk/x86_64/
H A Dmonotonic_x86_64.c53 #pragma mark core counters
/xnu-11215/libkdd/
H A DREADME.md76 to many subsystems. It includes data such as io stats, vm counters, process names/flags and syscall…
/xnu-11215/doc/lifecycle/
H A Dstartup.md188 Rank 2: sets up static percpu counters.
/xnu-11215/osfmk/arm64/
H A Dmonotonic_arm64.c70 #pragma mark core counters
/xnu-11215/bsd/net/
H A Dpfvar.h1670 pf_status.counters[x]++; \
1675 u_int64_t counters[PFRES_MAX]; member
H A Dpf_ioctl.c1774 bzero(pf_status.counters, sizeof(pf_status.counters)); in pfioctl()
/xnu-11215/makedefs/
H A DMakeInc.kernel315 # a way of retrieving these counters from LAST anyway, so there's no harm in just