freebsd-nq/usr.bin/netstat
Robert Watson c8e6b6899a Modify "netstat -mb" to use libmemstat(3) when acting on a live system,
with a number of positive benefits:

- Start using UMA(9) statistics for mbufs and clusters, which avoids
  using the mbuf allocator statistics which suffer from races under
  load on SMP.  This should eliminate "negative" mbuf counts in
  netstat -mb.

- We are now able to track cached (free) mbufs and clusters and count
  it towards memory allocated by the network stack.

- We are now also able to track memory allocated to mbuf tags since
  libmemstat(3) can also query malloc(9).  We don't print this except
  as part of the total (for now - #if 0).

- We are now able to track mbuf/cluster/packet allocation failures,
  although they are not currently printed (#if 0).

- Don't print out sfbuf statistics when running on a kernel core, as
  currently that code is able only to query sysctl for statistics.

MFC after:	1 week
2005-07-18 08:34:15 +00:00
..
atalk.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
if.c Print newly exported pfsync statistics with netstat(8). 2005-07-14 22:42:35 +00:00
inet6.c Use the length modifier 'll' instead of 'q' to print long longs. 2004-07-28 16:03:13 +00:00
inet.c Silence a warning on systems without carp(4). 2005-04-12 08:47:04 +00:00
ipsec.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
ipx.c evise use of queue(9) macros for netipx when used from userspace: 2005-01-02 19:26:06 +00:00
main.c Print newly exported pfsync statistics with netstat(8). 2005-07-14 22:42:35 +00:00
Makefile Modify "netstat -mb" to use libmemstat(3) when acting on a live system, 2005-07-18 08:34:15 +00:00
mbuf.c Modify "netstat -mb" to use libmemstat(3) when acting on a live system, 2005-07-18 08:34:15 +00:00
mcast.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
mroute6.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
mroute.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
netgraph.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00
netstat.1 Bring in mbuma to replace mballoc. 2004-05-31 21:46:06 +00:00
netstat.h Print newly exported pfsync statistics with netstat(8). 2005-07-14 22:42:35 +00:00
route.c NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines 2005-05-13 16:31:11 +00:00
unix.c Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). 2004-07-26 20:18:11 +00:00