perf intel-pt: Synthesize CBR events when last seen value changes
authorAdrian Hunter <adrian.hunter@intel.com>
Sat, 22 Jun 2019 09:32:45 +0000 (12:32 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 Jun 2019 11:47:10 +0000 (08:47 -0300)
commit5fe2cf7d19c48f2b53b57e6a5786972bc1b8d738
tree4365e1e0b8b5234bcff2024e63728a3f71702aee
parent51b091861828f5801207a00211ea4e94102389c3
perf intel-pt: Synthesize CBR events when last seen value changes

The first core-to-bus ratio (CBR) event will not be shown if --itrace
's' option (skip initial number of events) is used, nor if time
intervals are specified that do not include the start of tracing. Change
the logic to record the last CBR value seen by the user, and synthesize
CBR events whenever that changes.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190622093248.581-5-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c