4acd860bbf9a418a722587c00af4aefd3f51bafb
[platform/upstream/oprofile.git] / daemon / liblegacy / opd_24_stats.h
1 /**
2  * @file opd_24_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_24_STATS_H
13 #define OPD_24_STATS_H
14
15 extern unsigned long opd_24_stats[];
16
17 enum {  OPD_KERNEL, /**< nr kernel samples */
18         OPD_MODULE, /**< nr module samples */
19         OPD_LOST_MODULE, /**< nr samples in module for which modules can not be located */
20         OPD_LOST_PROCESS, /**< nr samples for which process info couldn't be accessed */
21         OPD_PROCESS, /**< nr userspace samples */
22         OPD_LOST_MAP_PROCESS, /**< nr samples for which map info couldn't be accessed */
23         OPD_LOST_SAMPLEFILE, /**< nr samples for which sample file can't be opened */
24         OPD_PROC_QUEUE_ACCESS, /**< nr accesses of proc queue */
25         OPD_PROC_QUEUE_DEPTH, /**< cumulative depth of proc queue accesses */
26         OPD_DUMP_COUNT, /**< nr of times buffer is read */
27         OPD_MAP_ARRAY_ACCESS, /**< nr accesses of map array */
28         OPD_MAP_ARRAY_DEPTH, /**< cumulative depth of map array accesses */
29         OPD_IMAGE_HASH_ACCESS,  /**< nr opd_find_image() */
30         OPD_IMAGE_HASH_DEPTH,  /**< cumulative depth of image search */
31         OPD_SAMPLES, /**< nr distinct samples */
32         OPD_NOTIFICATIONS, /**< nr notifications */
33         OPD_MAX_STATS /**< end of stats */
34         };
35
36 /** opd_print_24_stats - print out latest statistics */
37 void opd_print_24_stats(void);
38
39 #endif /* OPD_24_STATS_H */