oprofile_stats.h 692 B

1234567891011121314151617181920212223242526272829303132333435
  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. 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 super_block;
  23. struct dentry;
  24. /* create the stats/ dir */
  25. void oprofile_create_stats_files(struct super_block *sb, struct dentry *root);
  26. #endif /* OPROFILE_STATS_H */