mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
perf intel-pt: Fix missing error codes processing auxtrace_info
Fix 2 places where the err variable was not being set. Signed-off-by: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Poirier <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
fa8025c374
commit
4d34e10a9f
1 changed files with 2 additions and 0 deletions
|
|
@ -2138,11 +2138,13 @@ int intel_pt_process_auxtrace_info(union perf_event *event,
|
|||
pt->switch_evsel = intel_pt_find_sched_switch(session->evlist);
|
||||
if (!pt->switch_evsel) {
|
||||
pr_err("%s: missing sched_switch event\n", __func__);
|
||||
err = -EINVAL;
|
||||
goto err_delete_thread;
|
||||
}
|
||||
} else if (pt->have_sched_switch == 2 &&
|
||||
!intel_pt_find_switch(session->evlist)) {
|
||||
pr_err("%s: missing context_switch attribute flag\n", __func__);
|
||||
err = -EINVAL;
|
||||
goto err_delete_thread;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue