]> 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)
commit2e472c05d70aa70baea1e5de706fff0af6465677
tree4365e1e0b8b5234bcff2024e63728a3f71702aee
parentdb2e21d5e4ec90d60a69a29cb538848e605968a8
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