Home | History | Annotate | Download | only in daemon
      1 /**
      2  * @file daemon/opd_stats.h
      3  * Management of daemon statistics
      4  *
      5  * @remark Copyright 2002 OProfile authors
      6  * @remark Read the file COPYING
      7  *
      8  * @author John Levon
      9  * @author Philippe Elie
     10  */
     11 
     12 #ifndef OPD_STATS_H
     13 #define OPD_STATS_H
     14 
     15 extern unsigned long opd_stats[];
     16 
     17 enum {	OPD_SAMPLES, /**< nr. samples */
     18 	OPD_KERNEL, /**< nr. kernel samples */
     19 	OPD_PROCESS, /**< nr. userspace samples */
     20 	OPD_NO_CTX, /**< nr. samples lost due to not knowing if in the kernel or not */
     21 	OPD_LOST_KERNEL,  /**< nr. kernel samples lost */
     22 	OPD_LOST_SAMPLEFILE, /**< nr samples for which sample file can't be opened */
     23 	OPD_LOST_NO_MAPPING, /**< nr samples lost due to no mapping */
     24 	OPD_DUMP_COUNT, /**< nr. of times buffer is read */
     25 	OPD_DANGLING_CODE, /**< nr. partial code notifications (buffer overflow */
     26 	OPD_MAX_STATS /**< end of stats */
     27 };
     28 
     29 void opd_print_stats(void);
     30 
     31 #endif /* OPD_STATS_H */
     32