perf tools: Fix Intel PT 'instructions' sample period
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 17 Jul 2015 16:33:48 +0000 (19:33 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Aug 2015 20:42:26 +0000 (17:42 -0300)
commit2a21d03686881331b0af0471588674e7e896eeb2
tree91789a1db7da2ce70b141ba62b40ae880136629a
parent5c9ce1e644c1919ac4bff4394a4c372f47a89b4e
perf tools: Fix Intel PT 'instructions' sample period

The period on synthesized 'instructions' samples was being set to a
fixed value, whereas the correct value is the number of instructions
since the last sample, which is a value that the decoder can provide.
So do it that way.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1437150840-31811-14-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