linux/tools
Adrian Hunter b1d528d090 perf intel-pt: Fix MTC timestamp calculation for large MTC periods
commit 3bccbe20f6 upstream.

The MTC packet provides a 8-bit slice of CTC which is related to TSC by
the TMA packet, however the TMA packet only provides the lower 16 bits
of CTC.  If mtc_shift > 8 then some of the MTC bits are not in the CTC
provided by the TMA packet. Fix-up the last_mtc calculated from the TMA
packet by copying the missing bits from the current MTC assuming the
least difference between the two, and that the current MTC comes after
last_mtc.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1475062896-22274-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-28 03:01:27 -04:00
..
arch
build
cgroup
firewire
hv tools: hv: report ENOSPC errors in hv_fcopy_daemon 2016-09-15 08:27:40 +02:00
iio
include
laptop/freefall
lguest
lib tools lib traceevent: Do not reassign parg after collapse_tree() 2016-05-18 17:06:53 -07:00
net
nfsd
perf perf intel-pt: Fix MTC timestamp calculation for large MTC periods 2016-10-28 03:01:27 -04:00
power
scripts
testing tools/testing/nvdimm: fix SIGTERM vs hotplug crash 2016-09-07 08:32:36 +02:00
thermal/tmon
time
usb
virtio
vm tools/vm/slabinfo: fix an unintentional printf 2016-10-07 15:23:41 +02:00
Makefile