Blame view

drivers/oprofile/event_buffer.h 860 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
6
7
8
9
10
11
  /**
   * @file event_buffer.h
   *
   * @remark Copyright 2002 OProfile authors
   * @remark Read the file COPYING
   *
   * @author John Levon <levon@movementarian.org>
   */
  
  #ifndef EVENT_BUFFER_H
  #define EVENT_BUFFER_H
6a18037d4   Robert Richter   oprofile: fixing ...
12
  #include <linux/types.h>
b76a06e08   Anton Blanchard   oprofile: Use lin...
13
  #include <linux/mutex.h>
6a18037d4   Robert Richter   oprofile: fixing ...
14

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
15
16
17
  int alloc_event_buffer(void);
  
  void free_event_buffer(void);
6a18037d4   Robert Richter   oprofile: fixing ...
18

a5598ca0d   Carl Love   powerpc/oprofile:...
19
20
21
22
23
24
  /**
   * Add data to the event buffer.
   * The data passed is free-form, but typically consists of
   * file offsets, dcookies, context information, and ESCAPE codes.
   */
  void add_event_entry(unsigned long data);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
25
26
  /* wake up the process sleeping on the event file */
  void wake_up_buffer_waiter(void);
1474855d0   Bob Nelson   [CELL] oprofile: ...
27

0c0a400d1   John Levon   [PATCH] oprofile:...
28
29
  #define INVALID_COOKIE ~0UL
  #define NO_COOKIE 0UL
d54b1fdb1   Arjan van de Ven   [PATCH] mark stru...
30
  extern const struct file_operations event_buffer_fops;
6a18037d4   Robert Richter   oprofile: fixing ...
31

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
32
33
34
  /* mutex between sync_cpu_buffers() and the
   * file reading code.
   */
59cc185ad   Markus Armbruster   [PATCH] oprofile:...
35
  extern struct mutex buffer_mutex;
6a18037d4   Robert Richter   oprofile: fixing ...
36

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
37
  #endif /* EVENT_BUFFER_H */