home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume4 / sco-crash / vars.c < prev   
Encoding:
C/C++ Source or Header  |  1989-02-03  |  1.3 KB  |  55 lines

  1. #include <sys/param.h>
  2. #include <sys/sysmacros.h>
  3. #include <sys/types.h>
  4. #include <sys/file.h>
  5. #include <sys/inode.h>
  6. #include <sys/page.h>
  7. #include <sys/seg.h>
  8. #include <sys/proc.h>
  9. #include <sys/text.h>
  10. #include <sys/mount.h>
  11. #include <sys/var.h>
  12. #include <a.out.h>
  13. #include "crash.h"
  14.  
  15. prvars ()
  16. {
  17.     printf        ("buffers      %3d\n",
  18.         v.v_buf);
  19.     printf        ("calls      %3d\n",
  20.         v.v_call);
  21.     printf        ("inodes      %3d\n",
  22.         v.v_inode);
  23.     printf        ("e_inodes  %3d\n",
  24.         v.ve_inode - (struct inode *) namelist[NM_INODE].xl_value);
  25.     printf        ("files      %3d\n",
  26.         v.v_file);
  27.     printf        ("e_files      %3d\n",
  28.         v.ve_file - (struct file *) namelist[NM_FILE].xl_value);
  29.     printf        ("mounts      %3d\n",
  30.         v.v_mount);
  31.     printf        ("e_mounts  %3d\n",
  32.         v.ve_mount - (struct mount *) namelist[NM_MOUNT].xl_value);
  33.     printf        ("procs      %3d\n",
  34.         v.v_proc);
  35.     printf        ("e_procs      %3d\n",
  36.         v.ve_proc - (struct proc *) namelist[NM_PROC].xl_value);
  37.     printf        ("texts      %3d\n",
  38.         v.v_text);
  39.     printf        ("e_texts      %3d\n",
  40.         v.ve_text - (struct text *) namelist[NM_TEXT].xl_value);
  41.     printf        ("clists      %3d\n",
  42.         v.v_clist);
  43.     printf        ("sabufs      %3d\n",
  44.         v.v_sabuf);
  45.     printf        ("maxproc      %3d\n",
  46.         v.v_maxup);
  47. /*
  48. swapmap      105
  49. */
  50.     printf        ("hashbuf      %3d\n",
  51.         v.v_hbuf);
  52.     printf        ("hashmask  %3d\n",
  53.         v.v_hmask);
  54. }
  55.