diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2017-05-26 11:17:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-27 15:07:57 -0700 |
commit | b338b87f2277e9c1a71749ec6985afe64be9efe8 (patch) | |
tree | 6650852d0a7efeb2f93ef755cafaca69fd5aabbe /tools | |
parent | 3e6837f1f414ea98f574abc31f04a1a5acb68203 (diff) | |
download | linux-stable-b338b87f2277e9c1a71749ec6985afe64be9efe8.tar.gz linux-stable-b338b87f2277e9c1a71749ec6985afe64be9efe8.tar.bz2 linux-stable-b338b87f2277e9c1a71749ec6985afe64be9efe8.zip |
perf intel-pt: Fix missing stack clear
commit 12b7080609097753fd8198cc1daf589be3ec1cca upstream.
The return compression stack must be cleared whenever there is a PSB. Fix
one case where that was not happening.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1495786658-18063-4-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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c index 5539b06b09d3..378347b8fb0e 100644 --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c @@ -1930,6 +1930,7 @@ static int intel_pt_walk_to_ip(struct intel_pt_decoder *decoder) break; case INTEL_PT_PSB: + intel_pt_clear_stack(&decoder->stack); err = intel_pt_walk_psb(decoder); if (err) return err; |