perf intel-pt: Improve sync_switch by processing PERF_RECORD_SWITCH* in events
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 12 Apr 2019 11:38:29 +0000 (14:38 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 May 2019 21:37:45 +0000 (18:37 -0300)
commitc7b4f15ff79b539fed4c382e52e988548081bc9d
tree2a3f1cf9f36725a2869ea630ed03d9d36ccc31c9
parent3cd3216dbb421244b96b992f193e778a3baa2220
perf intel-pt: Improve sync_switch by processing PERF_RECORD_SWITCH* in events

sync_switch is a facility to synchronize decoding more closely with the
point in the kernel when the context actually switched.

Improve it by processing "context switch in" events.

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