Lines Matching refs:mbstat

830  * Similar to mbstat structure, the mb_stat structure is protected by the
846 * They are mirrored in mbstat to support legacy applications (e.g. netstat).
847 * Unlike before, the kernel no longer relies on the contents of mbstat for
850 * With the exception of the mbstat.m_mtypes array (see below), all of the
853 struct mbstat mbstat;
856 (sizeof (mbstat.m_mtypes) / sizeof (mbstat.m_mtypes[0]))
861 * done in order to avoid writing to the global mbstat data structure which
862 * would cause false sharing. During sysctl request for kern.ipc.mbstat,
863 * the statistics across all CPUs will be converged into the mbstat.m_mtypes
865 * equal than MT_MAX would be done atomically to the mbstat; this slows down
890 atomic_add_16((int16_t *)&mbstat.m_mtypes[type], n); \
921 mbstat.m_mtypes[n] = mtc.cpu_mtypes[n];
932 return (SYSCTL_OUT(req, &mbstat, sizeof (mbstat)));
1244 * Initialize the legacy mbstat structure.
1246 bzero(&mbstat, sizeof (mbstat));
1247 mbstat.m_msize = m_maxsize(MC_MBUF);
1248 mbstat.m_mclbytes = m_maxsize(MC_CL);
1249 mbstat.m_minclsize = MINCLSIZE;
1250 mbstat.m_mlen = MLEN;
1251 mbstat.m_mhlen = MHLEN;
1252 mbstat.m_bigmclbytes = m_maxsize(MC_BIGCL);
1648 mbstat.m_clfree = (--m_infree(MC_CL)) + m_infree(MC_MBUF_CL);
1657 mbstat.m_bigclfree = (--m_infree(MC_BIGCL)) +
1809 mbstat.m_clfree = (++m_infree(MC_CL)) + m_infree(MC_MBUF_CL);
1812 mbstat.m_bigclfree = (++m_infree(MC_BIGCL)) +
1833 mbstat.m_bigclusters = m_total(MC_BIGCL);
1835 mbstat.m_mbufs = m_total(MC_MBUF);
1861 mbstat.m_bigclfree = (++m_infree(MC_BIGCL)) +
1873 mbstat.m_bigclusters = m_total(MC_BIGCL);
1875 mbstat.m_clusters = m_total(MC_CL);
1899 mbstat.m_bigclfree = (++m_infree(MC_BIGCL)) +
1970 mbstat.m_drops++;
2747 mbstat.m_bigclfree = ++m_infree(MC_BIGCL) +
2749 mbstat.m_bigclusters = ++m_total(MC_BIGCL);
2935 mbstat.m_bigclusters = m_total(MC_BIGCL);
2945 mbstat.m_mbufs = m_total(MC_MBUF);
2970 mbstat.m_clfree =
2972 mbstat.m_clusters = m_total(MC_CL);
3173 mbstat.m_drain++;
5945 mbstat.m_wait++;
5948 mbstat.m_wait++;
5981 mbstat.m_wait++;
5984 mbstat.m_wait++;
6747 int nmbtypes = sizeof (mbstat.m_mtypes) / sizeof (short);
6796 totmbufs += mbstat.m_mtypes[mp->mt_type];
6804 if (mbstat.m_mtypes[mp->mt_type] != 0) {
6807 mbstat.m_mtypes[mp->mt_type], mp->mt_name);
6813 if (!seen[i] && mbstat.m_mtypes[i] != 0) {
6815 "<mbuf type %d>\n", mbstat.m_mtypes[i], i);
6825 (unsigned int)(mbstat.m_clusters - m_clfree),
6826 (unsigned int)mbstat.m_clusters,
6827 (unsigned int)(mbstat.m_bigclusters - m_bigclfree),
6828 (unsigned int)mbstat.m_bigclusters);
6929 SYSCTL_PROC(_kern_ipc, KIPC_MBSTAT, mbstat,
6931 0, 0, mbstat_sysctl, "S,mbstat", "");