summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2003-12-28 08:59:41 +0000
committersilby <silby@FreeBSD.org>2003-12-28 08:59:41 +0000
commitb0679dd58fe2c84b3f163e8be03c08ca4837e7db (patch)
tree64ab082bbfbc322908b9d391a071961c3cf38810 /usr.bin/netstat
parenta7d8091ae5d3864e9488083f2d01661c85cae3b1 (diff)
downloadFreeBSD-src-b0679dd58fe2c84b3f163e8be03c08ca4837e7db.zip
FreeBSD-src-b0679dd58fe2c84b3f163e8be03c08ca4837e7db.tar.gz
Teach netstat about the new sendfile statistics.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/mbuf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c
index 3c0fda7..8fb657c 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:
OpenPOWER on IntegriCloud