Commit dbe6e283 authored by Robert Richter's avatar Robert Richter

oprofile: simplify add_ibs_begin()

Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
parent 3967e93e
......@@ -333,7 +333,7 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)
sample = op_cpu_buffer_read_entry(cpu);
if (!sample)
goto Error;
return;
rip = sample->eip;
#ifdef __LP64__
......@@ -372,15 +372,12 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)
for (i = 0; i < count; i++) {
sample = op_cpu_buffer_read_entry(cpu);
if (!sample)
goto Error;
return;
add_event_entry(sample->eip);
add_event_entry(sample->event);
}
return;
Error:
return;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment