android_kernel_oneplus_msm8998/tools/perf/arch/x86
Adrian Hunter 8f5b7e3f41 perf intel-pt: Fix occasional decoding errors when tracing system-wide
commit 3d918fb13abdbeca7947578f5d7e426eafad7f5e upstream.

In order to successfully decode Intel PT traces, context switch events
are needed from the moment the trace starts. Currently that is ensured
by using the 'immediate' flag which enables the switch event when it is
opened.

However, since commit 86c2786994 ("perf intel-pt: Add support for
PERF_RECORD_SWITCH") that might not always happen. When tracing
system-wide the context switch event is added to the tracking event
which was not set as 'immediate'. Change that so it is.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Fixes: 86c2786994 ("perf intel-pt: Add support for PERF_RECORD_SWITCH")
Link: http://lkml.kernel.org/r/1471245784-22580-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-07 08:32:37 +02:00
..
include perf tests: Add Intel CQM test 2015-10-05 16:56:07 -03:00
tests perf tests: Add Intel CQM test 2015-10-05 16:56:07 -03:00
util perf intel-pt: Fix occasional decoding errors when tracing system-wide 2016-09-07 08:32:37 +02:00
Build perf tests: Add arch tests 2015-10-05 16:55:38 -03:00
Makefile perf tools: Introduce regs_query_register_offset() for x86 2015-09-15 09:48:33 -03:00