perf intel-pt/bts: Calculate cpumode for synthesized samples
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 31 Oct 2018 09:10:43 +0000 (11:10 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 31 Oct 2018 15:56:26 +0000 (12:56 -0300)
commit5d4f0edaa3ac4f1844ed7c64cd2bae6f1912bac5
treecd351a1f6724d308b7eb932e66891047cac9962c
parent242483068b4b9ad02f1653819b6e683577681e0e
perf intel-pt/bts: Calculate cpumode for synthesized samples

In the absence of a fallback, samples must provide a correct cpumode for
the 'ip'. Do that now there is no fallback.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: stable@vger.kernel.org # 4.19
Link: http://lkml.kernel.org/r/20181031091043.23465-6-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-bts.c
tools/perf/util/intel-pt.c