]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Decoder to output CBR changes immediately
authorAdrian Hunter <adrian.hunter@intel.com>
Sat, 22 Jun 2019 09:32:42 +0000 (12:32 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 Jun 2019 11:47:10 +0000 (08:47 -0300)
commitf51b9e330023e53adc574127b802eed1dcc0ac1f
tree245b3d129c9cb396d78b11a49372be5528951a26
parentc6ffd1b7bc8fd81e716a45677e5e9b916284ae36
perf intel-pt: Decoder to output CBR changes immediately

The core-to-bus ratio (CBR) provides the CPU frequency. With branches
enabled, the decoder was outputting CBR changes only when there was a
branch. That loses the correct time of the change if the trace is not in
context (e.g. not tracing kernel space). Change to output the CBR change
immediately.

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