diff options
Diffstat (limited to 'drivers/oprofile/cpu_buffer.h')
-rw-r--r-- | drivers/oprofile/cpu_buffer.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/oprofile/cpu_buffer.h b/drivers/oprofile/cpu_buffer.h index d7c0545ef8b2..e634dcf2f26f 100644 --- a/drivers/oprofile/cpu_buffer.h +++ b/drivers/oprofile/cpu_buffer.h | |||
@@ -78,10 +78,12 @@ int op_cpu_buffer_write_commit(struct op_entry *entry); | |||
78 | struct op_sample *op_cpu_buffer_read_entry(struct op_entry *entry, int cpu); | 78 | struct op_sample *op_cpu_buffer_read_entry(struct op_entry *entry, int cpu); |
79 | unsigned long op_cpu_buffer_entries(int cpu); | 79 | unsigned long op_cpu_buffer_entries(int cpu); |
80 | 80 | ||
81 | /* transient events for the CPU buffer -> event buffer */ | 81 | /* extra data flags */ |
82 | #define CPU_IS_KERNEL 1 | 82 | #define KERNEL_CTX_SWITCH (1UL << 0) |
83 | #define CPU_TRACE_BEGIN 2 | 83 | #define IS_KERNEL (1UL << 1) |
84 | #define IBS_FETCH_BEGIN 3 | 84 | #define TRACE_BEGIN (1UL << 2) |
85 | #define IBS_OP_BEGIN 4 | 85 | #define USER_CTX_SWITCH (1UL << 3) |
86 | #define IBS_FETCH_BEGIN (1UL << 4) | ||
87 | #define IBS_OP_BEGIN (1UL << 5) | ||
86 | 88 | ||
87 | #endif /* OPROFILE_CPU_BUFFER_H */ | 89 | #endif /* OPROFILE_CPU_BUFFER_H */ |