mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
perf script: Check output fields only for samples
There's no need to check sampling output fields for events without perf_event_attr::sample_type field set. Signed-off-by: Jiri Olsa <[email protected]> Tested-by: Kan Liang <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[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
1fe7a30028
commit
d2b5a315ae
1 changed files with 4 additions and 1 deletions
|
|
@ -686,7 +686,10 @@ static int process_attr(struct perf_tool *tool, union perf_event *event,
|
|||
|
||||
set_print_ip_opts(&evsel->attr);
|
||||
|
||||
return perf_evsel__check_attr(evsel, scr->session);
|
||||
if (evsel->attr.sample_type)
|
||||
err = perf_evsel__check_attr(evsel, scr->session);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
static int process_comm_event(struct perf_tool *tool,
|
||||
|
|
|
|||
Loading…
Reference in a new issue