00001 /** 00002 * @file daemon/opd_stats.h 00003 * Management of daemon statistics 00004 * 00005 * @remark Copyright 2002 OProfile authors 00006 * @remark Read the file COPYING 00007 * 00008 * @author John Levon 00009 * @author Philippe Elie 00010 */ 00011 00012 #ifndef OPD_STATS_H 00013 #define OPD_STATS_H 00014 00015 extern unsigned long opd_stats[]; 00016 00017 enum { OPD_SAMPLES, /**< nr. samples */ 00018 OPD_KERNEL, /**< nr. kernel samples */ 00019 OPD_PROCESS, /**< nr. userspace samples */ 00020 OPD_NO_CTX, /**< nr. samples lost due to not knowing if in the kernel or not */ 00021 OPD_LOST_KERNEL, /**< nr. kernel samples lost */ 00022 OPD_LOST_SAMPLEFILE, /**< nr samples for which sample file can't be opened */ 00023 OPD_LOST_NO_MAPPING, /**< nr samples lost due to no mapping */ 00024 OPD_DUMP_COUNT, /**< nr. of times buffer is read */ 00025 OPD_DANGLING_CODE, /**< nr. partial code notifications (buffer overflow */ 00026 OPD_NO_APP_KERNEL_SAMPLE, /**<nr. user ctx kernel samples dropped due to no app cookie available */ 00027 OPD_MAX_STATS /**< end of stats */ 00028 }; 00029 00030 void opd_print_stats(void); 00031 00032 #endif /* OPD_STATS_H */
1.6.1