oprofile_stats.h 669 B

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