1*4882a593Smuzhiyun /** 2*4882a593Smuzhiyun * @file oprofile_stats.h 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * @remark Copyright 2002 OProfile authors 5*4882a593Smuzhiyun * @remark Read the file COPYING 6*4882a593Smuzhiyun * 7*4882a593Smuzhiyun * @author John Levon 8*4882a593Smuzhiyun */ 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun #ifndef OPROFILE_STATS_H 11*4882a593Smuzhiyun #define OPROFILE_STATS_H 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun #include <linux/atomic.h> 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun struct oprofile_stat_struct { 16*4882a593Smuzhiyun atomic_t sample_lost_no_mm; 17*4882a593Smuzhiyun atomic_t sample_lost_no_mapping; 18*4882a593Smuzhiyun atomic_t bt_lost_no_mapping; 19*4882a593Smuzhiyun atomic_t event_lost_overflow; 20*4882a593Smuzhiyun atomic_t multiplex_counter; 21*4882a593Smuzhiyun }; 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun extern struct oprofile_stat_struct oprofile_stats; 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun /* reset all stats to zero */ 26*4882a593Smuzhiyun void oprofile_reset_stats(void); 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun struct dentry; 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun /* create the stats/ dir */ 31*4882a593Smuzhiyun void oprofile_create_stats_files(struct dentry *root); 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun #endif /* OPROFILE_STATS_H */ 34