Blame view

drivers/oprofile/oprofile_stats.h 694 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
6
7
8
9
10
11
  /**
   * @file oprofile_stats.h
   *
   * @remark Copyright 2002 OProfile authors
   * @remark Read the file COPYING
   *
   * @author John Levon
   */
  
  #ifndef OPROFILE_STATS_H
  #define OPROFILE_STATS_H
60063497a   Arun Sharma   atomic: use <linu...
12
  #include <linux/atomic.h>
6a18037d4   Robert Richter   oprofile: fixing ...
13

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14
15
16
17
18
  struct oprofile_stat_struct {
  	atomic_t sample_lost_no_mm;
  	atomic_t sample_lost_no_mapping;
  	atomic_t bt_lost_no_mapping;
  	atomic_t event_lost_overflow;
1b294f596   Robert Richter   oprofile: Adding ...
19
  	atomic_t multiplex_counter;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
20
21
22
  };
  
  extern struct oprofile_stat_struct oprofile_stats;
6a18037d4   Robert Richter   oprofile: fixing ...
23

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
24
25
  /* reset all stats to zero */
  void oprofile_reset_stats(void);
6a18037d4   Robert Richter   oprofile: fixing ...
26

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
27
28
  struct super_block;
  struct dentry;
6a18037d4   Robert Richter   oprofile: fixing ...
29

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
30
  /* create the stats/ dir */
25ad2913c   Robert Richter   oprofile: more wh...
31
  void oprofile_create_stats_files(struct super_block *sb, struct dentry *root);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
32
33
  
  #endif /* OPROFILE_STATS_H */