Searched refs:stats (Results 1 - 25 of 51) sorted by relevance

123

/darwin-on-arm/xnu/osfmk/profiling/i386/
H A Dprofile-md.c56 * Print out fractional digits for average # of hash searches in stats.
67 * Make most stats 64 bits, except for things like memory allocation.
94 * Print stats as an unsigned number.
101 * Move _gprof_write code that updates hash stats to _profile_update_stats.
113 * Add stats for {user,kernel,idle} mode in the kernel.
116 * Print unused stats in hex as well as decimal.
124 * Combine _profile_{vars,stats,md}; Allow more than one _profile_vars.
131 * Make allocations print like other stats.
140 * Print structure sizes and version number when printing stats.
157 * Write out stats unuse
913 _profile_print_stats(FILE *stream, const struct profile_stats *stats, const struct profile_profil *pinfo) argument
[all...]
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOStatistics.cpp852 uint32_t IOStatistics::copyGlobalStatistics(IOStatisticsGlobal *stats) argument
854 stats->kextCount = loadedKexts;
855 stats->classCount = registeredClasses;
856 stats->workloops = registeredWorkloops;
861 uint32_t IOStatistics::copyKextStatistics(IOStatisticsKext *stats) argument
868 stats->loadTag = ke->loadTag;
869 ke->kext->getSizeInfo(&stats->loadSize, &stats->wiredSize);
871 stats->classes = ke->classes;
875 stats
884 copyMemoryStatistics(IOStatisticsMemory *stats) argument
903 copyClassStatistics(IOStatisticsClass *stats) argument
921 copyCounterStatistics(IOStatisticsCounter *stats) argument
1024 copyWorkLoopStatistics(IOStatisticsWorkLoop *stats) argument
1052 copyUserClientStatistics(IOStatisticsUserClientHeader *stats, uint32_t loadTag) argument
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Dppp_deflate.c92 struct compstat stats; member in struct:deflate_state
113 static void z_comp_stats(void *state, struct compstat *stats);
210 bzero(&state->stats, sizeof(state->stats));
368 state->stats.comp_bytes += olen;
369 state->stats.comp_packets++;
375 state->stats.inc_bytes += orig_len;
376 state->stats.inc_packets++;
379 state->stats.unc_bytes += orig_len;
380 state->stats
[all...]
H A Dif_ppp.h118 struct ppp_stats stats; member in struct:ifpppstatsreq
123 struct ppp_comp_stats stats; member in struct:ifpppcstatsreq
H A Dppp_comp.h92 void (*comp_stat)(void *state, struct compstat *stats);
108 void (*decomp_stat)(void *state, struct compstat *stats);
H A Dntstat.c586 struct nstat_counts* stats = nstat_route_attach(rte); local
587 if (stats)
589 OSIncrementAtomic(&stats->nstat_connectattempts);
603 struct nstat_counts* stats = nstat_route_attach(rte); local
604 if (stats)
606 OSIncrementAtomic(&stats->nstat_connectsuccesses);
622 struct nstat_counts* stats = nstat_route_attach(rte); local
623 if (stats)
627 OSAddAtomic(bytes, &stats->nstat_txretransmit);
631 OSAddAtomic64((SInt64)packets, (SInt64*)&stats
649 struct nstat_counts* stats = nstat_route_attach(rte); local
680 struct nstat_counts* stats = nstat_route_attach(rte); local
[all...]
H A Dbsd_comp.c185 static void bsd_comp_stats(void *state, struct compstat *stats);
300 bsd_comp_stats(state, stats)
302 struct compstat *stats;
307 stats->unc_bytes = db->uncomp_bytes;
308 stats->unc_packets = db->uncomp_count;
309 stats->comp_bytes = db->comp_bytes;
310 stats->comp_packets = db->comp_count;
311 stats->inc_bytes = db->incomp_bytes;
312 stats->inc_packets = db->incomp_count;
313 stats
[all...]
H A Dif_stf.c751 struct ifnet_stat_increment_param stats; local
823 bzero(&stats, sizeof(stats));
824 stats.packets_in = 1;
825 stats.bytes_in = mbuf_pkthdr_len(m);
827 ifnet_input(ifp, m, &stats);
/darwin-on-arm/xnu/bsd/net/altq/
H A Daltq_fairq.c219 struct fairq_classstats stats; local
224 if ((unsigned)*nbytes < sizeof (stats))
232 error = fairq_get_class_stats(fif, a->qid, &stats);
237 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
238 sizeof (stats))) != 0)
241 *nbytes = sizeof (stats);
H A Daltq_priq.c184 struct priq_classstats stats; local
189 if ((unsigned)*nbytes < sizeof (stats))
197 error = priq_get_class_stats(pif, a->qid, &stats);
202 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
203 sizeof (stats))) != 0)
206 *nbytes = sizeof (stats);
H A Daltq_qfq.c155 struct qfq_classstats stats; local
160 if ((unsigned)*nbytes < sizeof (stats))
168 error = qfq_get_class_stats(qif, a->qid, &stats);
173 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
174 sizeof (stats))) != 0)
177 *nbytes = sizeof (stats);
H A Daltq_cbq.c187 class_stats_t stats; local
192 if ((unsigned)*nbytes < sizeof (stats))
200 error = cbq_get_class_stats(cbqp, a->qid, &stats);
205 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
206 sizeof (stats))) != 0)
209 *nbytes = sizeof (stats);
H A Daltq_hfsc.c205 struct hfsc_classstats stats; local
210 if ((unsigned)*nbytes < sizeof (stats))
218 error = hfsc_get_class_stats(hif, a->qid, &stats);
223 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
224 sizeof (stats))) != 0)
227 *nbytes = sizeof (stats);
/darwin-on-arm/xnu/osfmk/i386/
H A Dpmap_x86_common.c581 OSAddAtomic(+1, &pmap->stats.wired_count);
586 assert(pmap->stats.wired_count >= 1);
587 OSAddAtomic(-1, &pmap->stats.wired_count);
644 assert(pmap->stats.resident_count >= 1);
645 OSAddAtomic(-1, &pmap->stats.resident_count);
647 assert(pmap->stats.wired_count >= 1);
648 OSAddAtomic(-1, &pmap->stats.wired_count);
670 assert(pmap->stats.wired_count >= 1);
671 OSAddAtomic(-1, &pmap->stats.wired_count);
753 OSAddAtomic(+1, &pmap->stats
[all...]
H A Dmachine_routines.c134 kernel_pmap->stats.resident_count++;
135 if (kernel_pmap->stats.resident_count >
136 kernel_pmap->stats.resident_max) {
137 kernel_pmap->stats.resident_max =
138 kernel_pmap->stats.resident_count;
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dlibmicro.c593 " [-S] (print detailed stats)\n"
811 * update shared stats
816 * update shared stats
1340 * do raw stats
1372 crunch_stats(double *data, int count, stats_t *stats) argument
1396 stats->st_mean = mean;
1405 stats->st_median = dupdata[count/2];
1415 (void) fit_line(dupdata, data, count, &a, &stats->st_timecorr);
1422 stats->st_max = -1;
1423 stats
1498 stats_t stats; local
1594 remove_outliers(double *data, int count, stats_t *stats) argument
[all...]
H A Dlibmicro.h55 * stats we compute on data sets
58 typedef struct stats { struct
110 stats_t ba_raw; /* raw stats */
111 stats_t ba_corrected; /* corrected stats */
/darwin-on-arm/xnu/bsd/kern/
H A Dkpi_mbuf.c933 /* mbuf stats */
934 void mbuf_stats(struct mbuf_stat *stats) argument
936 stats->mbufs = mbstat.m_mbufs;
937 stats->clusters = mbstat.m_clusters;
938 stats->clfree = mbstat.m_clfree;
939 stats->drops = mbstat.m_drops;
940 stats->wait = mbstat.m_wait;
941 stats->drain = mbstat.m_drain;
942 __builtin_memcpy(stats->mtypes, mbstat.m_mtypes, sizeof(stats
[all...]
/darwin-on-arm/xnu/osfmk/profiling/
H A Dprofile-mk.c128 pv->stats.profil_buckets = monsize / sizeof(LHISTCOUNTER);
131 pv->stats.my_cpu = 0;
132 pv->stats.max_cpu = 1; /* initial number of cpus */
/darwin-on-arm/xnu/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);
/darwin-on-arm/xnu/bsd/net/classq/
H A Dclassq_sfb.h76 struct sfbbinstats stats[SFB_LEVELS][SFB_BINS]; member in struct:sfb_stats::sfbbins
90 struct sfbbinstats stats[SFB_LEVELS][SFB_BINS]; member in struct:sfb_bins
H A Dclassq_sfb.c104 (&(*(_sp)->sfb_bins)[_c].stats[_l][_n])
495 _CASSERT(sizeof ((*sp->sfb_bins)[0].stats) ==
496 sizeof (sps->binstats[0].stats));
498 bcopy(&(*sp->sfb_bins)[0].stats, &sps->binstats[0].stats,
499 sizeof (sps->binstats[0].stats));
500 bcopy(&(*sp->sfb_bins)[1].stats, &sps->binstats[1].stats,
501 sizeof (sps->binstats[1].stats));
/darwin-on-arm/xnu/osfmk/kern/
H A Dhost.c618 struct processor_sched_statistics *stats = &processor->processor_data.sched_stats; local
621 out->ps_csw_count = stats->csw_count;
622 out->ps_preempt_count = stats->preempt_count;
623 out->ps_preempted_rt_count = stats->preempted_rt_count;
624 out->ps_preempted_by_rt_count = stats->preempted_by_rt_count;
625 out->ps_rt_sched_count = stats->rt_sched_count;
626 out->ps_interrupt_count = stats->interrupt_count;
627 out->ps_ipi_count = stats->ipi_count;
628 out->ps_timer_pop_count = stats->timer_pop_count;
630 out->ps_idle_transitions = stats
[all...]
H A Dsched_prim.h291 struct runq_stats *stats,
305 #define SCHED_STATS_RUNQ_CHANGE(stats, old_count) \
308 sched_stats_handle_runq_change((stats), \
/darwin-on-arm/xnu/bsd/netat/
H A Ddrv_dep.c298 ifID->stats.rcv_packets++;
300 ifID->stats.rcv_bytes += m1->m_len;

Completed in 76 milliseconds

123