perf script: Check output fields only for samples
authorJiri Olsa <jolsa@kernel.org>
Fri, 16 Oct 2015 10:41:25 +0000 (12:41 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 19 Oct 2015 21:05:59 +0000 (18:05 -0300)
commitd2b5a315ae84d235f00761468885c466f81d7805
tree4a0508f483e8752f67910a6c6b0a7ca60b86317a
parent1fe7a30028eeccd92e6fccfbeb8c5c3811b11b64
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 <jolsa@kernel.org>
Tested-by: Kan Liang <kan.liang@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1444992092-17897-51-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c