diff options
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
-rw-r--r-- | drivers/oprofile/cpu_buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c index c9ac4e156918..aba905b3afb8 100644 --- a/drivers/oprofile/cpu_buffer.c +++ b/drivers/oprofile/cpu_buffer.c | |||
@@ -253,6 +253,8 @@ void oprofile_add_sample(struct pt_regs * const regs, unsigned long event) | |||
253 | oprofile_add_ext_sample(pc, regs, event, is_kernel); | 253 | oprofile_add_ext_sample(pc, regs, event, is_kernel); |
254 | } | 254 | } |
255 | 255 | ||
256 | #ifdef CONFIG_OPROFILE_IBS | ||
257 | |||
256 | #define MAX_IBS_SAMPLE_SIZE 14 | 258 | #define MAX_IBS_SAMPLE_SIZE 14 |
257 | static int log_ibs_sample(struct oprofile_cpu_buffer *cpu_buf, | 259 | static int log_ibs_sample(struct oprofile_cpu_buffer *cpu_buf, |
258 | unsigned long pc, int is_kernel, unsigned int *ibs, int ibs_code) | 260 | unsigned long pc, int is_kernel, unsigned int *ibs, int ibs_code) |
@@ -318,6 +320,8 @@ void oprofile_add_ibs_sample(struct pt_regs *const regs, | |||
318 | oprofile_ops.backtrace(regs, backtrace_depth); | 320 | oprofile_ops.backtrace(regs, backtrace_depth); |
319 | } | 321 | } |
320 | 322 | ||
323 | #endif | ||
324 | |||
321 | void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event) | 325 | void oprofile_add_pc(unsigned long pc, int is_kernel, unsigned long event) |
322 | { | 326 | { |
323 | struct oprofile_cpu_buffer *cpu_buf = &__get_cpu_var(cpu_buffer); | 327 | struct oprofile_cpu_buffer *cpu_buf = &__get_cpu_var(cpu_buffer); |