diff options
author | Adrian Hunter <[email protected]> | 2019-06-22 12:32:43 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-06-25 08:47:10 -0300 |
commit | 91de8684f1cff6944634bfb9098dc3a2583f798c (patch) | |
tree | 6ee24b6dfbdbd868a8afa947720c7999a86a665a | |
parent | abe5a1d3e4bee361bd3b21b8909c8421e46911d1 (diff) |
perf intel-pt: Cater for CBR change in PSB+
PSB+ provides status information only so the core-to-bus ratio (CBR) in
PSB+ will not have changed from its previous value. However, cater for
the possibility of a another CBR change that gets caught up in the PSB+
anyway.
Signed-off-by: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r-- | tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 7 |
1 files changed, 7 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 3d2255f284f4..5eb792cc5d3a 100644 --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c @@ -1975,6 +1975,13 @@ next: goto next; if (err) return err; + /* + * PSB+ CBR will not have changed but cater for the + * possibility of another CBR change that gets caught up + * in the PSB+. + */ + if (decoder->cbr != decoder->cbr_seen) + return 0; break; case INTEL_PT_PIP: |