Go to the documentation of this file.
11 #ifndef OPROFILE_CPU_BUFFER_H
12 #define OPROFILE_CPU_BUFFER_H
14 #include <linux/types.h>
18 #include <linux/sched.h>
62 static inline void op_cpu_buffer_reset(
int cpu)
97 int op_cpu_buffer_get_size(
struct op_entry *entry)
104 int op_cpu_buffer_get_data(
struct op_entry *entry,
unsigned long *val)
116 #define KERNEL_CTX_SWITCH (1UL << 0)
117 #define IS_KERNEL (1UL << 1)
118 #define TRACE_BEGIN (1UL << 2)
119 #define USER_CTX_SWITCH (1UL << 3)