git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
oprofile
/
event_buffer.h
diff --git
a/drivers/oprofile/event_buffer.h
b/drivers/oprofile/event_buffer.h
index
0180236
..
6a88788
100644
(file)
--- a/
drivers/oprofile/event_buffer.h
+++ b/
drivers/oprofile/event_buffer.h
@@
-11,7
+11,7
@@
#define EVENT_BUFFER_H
#include <linux/types.h>
#define EVENT_BUFFER_H
#include <linux/types.h>
-#include <asm/
semaphore
.h>
+#include <asm/
mutex
.h>
int alloc_event_buffer(void);
int alloc_event_buffer(void);
@@
-29,15
+29,20
@@
void wake_up_buffer_waiter(void);
#define CPU_SWITCH_CODE 2
#define COOKIE_SWITCH_CODE 3
#define KERNEL_ENTER_SWITCH_CODE 4
#define CPU_SWITCH_CODE 2
#define COOKIE_SWITCH_CODE 3
#define KERNEL_ENTER_SWITCH_CODE 4
-#define
KERNEL_EXIT_SWITCH_CODE
5
+#define
USER_ENTER_SWITCH_CODE
5
#define MODULE_LOADED_CODE 6
#define CTX_TGID_CODE 7
#define TRACE_BEGIN_CODE 8
#define TRACE_END_CODE 9
#define MODULE_LOADED_CODE 6
#define CTX_TGID_CODE 7
#define TRACE_BEGIN_CODE 8
#define TRACE_END_CODE 9
+#define XEN_ENTER_SWITCH_CODE 10
+#define DOMAIN_SWITCH_CODE 11
#define INVALID_COOKIE ~0UL
#define NO_COOKIE 0UL
#define INVALID_COOKIE ~0UL
#define NO_COOKIE 0UL
+/* Constant used to refer to coordinator domain (Xen) */
+#define COORDINATOR_DOMAIN -1
+
/* add data to the event buffer */
void add_event_entry(unsigned long data);
/* add data to the event buffer */
void add_event_entry(unsigned long data);
@@
-46,6
+51,6
@@
extern struct file_operations event_buffer_fops;
/* mutex between sync_cpu_buffers() and the
* file reading code.
*/
/* mutex between sync_cpu_buffers() and the
* file reading code.
*/
-extern struct
semaphore buffer_sem
;
+extern struct
mutex buffer_mutex
;
#endif /* EVENT_BUFFER_H */
#endif /* EVENT_BUFFER_H */