4 * @remark Copyright 2002 OProfile authors
5 * @remark Read the file COPYING
7 * @author John Levon <levon@movementarian.org>
10 #ifndef EVENT_BUFFER_H
11 #define EVENT_BUFFER_H
13 #include <linux/types.h>
14 #include <asm/mutex.h>
16 int alloc_event_buffer(void);
18 void free_event_buffer(void);
20 /* wake up the process sleeping on the event file */
21 void wake_up_buffer_waiter(void);
23 #define INVALID_COOKIE ~0UL
26 extern const struct file_operations event_buffer_fops;
28 /* mutex between sync_cpu_buffers() and the
31 extern struct mutex buffer_mutex;
33 #endif /* EVENT_BUFFER_H */