]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Allow decoding with branch tracing disabled
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 26 May 2017 08:17:11 +0000 (11:17 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Jun 2017 14:35:48 +0000 (11:35 -0300)
commit19a1c5db4090963619967e2c154dc3b0947dbc2d
treeb924625e5f60a21534f3291379bf098b56f73329
parenta761841a7ff6c49b123c9fc99eaa6e1e22aa476f
perf intel-pt: Allow decoding with branch tracing disabled

The kernel now supports the disabling of branch tracing, however the
decoder assumes branch tracing is always enabled. Pass through a parameter
to indicate whether branch tracing is enabled and use it to avoid cases
when the decoder is expecting branch packets. There are 2 such cases.
First, FUP packets which can bind to an IP even when there is no branch
tracing. Secondly, the decoder will try to use branch packets to find an IP
to start decoding or to recover from errors.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1495786658-18063-11-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
tools/perf/util/intel-pt-decoder/intel-pt-decoder.h
tools/perf/util/intel-pt.c