00001 #ifndef _LINUX_KERNEL_STAT_H 00002 #define _LINUX_KERNEL_STAT_H 00003 00004 /** 00005 * 00006 00007 * 'kernel_stat.h' contains the definitions needed for doing 00008 * some kernel statistics (cpu usage, context switches ...), 00009 * used by rstatd/perfmeter 00010 00011 00012 */ 00013 00014 #define DK_NDRIVE 4 00015 00016 struct kernel_stat { 00017 unsigned int cpu_user, cpu_nice, cpu_system; 00018 unsigned int dk_drive[DK_NDRIVE]; 00019 unsigned int pgpgin, pgpgout; 00020 unsigned int pswpin, pswpout; 00021 unsigned int interrupts; 00022 unsigned int ipackets, opackets; 00023 unsigned int ierrors, oerrors; 00024 unsigned int collisions; 00025 unsigned int context_swtch; 00026 }; 00027 00028 extern struct kernel_stat kstat; 00029 00030 #endif // _LINUX_KERNEL_STAT_H
1.4.6-5