]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f359491aa9fe3314df928b14686408a796ad8bb
tree4365e1e0b8b5234bcff2024e63728a3f71702aee
parent18be10a7d4465b360d6eb7e8274b06f814eb11e1
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