aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/event_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/oprofile/event_buffer.h')
-rw-r--r--drivers/oprofile/event_buffer.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/oprofile/event_buffer.h b/drivers/oprofile/event_buffer.h
index 5076ed1ebd8f..4e70749f8d16 100644
--- a/drivers/oprofile/event_buffer.h
+++ b/drivers/oprofile/event_buffer.h
@@ -10,13 +10,20 @@
10#ifndef EVENT_BUFFER_H 10#ifndef EVENT_BUFFER_H
11#define EVENT_BUFFER_H 11#define EVENT_BUFFER_H
12 12
13#include <linux/types.h> 13#include <linux/types.h>
14#include <asm/mutex.h> 14#include <asm/mutex.h>
15 15
16int alloc_event_buffer(void); 16int alloc_event_buffer(void);
17 17
18void free_event_buffer(void); 18void free_event_buffer(void);
19 19
20/**
21 * Add data to the event buffer.
22 * The data passed is free-form, but typically consists of
23 * file offsets, dcookies, context information, and ESCAPE codes.
24 */
25void add_event_entry(unsigned long data);
26
20/* wake up the process sleeping on the event file */ 27/* wake up the process sleeping on the event file */
21void wake_up_buffer_waiter(void); 28void wake_up_buffer_waiter(void);
22 29
@@ -24,10 +31,10 @@ void wake_up_buffer_waiter(void);
24#define NO_COOKIE 0UL 31#define NO_COOKIE 0UL
25 32
26extern const struct file_operations event_buffer_fops; 33extern const struct file_operations event_buffer_fops;
27 34
28/* mutex between sync_cpu_buffers() and the 35/* mutex between sync_cpu_buffers() and the
29 * file reading code. 36 * file reading code.
30 */ 37 */
31extern struct mutex buffer_mutex; 38extern struct mutex buffer_mutex;
32 39
33#endif /* EVENT_BUFFER_H */ 40#endif /* EVENT_BUFFER_H */