perf intel-pt: Ensure IP is zero when state is INTEL_PT_STATE_NO_IP
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 26 May 2017 08:17:05 +0000 (11:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2017 22:07:57 +0000 (15:07 -0700)
commitdc0401375f7a7a27ad56e1b0fc19dc470cf0f8d9
treecb8ed638f5e0d915000409b7d4b8afaf503761fe
parentb338b87f2277e9c1a71749ec6985afe64be9efe8
perf intel-pt: Ensure IP is zero when state is INTEL_PT_STATE_NO_IP

commit ad7167a8cd174ba7d8c0d0ed8d8410521206d104 upstream.

A value of zero is used to indicate that there is no IP. Ensure the
value is zero when the state is INTEL_PT_STATE_NO_IP.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1495786658-18063-5-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>
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c