diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2018-05-31 06:23:43 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-06-06 11:52:07 -0400 |
commit | bd2e49ec48feb1855f7624198849eea4610e2286 (patch) | |
tree | 564e11e0eb8697b227e85c0a3aca072280f4ee5b | |
parent | dbcb82b93f3e8322891e47472c89e63058b81e99 (diff) |
perf intel-pt: Fix decoding to accept CBR between FUP and corresponding TIP
It is possible to have a CBR packet between a FUP packet and
corresponding TIP packet. Stop treating it as an error.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1527762225-26024-3-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 5 |
1 files changed, 4 insertions, 1 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 f9157aed1289..e5eb91777383 100644 --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | |||
@@ -1604,7 +1604,6 @@ static int intel_pt_walk_fup_tip(struct intel_pt_decoder *decoder) | |||
1604 | case INTEL_PT_PSB: | 1604 | case INTEL_PT_PSB: |
1605 | case INTEL_PT_TSC: | 1605 | case INTEL_PT_TSC: |
1606 | case INTEL_PT_TMA: | 1606 | case INTEL_PT_TMA: |
1607 | case INTEL_PT_CBR: | ||
1608 | case INTEL_PT_MODE_TSX: | 1607 | case INTEL_PT_MODE_TSX: |
1609 | case INTEL_PT_BAD: | 1608 | case INTEL_PT_BAD: |
1610 | case INTEL_PT_PSBEND: | 1609 | case INTEL_PT_PSBEND: |
@@ -1620,6 +1619,10 @@ static int intel_pt_walk_fup_tip(struct intel_pt_decoder *decoder) | |||
1620 | decoder->pkt_step = 0; | 1619 | decoder->pkt_step = 0; |
1621 | return -ENOENT; | 1620 | return -ENOENT; |
1622 | 1621 | ||
1622 | case INTEL_PT_CBR: | ||
1623 | intel_pt_calc_cbr(decoder); | ||
1624 | break; | ||
1625 | |||
1623 | case INTEL_PT_OVF: | 1626 | case INTEL_PT_OVF: |
1624 | return intel_pt_overflow(decoder); | 1627 | return intel_pt_overflow(decoder); |
1625 | 1628 | ||