operf_stats.h

Go to the documentation of this file.
00001 
00013 #include <string>
00014 
00015 #ifndef OPERF_STATS_H
00016 #define OPERF_STATS_H
00017 
00018 extern unsigned long operf_stats[];
00019 
00020 enum {  OPERF_SAMPLES, 
00021     OPERF_KERNEL, 
00022     OPERF_PROCESS, 
00023     OPERF_INVALID_CTX, 
00024     OPERF_LOST_KERNEL,  
00025     OPERF_LOST_SAMPLEFILE, 
00026     OPERF_LOST_NO_MAPPING, 
00027     OPERF_NO_APP_KERNEL_SAMPLE, 
00028     OPERF_NO_APP_USER_SAMPLE, 
00029     OPERF_BT_LOST_NO_MAPPING, 
00030     OPERF_LOST_INVALID_HYPERV_ADDR, 
00031     OPERF_RECORD_LOST_SAMPLE, 
00032     OPERF_MAX_STATS 
00033 };
00034 #define OPERF_INDEX_OF_FIRST_LOST_STAT 3
00035 
00036 /* Warn on lost samples if number of lost samples is greater the this fraction
00037  * of the total samples
00038 */
00039 #define OPERF_WARN_LOST_SAMPLES_THRESHOLD   0.0001
00040 
00041 void operf_print_stats(std::string sampledir, char * starttime, bool throttled);
00042 
00043 #endif /* OPERF_STATS_H */

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1