oprofile_stats.h 650 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 <linux/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. atomic_t multiplex_counter;
  18. };
  19. extern struct oprofile_stat_struct oprofile_stats;
  20. /* reset all stats to zero */
  21. void oprofile_reset_stats(void);
  22. struct dentry;
  23. /* create the stats/ dir */
  24. void oprofile_create_stats_files(struct dentry *root);
  25. #endif /* OPROFILE_STATS_H */