Go to the documentation of this file.
16 #include <linux/types.h>
19 #include <linux/errno.h>
29 #define ESCAPE_CODE ~0UL
30 #define CTX_SWITCH_CODE 1
31 #define CPU_SWITCH_CODE 2
32 #define COOKIE_SWITCH_CODE 3
33 #define KERNEL_ENTER_SWITCH_CODE 4
34 #define KERNEL_EXIT_SWITCH_CODE 5
35 #define MODULE_LOADED_CODE 6
36 #define CTX_TGID_CODE 7
37 #define TRACE_BEGIN_CODE 8
38 #define TRACE_END_CODE 9
39 #define XEN_ENTER_SWITCH_CODE 10
40 #define SPU_PROFILING_CODE 11
41 #define SPU_CTX_SWITCH_CODE 12
42 #define IBS_FETCH_CODE 13
43 #define IBS_OP_CODE 14
107 unsigned long event,
int is_kernel);
113 unsigned long event,
int is_kernel,
175 unsigned int stop,
unsigned int max);
198 #ifdef CONFIG_HW_PERF_EVENTS
201 char *op_name_from_perf_id(
void);
205 pr_info(
"oprofile: hardware counters not available\n");