cvs commit: src/usr.bin/netstat main.c mbuf.c netstat.h

Robert Watson rwatson at FreeBSD.org
Sun Nov 13 14:06:02 GMT 2005


rwatson     2005-11-13 14:06:01 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/netstat      main.c mbuf.c netstat.h 
  Log:
  Modify netstat -mb to use libmemstat when accessing a core dump or live
  kernel memory and not using sysctl.  Previously, libmemstat was used
  only for the live kernel via sysctl paths.
  
  This results in netstat output becoming both more consistent between
  core dumps and the live kernel, and also more information in the core
  dump case than previously (i.e., mbuf cache information).
  
  Statistics relating to sfbufs still rely on a kvm descriptor as they
  are not currently exposed via libmemstat.  netstat -m operating on a
  core is still unable to print certain sfbuf stats available on the live
  kernel.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.80      +2 -12     src/usr.bin/netstat/main.c
  1.45      +51 -164   src/usr.bin/netstat/mbuf.c
  1.46      +1 -2      src/usr.bin/netstat/netstat.h


More information about the cvs-src mailing list