Adrian Hunter 3f04d98e97 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>
2017-06-21 11:35:43 -03:00
..
2017-04-24 13:43:32 -03:00
2016-06-28 10:54:56 -03:00
2017-04-19 13:01:51 -03:00
2017-05-04 09:59:53 -03:00
2017-06-20 12:05:38 -03:00
2015-08-21 11:34:10 -03:00
2016-10-24 11:07:39 -03:00
2017-06-19 15:27:05 -03:00
2015-05-05 18:13:22 -03:00
2015-05-05 18:13:22 -03:00
2016-07-12 15:19:55 -03:00
2016-08-23 15:37:33 -03:00
2016-04-28 09:58:58 -03:00
2015-05-29 12:43:44 -03:00