nilfs2: mark minor flag for checkpoint created by internal operation
[linux-2.6/mini2440.git] / drivers / oprofile / event_buffer.h
blob4e70749f8d16e122a0fab36fa065889e018ef954
1 /**
2 * @file event_buffer.h
4 * @remark Copyright 2002 OProfile authors
5 * @remark Read the file COPYING
7 * @author John Levon <levon@movementarian.org>
8 */
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 /**
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.
25 void add_event_entry(unsigned long data);
27 /* wake up the process sleeping on the event file */
28 void wake_up_buffer_waiter(void);
30 #define INVALID_COOKIE ~0UL
31 #define NO_COOKIE 0UL
33 extern const struct file_operations event_buffer_fops;
35 /* mutex between sync_cpu_buffers() and the
36 * file reading code.
38 extern struct mutex buffer_mutex;
40 #endif /* EVENT_BUFFER_H */