00001 /** 00002 * @file opd_24_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_24_STATS_H 00013 #define OPD_24_STATS_H 00014 00015 extern unsigned long opd_24_stats[]; 00016 00017 enum { OPD_KERNEL, /**< nr kernel samples */ 00018 OPD_MODULE, /**< nr module samples */ 00019 OPD_LOST_MODULE, /**< nr samples in module for which modules can not be located */ 00020 OPD_LOST_PROCESS, /**< nr samples for which process info couldn't be accessed */ 00021 OPD_PROCESS, /**< nr userspace samples */ 00022 OPD_LOST_MAP_PROCESS, /**< nr samples for which map info couldn't be accessed */ 00023 OPD_LOST_SAMPLEFILE, /**< nr samples for which sample file can't be opened */ 00024 OPD_PROC_QUEUE_ACCESS, /**< nr accesses of proc queue */ 00025 OPD_PROC_QUEUE_DEPTH, /**< cumulative depth of proc queue accesses */ 00026 OPD_DUMP_COUNT, /**< nr of times buffer is read */ 00027 OPD_MAP_ARRAY_ACCESS, /**< nr accesses of map array */ 00028 OPD_MAP_ARRAY_DEPTH, /**< cumulative depth of map array accesses */ 00029 OPD_IMAGE_HASH_ACCESS, /**< nr opd_find_image() */ 00030 OPD_IMAGE_HASH_DEPTH, /**< cumulative depth of image search */ 00031 OPD_SAMPLES, /**< nr distinct samples */ 00032 OPD_NOTIFICATIONS, /**< nr notifications */ 00033 OPD_MAX_STATS /**< end of stats */ 00034 }; 00035 00036 /** opd_print_24_stats - print out latest statistics */ 00037 void opd_print_24_stats(void); 00038 00039 #endif /* OPD_24_STATS_H */
1.6.1