]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Improve sample timestamp
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 26 May 2017 08:17:03 +0000 (11:17 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Jun 2017 14:35:43 +0000 (11:35 -0300)
commitcf6a575113f29a962736a57b0de768f13ea0f7f3
treef053f7b5eb16e8a575901ab0712110207db9f6f2
parentba19a9ab6fcc67625cc7a18d535841114274d3d7
perf intel-pt: Improve sample timestamp

The decoder uses its current timestamp in samples. Usually that is a
timestamp that has already passed, but in some cases it is a timestamp
for a branch that the decoder is walking towards, and consequently
hasn't reached. Improve that situation by using the pkt_state to
determine when to use the current or previous timestamp.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1495786658-18063-3-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