root/include/linux/kernel_stat.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _LINUX_KERNEL_STAT_H
   2 #define _LINUX_KERNEL_STAT_H
   3 
   4 /*
   5  * 'kernel_stat.h' contains the definitions needed for doing
   6  * some kernel statistics (cpu usage, context switches ...),
   7  * used by rstatd/perfmeter
   8  */
   9 
  10 #define DK_NDRIVE 4
  11 
  12 struct kernel_stat {
  13         unsigned int cpu_user, cpu_nice, cpu_system;
  14         unsigned int dk_drive[DK_NDRIVE];
  15         unsigned int pgpgin, pgpgout;
  16         unsigned int pswpin, pswpout;
  17         unsigned int interrupts[16];
  18         unsigned int ipackets, opackets;
  19         unsigned int ierrors, oerrors;
  20         unsigned int collisions;
  21         unsigned int context_swtch;
  22 };
  23 
  24 extern struct kernel_stat kstat;
  25 
  26 #endif /* _LINUX_KERNEL_STAT_H */

/* [previous][next][first][last][top][bottom][index][help] */