aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/oprofile')
-rw-r--r--drivers/oprofile/buffer_sync.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c
index 564577307a5e..33bfa60b0c66 100644
--- a/drivers/oprofile/buffer_sync.c
+++ b/drivers/oprofile/buffer_sync.c
@@ -340,7 +340,7 @@ static void add_trace_begin(void)
340 * Add IBS fetch and op entries to event buffer 340 * Add IBS fetch and op entries to event buffer
341 */ 341 */
342static void add_ibs_begin(struct oprofile_cpu_buffer *cpu_buf, int code, 342static void add_ibs_begin(struct oprofile_cpu_buffer *cpu_buf, int code,
343 int in_kernel, struct mm_struct *mm) 343 struct mm_struct *mm)
344{ 344{
345 unsigned long rip; 345 unsigned long rip;
346 int i, count; 346 int i, count;
@@ -592,12 +592,10 @@ void sync_buffer(int cpu)
592#ifdef CONFIG_OPROFILE_IBS 592#ifdef CONFIG_OPROFILE_IBS
593 } else if (s->event == IBS_FETCH_BEGIN) { 593 } else if (s->event == IBS_FETCH_BEGIN) {
594 state = sb_bt_start; 594 state = sb_bt_start;
595 add_ibs_begin(cpu_buf, 595 add_ibs_begin(cpu_buf, IBS_FETCH_CODE, mm);
596 IBS_FETCH_CODE, in_kernel, mm);
597 } else if (s->event == IBS_OP_BEGIN) { 596 } else if (s->event == IBS_OP_BEGIN) {
598 state = sb_bt_start; 597 state = sb_bt_start;
599 add_ibs_begin(cpu_buf, 598 add_ibs_begin(cpu_buf, IBS_OP_CODE, mm);
600 IBS_OP_CODE, in_kernel, mm);
601#endif 599#endif
602 } else { 600 } else {
603 struct mm_struct *oldmm = mm; 601 struct mm_struct *oldmm = mm;