From b0679dd58fe2c84b3f163e8be03c08ca4837e7db Mon Sep 17 00:00:00 2001 From: silby Date: Sun, 28 Dec 2003 08:59:41 +0000 Subject: [PATCH] Teach netstat about the new sendfile statistics. --- usr.bin/netstat/mbuf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c index 3c0fda786a53..8fb657c0f10c 100644 --- a/usr.bin/netstat/mbuf.c +++ b/usr.bin/netstat/mbuf.c @@ -351,6 +351,10 @@ mbpr(u_long mbaddr, u_long mbtaddr __unused, u_long nmbcaddr, u_long nmbufaddr, totspace[1] / 1024); printf("%lu requests for memory denied\n", mbstat->m_drops); printf("%lu requests for memory delayed\n", mbstat->m_wait); + printf("%lu requests for sfbufs denied\n", mbstat->sf_allocfail); + printf("%lu requests for sfbufs delayed\n", mbstat->sf_allocwait); + printf("%lu requests for I/O initiated by sendfile\n", + mbstat->sf_iocnt); printf("%lu calls to protocol drain routines\n", mbstat->m_drain); err: