event_buffer.h 649 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11 12
/**
 * @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

13
#include <linux/types.h>
14
#include <asm/mutex.h>
15

L
Linus Torvalds 已提交
16 17 18
int alloc_event_buffer(void);

void free_event_buffer(void);
19

L
Linus Torvalds 已提交
20 21
/* wake up the process sleeping on the event file */
void wake_up_buffer_waiter(void);
22

23 24 25
#define INVALID_COOKIE ~0UL
#define NO_COOKIE 0UL

26
extern const struct file_operations event_buffer_fops;
27

L
Linus Torvalds 已提交
28 29 30
/* mutex between sync_cpu_buffers() and the
 * file reading code.
 */
31
extern struct mutex buffer_mutex;
32

L
Linus Torvalds 已提交
33
#endif /* EVENT_BUFFER_H */