]>
Commit | Line | Data |
---|---|---|
71c85404 GKH |
1 | From 6a558f12dbe85437acbdec5e149ea07b5554eced Mon Sep 17 00:00:00 2001 |
2 | From: Adrian Hunter <adrian.hunter@intel.com> | |
3 | Date: Fri, 26 May 2017 11:17:09 +0300 | |
4 | Subject: perf intel-pt: Clear FUP flag on error | |
5 | ||
6 | From: Adrian Hunter <adrian.hunter@intel.com> | |
7 | ||
8 | commit 6a558f12dbe85437acbdec5e149ea07b5554eced upstream. | |
9 | ||
10 | Sometimes a FUP packet is associated with a TSX transaction and a flag is | |
11 | set to indicate that. Ensure that flag is cleared on any error condition | |
12 | because at that point the decoder can no longer assume it is correct. | |
13 | ||
14 | Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> | |
15 | Cc: Andi Kleen <ak@linux.intel.com> | |
16 | Link: http://lkml.kernel.org/r/1495786658-18063-9-git-send-email-adrian.hunter@intel.com | |
17 | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> | |
18 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
19 | ||
20 | --- | |
21 | tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 2 ++ | |
22 | 1 file changed, 2 insertions(+) | |
23 | ||
24 | --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | |
25 | +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | |
26 | @@ -1960,6 +1960,8 @@ static int intel_pt_sync_ip(struct intel | |
27 | { | |
28 | int err; | |
29 | ||
30 | + decoder->set_fup_tx_flags = false; | |
31 | + | |
32 | intel_pt_log("Scanning for full IP\n"); | |
33 | err = intel_pt_walk_to_ip(decoder); | |
34 | if (err) |