oprofile: remove backtrace code for ibs

This code is broken since a TRACE_BEGIN_CODE is never sent to the
daemon. The data becomes corrupt since the backtrace is interpreted as
ibs sample.

Signed-off-by: Robert Richter <robert.richter@amd.com>
This commit is contained in:
Robert Richter 2008-12-19 12:59:28 +01:00
parent f4ff236441
commit 8350c78734
2 changed files with 2 additions and 10 deletions

View file

@ -557,11 +557,9 @@ void sync_buffer(int cpu)
break; break;
#ifdef CONFIG_OPROFILE_IBS #ifdef CONFIG_OPROFILE_IBS
case IBS_FETCH_BEGIN: case IBS_FETCH_BEGIN:
state = sb_bt_start;
add_ibs_begin(cpu, IBS_FETCH_CODE, mm); add_ibs_begin(cpu, IBS_FETCH_CODE, mm);
break; break;
case IBS_OP_BEGIN: case IBS_OP_BEGIN:
state = sb_bt_start;
add_ibs_begin(cpu, IBS_OP_CODE, mm); add_ibs_begin(cpu, IBS_OP_CODE, mm);
break; break;
#endif #endif

View file

@ -347,17 +347,11 @@ void oprofile_add_ibs_sample(struct pt_regs * const regs,
fail = fail || add_sample(cpu_buf, ibs_sample[10], ibs_sample[11]); fail = fail || add_sample(cpu_buf, ibs_sample[10], ibs_sample[11]);
} }
if (fail) if (!fail)
goto fail; return;
if (oprofile_backtrace_depth)
oprofile_ops.backtrace(regs, oprofile_backtrace_depth);
return;
fail: fail:
cpu_buf->sample_lost_overflow++; cpu_buf->sample_lost_overflow++;
return;
} }
#endif #endif