perf intel-pt: Add a helper function for processing AUXTRACE_INFO
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 23 Sep 2016 14:38:44 +0000 (17:38 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Sep 2016 14:17:04 +0000 (11:17 -0300)
commit40b746a06332799786ba557fe84184428bef62fb
treed0145c17f71f206bb39b60a7477f026d5de0c4bd
parent4d34e10a9f9a38c611cac0deda8f91b064282747
perf intel-pt: Add a helper function for processing AUXTRACE_INFO

Add a helper function 'intel_pt_has()' to make it easier to determine
which members the AUXTRACE_INFO event contains.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: http://lkml.kernel.org/r/1474641528-18776-13-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c