Searched refs:mbstat (Results 1 – 5 of 5) sorted by relevance
| /xnu-12377.41.6/bsd/kern/ |
| H A D | kpi_mbuf.c | 1394 stats->mbufs = mbstat.m_mbufs; in mbuf_stats() 1395 stats->clusters = mbstat.m_clusters; in mbuf_stats() 1396 stats->clfree = mbstat.m_clfree; in mbuf_stats() 1397 stats->drops = mbstat.m_drops; in mbuf_stats() 1398 stats->wait = mbstat.m_wait; in mbuf_stats() 1399 stats->drain = mbstat.m_drain; in mbuf_stats() 1400 __builtin_memcpy(stats->mtypes, mbstat.m_mtypes, sizeof(stats->mtypes)); in mbuf_stats() 1401 stats->mcfail = mbstat.m_mcfail; in mbuf_stats() 1402 stats->mpfail = mbstat.m_mpfail; in mbuf_stats() 1403 stats->msize = mbstat.m_msize; in mbuf_stats() [all …]
|
| H A D | uipc_mbuf_mcache.c | 1304 mbstat.m_clfree = (--m_infree(MC_CL)) + m_infree(MC_MBUF_CL); in slab_alloc() 1312 mbstat.m_bigclfree = (--m_infree(MC_BIGCL)) + in slab_alloc() 1483 mbstat.m_clfree = (++m_infree(MC_CL)) + m_infree(MC_MBUF_CL); in slab_free() 1486 mbstat.m_bigclfree = (++m_infree(MC_BIGCL)) + in slab_free() 1514 mbstat.m_mbufs = m_total(MC_MBUF); in slab_free() 1531 mbstat.m_clusters = m_total(MC_CL); in slab_free() 1549 mbstat.m_bigclusters = m_total(MC_BIGCL); in slab_free() 1581 mbstat.m_bigclusters = m_total(MC_BIGCL); in slab_free() 1582 mbstat.m_bigclfree = m_infree(MC_BIGCL) + in slab_free() 1666 mbstat.m_drops++; in mbuf_slab_alloc() [all …]
|
| H A D | uipc_mbuf.c | 445 struct mbstat mbstat; variable 448 (sizeof (mbstat.m_mtypes) / sizeof (mbstat.m_mtypes[0])) 550 mbstat.m_mtypes[n] = mtc.cpu_mtypes[n]; in mbuf_mtypes_sync() 609 mbstat.m_mbufs = m_total(MC_MBUF); in mbuf_stat_sync() 610 mbstat.m_clusters = m_total(MC_CL); in mbuf_stat_sync() 611 mbstat.m_clfree = m_infree(MC_CL) + m_infree(MC_MBUF_CL); in mbuf_stat_sync() 612 mbstat.m_drops = drops; in mbuf_stat_sync() 613 mbstat.m_bigclusters = m_total(MC_BIGCL); in mbuf_stat_sync() 614 mbstat.m_bigclfree = m_infree(MC_BIGCL) + m_infree(MC_MBUF_BIGCL); in mbuf_stat_sync() 628 return SYSCTL_OUT(req, &mbstat, sizeof(mbstat)); [all …]
|
| /xnu-12377.41.6/tests/ |
| H A D | ipsec.m | 406 struct mbstat mbstat; 407 size_t len_mbstat = sizeof(struct mbstat); 409 …; T_ASSERT_POSIX_SUCCESS(sysctlbyname("kern.ipc.mbstat", &mbstat, &len_mbstat, NULL, 0), "kern.ipc… 415 unsigned long newmax = newbufk * (1024 + mbstat.m_msize / 2);
|
| /xnu-12377.41.6/bsd/sys/ |
| H A D | mbuf.h | 1250 struct mbstat { struct 1447 extern struct mbstat mbstat; /* statistics */ 2003 (sizeof (mbstat.m_mtypes) / sizeof (mbstat.m_mtypes[0])) 2010 os_atomic_add((int16_t *)&mbstat.m_mtypes[type], n, relaxed); \
|