Print this page
XXXX adding PID information to netstat output


  45  *
  46  * unix:*:sfmmu_percpu_stat
  47  * This is stored as an array with one entry per cpu.  Each element is of type
  48  * struct sfmmu_percpu_stat.  The ks_ndata and ks_data_size fields are bogus.
  49  *
  50  * ufs directio:*:UFS DirectIO Stats
  51  * The structure definition used for these kstats (ufs_directio_kstats) is in a
  52  * C file (uts/common/fs/ufs/ufs_directio.c) rather than a header file, so it
  53  * isn't accessible.
  54  *
  55  * qlc:*:statistics
  56  * This is a third-party driver for which we don't have source.
  57  *
  58  * mm:*:phys_installed
  59  * This is stored as an array of uint64_t, with each pair of values being the
  60  * (address, size) of a memory segment.  The ks_ndata and ks_data_size fields
  61  * are both zero.
  62  *
  63  * sockfs:*:sock_unix_list
  64  * This is stored as an array with one entry per active socket.  Each element
  65  * is of type struct k_sockinfo.  The ks_ndata and ks_data_size fields are both
  66  * zero.
  67  *
  68  * Note that the ks_ndata and ks_data_size of many non-array raw kstats are
  69  * also incorrect.  The relevant assertions are therefore commented out in the
  70  * appropriate raw kstat read routines.
  71  */
  72 
  73 /* Kstat related includes */
  74 #include <libgen.h>
  75 #include <kstat.h>
  76 #include <sys/var.h>
  77 #include <sys/utsname.h>
  78 #include <sys/sysinfo.h>
  79 #include <sys/flock.h>
  80 #include <sys/dnlc.h>
  81 #include <nfs/nfs.h>
  82 #include <nfs/nfs_clnt.h>
  83 
  84 /* Ultra-specific kstat includes */
  85 #ifdef __sparc
  86 #include <vm/hat_sfmmu.h> /* from /usr/platform/sun4u/include */




  45  *
  46  * unix:*:sfmmu_percpu_stat
  47  * This is stored as an array with one entry per cpu.  Each element is of type
  48  * struct sfmmu_percpu_stat.  The ks_ndata and ks_data_size fields are bogus.
  49  *
  50  * ufs directio:*:UFS DirectIO Stats
  51  * The structure definition used for these kstats (ufs_directio_kstats) is in a
  52  * C file (uts/common/fs/ufs/ufs_directio.c) rather than a header file, so it
  53  * isn't accessible.
  54  *
  55  * qlc:*:statistics
  56  * This is a third-party driver for which we don't have source.
  57  *
  58  * mm:*:phys_installed
  59  * This is stored as an array of uint64_t, with each pair of values being the
  60  * (address, size) of a memory segment.  The ks_ndata and ks_data_size fields
  61  * are both zero.
  62  *
  63  * sockfs:*:sock_unix_list
  64  * This is stored as an array with one entry per active socket.  Each element
  65  * is of type struct sockinfo.  ks_ndata is the number of elements of that array
  66  * and ks_data_size is the total size of the array.
  67  *
  68  * Note that the ks_ndata and ks_data_size of many non-array raw kstats are
  69  * also incorrect.  The relevant assertions are therefore commented out in the
  70  * appropriate raw kstat read routines.
  71  */
  72 
  73 /* Kstat related includes */
  74 #include <libgen.h>
  75 #include <kstat.h>
  76 #include <sys/var.h>
  77 #include <sys/utsname.h>
  78 #include <sys/sysinfo.h>
  79 #include <sys/flock.h>
  80 #include <sys/dnlc.h>
  81 #include <nfs/nfs.h>
  82 #include <nfs/nfs_clnt.h>
  83 
  84 /* Ultra-specific kstat includes */
  85 #ifdef __sparc
  86 #include <vm/hat_sfmmu.h> /* from /usr/platform/sun4u/include */