Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 77) sorted by relevance

1234

/xnu-11215/iokit/Kernel/
H A DIOStatistics.cpp881 stats->loadTag = ke->loadTag; in copyKextStatistics()
882 ke->kext->getSizeInfo(&stats->loadSize, &stats->wiredSize); in copyKextStatistics()
884 stats->classes = ke->classes; in copyKextStatistics()
911 stats++; in copyMemoryStatistics()
929 stats++; in copyClassStatistics()
1006 stats++; in copyCounterStatistics()
1055 stats->dependentKexts = 0; in copyWorkLoopStatistics()
1057 stats->dependentKextLoadTags[stats->dependentKexts] = dependentNode->loadTag; in copyWorkLoopStatistics()
1058 stats->dependentKexts++; in copyWorkLoopStatistics()
1064 stats = (IOStatisticsWorkLoop*)((void*)((char*)stats + size)); in copyWorkLoopStatistics()
[all …]
/xnu-11215/tools/lldbmacros/
H A Dwaitq.py262 stats = kern.globals.g_waitq_stats[q]
263 diff = stats.waits - stats.wakeups
270 if (stats.last_wait[0]):
271 last_waitstr = GetSourceInformationForAddress(unsigned(stats.last_wait[0]))
272 if (stats.last_wakeup[0]):
273 last_wakestr = GetSourceInformationForAddress(unsigned(stats.last_wakeup[0]))
274 if (stats.last_failed_wakeup[0]):
280 if stats.last_wait[f]:
282 if stats.last_wakeup[f]:
284 if stats.last_failed_wakeup[f]:
[all …]
H A Dtaskinfo.py16 stats = task.t_suspend_stats
17 count = stats.tss_count
20 duration_sec = kern.GetNanotimeFromAbstime(stats.tss_duration) / 1e9
21 last_start_sec = kern.GetNanotimeFromAbstime(stats.tss_last_start - recent_time) / 1e9
22 last_end_sec = kern.GetNanotimeFromAbstime(stats.tss_last_end - recent_time) / 1e9
H A Dvm_pageout.py17 self.stats = kern.globals.vm_pageout_stats
18 self.num_stats = sizeof(self.stats) // sizeof(self.stats[0])
45 stat = self.stats[self.index]
60 stat = self.stats[self.index]
/xnu-11215/osfmk/prng/
H A Dentropy.c82 entropy_health_stats_t *stats; member
151 .stats = &entropy_health_rct_stats,
155 .stats = &entropy_health_apt_stats,
340 …t->stats->max_observation_count = MAX(t->stats->max_observation_count, (uint32_t)t->observation_co… in add_observation()
342 t->stats->failure_count += 1; in add_observation()
352 t->stats->reset_count += 1; in reset_test()
355 …t->stats->max_observation_count = MAX(t->stats->max_observation_count, (uint32_t)t->observation_co… in reset_test()
/xnu-11215/tests/
H A Dtask_suspend_stats.c100 …timebase_info_data_t timebase, uint64_t now, const char *name, task_suspend_stats_t _Nonnull stats) in log_stats() argument
102 uint64_t last_start_ago = (now - stats->tss_last_start) * timebase.numer / timebase.denom; in log_stats()
103 uint64_t last_end_ago = (now - stats->tss_last_end) * timebase.numer / timebase.denom; in log_stats()
104 …uint64_t last_duration = (stats->tss_last_end - stats->tss_last_start) * timebase.numer / timebase… in log_stats()
105 uint64_t total_duration = (stats->tss_duration) * timebase.numer / timebase.denom; in log_stats()
109 name, stats->tss_count, in log_stats()
221 struct task_suspend_stats_s stats; variable
223 get_stats(current_task(), &stats);
224 log_stats(timebase, mach_absolute_time(), "stats", &stats);
/xnu-11215/osfmk/kern/
H A Dlock_group.c200 lck_grp_stats_t *stats = &grp->lck_grp_stats; in lck_grp_init_flags() local
203 lck_grp_stat_enable(&stats->lgss_spin_held); in lck_grp_init_flags()
204 lck_grp_stat_enable(&stats->lgss_spin_miss); in lck_grp_init_flags()
206 lck_grp_stat_enable(&stats->lgss_ticket_held); in lck_grp_init_flags()
207 lck_grp_stat_enable(&stats->lgss_ticket_miss); in lck_grp_init_flags()
209 lck_grp_stat_enable(&stats->lgss_mtx_held); in lck_grp_init_flags()
210 lck_grp_stat_enable(&stats->lgss_mtx_direct_wait); in lck_grp_init_flags()
211 lck_grp_stat_enable(&stats->lgss_mtx_miss); in lck_grp_init_flags()
212 lck_grp_stat_enable(&stats->lgss_mtx_wait); in lck_grp_init_flags()
215 lck_grp_stat_enable(&stats->lgss_spin_spin); in lck_grp_init_flags()
[all …]
H A Dhost.c1032 struct sched_statistics stats; in get_sched_statistics() local
1040 stats = *PERCPU_GET_WITH_BASE(pcpu_base, sched_stats); in get_sched_statistics()
1044 out->ps_csw_count = stats.csw_count; in get_sched_statistics()
1045 out->ps_preempt_count = stats.preempt_count; in get_sched_statistics()
1046 out->ps_preempted_rt_count = stats.preempted_rt_count; in get_sched_statistics()
1047 out->ps_preempted_by_rt_count = stats.preempted_by_rt_count; in get_sched_statistics()
1048 out->ps_rt_sched_count = stats.rt_sched_count; in get_sched_statistics()
1049 out->ps_interrupt_count = stats.interrupt_count; in get_sched_statistics()
1050 out->ps_ipi_count = stats.ipi_count; in get_sched_statistics()
1051 out->ps_timer_pop_count = stats.timer_pop_count; in get_sched_statistics()
[all …]
H A Drecount.c291 const struct recount_usage *stats = &track->rt_usage; in recount_read_start() local
293 return stats; in recount_read_start()
303 recount_read_track(struct recount_usage *stats, in recount_read_track() argument
310 *stats = *vol_stats; in recount_read_track()
353 recount_topo_t to_topo, struct recount_usage *stats) in recount_rollup() argument
361 recount_usage_add(&stats[to_i], &tmp); in recount_rollup()
368 recount_topo_t to_topo, struct recount_usage *stats) in recount_rollup_unsafe() argument
374 recount_usage_add(&stats[to_i], &tracks[i].rt_usage); in recount_rollup_unsafe()
/xnu-11215/tools/kt-dump/
H A Dkt-dump.cpp191 } stats; member in image
215 stats.names_sz += strlen(name) + 1; in dump_types()
218 stats.sig_sz += strlen(sig) + 1; in dump_types()
221 stats.uniq_structs++; in dump_types()
275 stats.names_sz += strlen(name) + 1; in dump_types_var()
278 stats.sig_sz += strlen(sig_hdr) + 1; in dump_types_var()
281 stats.sig_sz += strlen(sig_type) + 1; in dump_types_var()
290 stats.uniq_structs_var++; in dump_types_var()
452 auto ucount = stats.uniq_structs; in dump()
462 auto ucount = stats.uniq_structs_var; in dump()
[all …]
/xnu-11215/bsd/skywalk/channel/
H A Dchannel_ring.c240 stats->crsu_number_of_syncs++; in kr_update_user_stats()
263 KR_EWMA(stats->crsu_bytes_per_sync_ma, in kr_update_user_stats()
265 stats->crsu_bytes_per_sync = bps; in kr_update_user_stats()
270 sps_ma = stats->crsu_slots_per_sync_ma; in kr_update_user_stats()
281 stats->crsu_min_slots_transferred = 0; in kr_update_user_stats()
282 stats->crsu_max_slots_transferred = 0; in kr_update_user_stats()
312 stats->crs_number_of_transfers++; in kr_update_stats()
333 KR_EWMA(stats->crs_bytes_per_second_ma, in kr_update_stats()
335 stats->crs_bytes_per_second = bps; in kr_update_stats()
349 stats->crs_min_slots_transferred = 0; in kr_update_stats()
[all …]
H A Dchannel_kern.c246 struct kern_channel_ring_stat_increment *stats) in kern_channel_increment_ring_stats() argument
248 kr_update_stats(kring, stats->kcrsi_slots_transferred, in kern_channel_increment_ring_stats()
249 stats->kcrsi_bytes_transferred); in kern_channel_increment_ring_stats()
254 struct ifnet *ifp, struct kern_channel_ring_stat_increment *stats) in kern_channel_increment_ring_net_stats() argument
257 os_atomic_add(&ifp->if_data.ifi_opackets, stats->kcrsi_slots_transferred, relaxed); in kern_channel_increment_ring_net_stats()
258 os_atomic_add(&ifp->if_data.ifi_obytes, stats->kcrsi_bytes_transferred, relaxed); in kern_channel_increment_ring_net_stats()
260 os_atomic_add(&ifp->if_data.ifi_ipackets, stats->kcrsi_slots_transferred, relaxed); in kern_channel_increment_ring_net_stats()
261 os_atomic_add(&ifp->if_data.ifi_ibytes, stats->kcrsi_bytes_transferred, relaxed); in kern_channel_increment_ring_net_stats()
268 kr_update_stats(kring, stats->kcrsi_slots_transferred, in kern_channel_increment_ring_net_stats()
269 stats->kcrsi_bytes_transferred); in kern_channel_increment_ring_net_stats()
/xnu-11215/iokit/IOKit/
H A DIOStatisticsPrivate.h219 static uint32_t copyGlobalStatistics(IOStatisticsGlobal *stats);
220 static uint32_t copyKextStatistics(IOStatisticsKext *stats);
221 static uint32_t copyMemoryStatistics(IOStatisticsMemory *stats);
222 static uint32_t copyClassStatistics(IOStatisticsClass *stats);
223 static uint32_t copyCounterStatistics(IOStatisticsCounter *stats);
229 static uint32_t copyUserClientStatistics(IOStatisticsUserClientHeader *stats, uint32_t loadTag);
/xnu-11215/bsd/kern/
H A Dstackshot.c424 stackshot_stats_t stats; variable
437 req->oldidx = sizeof(stats);
441 …stackshot_get_timing(&stats.ss_last_start, &stats.ss_last_end, &stats.ss_count, &stats.ss_duration…
443 return SYSCTL_OUT(req, &stats, MIN(sizeof(stats), req->oldlen));
H A Dkpi_mbuf.c1235 stats->mbufs = mbstat.m_mbufs; in mbuf_stats()
1237 stats->clfree = mbstat.m_clfree; in mbuf_stats()
1238 stats->drops = mbstat.m_drops; in mbuf_stats()
1239 stats->wait = mbstat.m_wait; in mbuf_stats()
1240 stats->drain = mbstat.m_drain; in mbuf_stats()
1241 __builtin_memcpy(stats->mtypes, mbstat.m_mtypes, sizeof(stats->mtypes)); in mbuf_stats()
1242 stats->mcfail = mbstat.m_mcfail; in mbuf_stats()
1243 stats->mpfail = mbstat.m_mpfail; in mbuf_stats()
1244 stats->msize = mbstat.m_msize; in mbuf_stats()
1247 stats->mlen = mbstat.m_mlen; in mbuf_stats()
[all …]
/xnu-11215/bsd/net/
H A Dif_ppp.h118 struct ppp_stats stats; member
123 struct ppp_comp_stats stats; member
H A Dppp_comp.h92 void (*comp_stat)(void *state, struct compstat *stats);
108 void (*decomp_stat)(void *state, struct compstat *stats);
H A Dif_stf.c751 struct ifnet_stat_increment_param stats; in in_stf_input() local
823 bzero(&stats, sizeof(stats)); in in_stf_input()
824 stats.packets_in = 1; in in_stf_input()
825 stats.bytes_in = mbuf_pkthdr_len(m); in in_stf_input()
827 ifnet_input(ifp, m, &stats); in in_stf_input()
H A Dif_redirect.c629 struct kern_channel_ring_stat_increment stats; in redirect_nx_sync_tx() local
636 bzero(&stats, sizeof(stats)); in redirect_nx_sync_tx()
665 stats.kcrsi_slots_transferred++; in redirect_nx_sync_tx()
666 stats.kcrsi_bytes_transferred += kern_packet_get_data_length(sph); in redirect_nx_sync_tx()
675 kern_channel_increment_ring_net_stats(tx_ring, ifp, &stats); in redirect_nx_sync_tx()
753 struct kern_channel_ring_stat_increment stats; in redirect_rx_cb() local
766 bzero(&stats, sizeof(stats)); in redirect_rx_cb()
789 stats.kcrsi_slots_transferred++; in redirect_rx_cb()
790 stats.kcrsi_bytes_transferred += kern_packet_get_data_length(ph); in redirect_rx_cb()
802 kern_channel_increment_ring_net_stats(rx_ring, rd->rd_ifp, &stats); in redirect_rx_cb()
/xnu-11215/bsd/netinet/
H A Dmptcp_usrreq.c758 struct mptcp_itf_stats *stats; in mptcp_getconninfo() local
760 stats = &mpte->mpte_itfstats[index]; in mptcp_getconninfo()
765 stats->mpis_txbytes; in mptcp_getconninfo()
767 stats->mpis_rxbytes; in mptcp_getconninfo()
770 stats->mpis_wifi_txbytes; in mptcp_getconninfo()
772 stats->mpis_wifi_rxbytes; in mptcp_getconninfo()
775 stats->mpis_wired_txbytes; in mptcp_getconninfo()
777 stats->mpis_wired_rxbytes; in mptcp_getconninfo()
780 stats->mpis_cell_txbytes; in mptcp_getconninfo()
782 stats->mpis_cell_rxbytes; in mptcp_getconninfo()
[all …]
/xnu-11215/bsd/skywalk/nexus/netif/
H A Dnx_netif.c3735 stats.nps_pkts != 0 && stats.nps_bytes != 0) {
3737 stats.nps_bytes);
3789 stats.nps_pkts != 0 && stats.nps_bytes != 0) {
3791 stats.nps_bytes);
3890 struct nexus_pkt_stats stats; local
3924 stats.nps_pkts != 0 && stats.nps_bytes != 0) {
3925 r->ckr_netif_mit_stats(r, stats.nps_pkts, stats.nps_bytes);
4430 stats->nq_num_xfers++;
4453 stats->nq_bytes_ps = bps;
4467 stats->nq_min_pkts = 0;
[all …]
/xnu-11215/bsd/net/classq/
H A Dclassq_sfb.h84 struct sfbbinstats stats[SFB_LEVELS][SFB_BINS]; member
91 struct sfbbinstats stats[SFB_LEVELS][SFB_BINS]; member
/xnu-11215/bsd/skywalk/nexus/kpipe/
H A Dnx_kpipe_loopback.c313 struct kern_channel_ring_stat_increment stats; in kplo_sync_tx() local
374 bzero(&stats, sizeof(stats)); in kplo_sync_tx()
427 stats.kcrsi_slots_transferred++; in kplo_sync_tx()
428 stats.kcrsi_bytes_transferred += dlen; in kplo_sync_tx()
448 kern_channel_increment_ring_stats(txkring, &stats); in kplo_sync_tx()
449 kern_channel_increment_ring_stats(rxkring, &stats); in kplo_sync_tx()
/xnu-11215/libkern/os/
H A Dlog.c1212 log_stats_get(log_stats_t *stats) in log_stats_get() argument
1214 if (!stats) { in log_stats_get()
1217 stats->total = counter_load(&oslog_p_total_msgcount); in log_stats_get()
1218 stats->saved = counter_load(&log_queue_cnt_received); in log_stats_get()
1219 stats->dropped = counter_load(&oslog_p_dropped_msgcount); in log_stats_get()
1220 stats->truncated = counter_load(&oslog_p_truncated_msgcount); in log_stats_get()
1221 stats->errors = counter_load(&oslog_p_error_count); in log_stats_get()
1222 stats->errors_kc = counter_load(&oslog_p_unresolved_kc_msgcount); in log_stats_get()
1223 stats->errors_fmt = counter_load(&oslog_p_fmt_invalid_msgcount); in log_stats_get()
1224 stats->errors_max_args = counter_load(&oslog_p_fmt_max_args_msgcount); in log_stats_get()
/xnu-11215/bsd/netkey/
H A Dkey_debug.c431 struct sastat *stats; local
441 stats = (__typeof__(stats))(p + 1);
444 stats[i].spi);

1234