oprofile: simplify add_ibs_begin()
Signed-off-by: Robert Richter <robert.richter@amd.com>
This commit is contained in:
@@ -333,7 +333,7 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)
|
|||||||
|
|
||||||
sample = op_cpu_buffer_read_entry(cpu);
|
sample = op_cpu_buffer_read_entry(cpu);
|
||||||
if (!sample)
|
if (!sample)
|
||||||
goto Error;
|
return;
|
||||||
rip = sample->eip;
|
rip = sample->eip;
|
||||||
|
|
||||||
#ifdef __LP64__
|
#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++) {
|
for (i = 0; i < count; i++) {
|
||||||
sample = op_cpu_buffer_read_entry(cpu);
|
sample = op_cpu_buffer_read_entry(cpu);
|
||||||
if (!sample)
|
if (!sample)
|
||||||
goto Error;
|
return;
|
||||||
add_event_entry(sample->eip);
|
add_event_entry(sample->eip);
|
||||||
add_event_entry(sample->event);
|
add_event_entry(sample->event);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Error:
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user