linux/tools/perf/arch/x86
Adrian Hunter 3d918fb13a perf intel-pt: Fix occasional decoding errors when tracing system-wide
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>
Cc: stable@vger.kernel.org # v4.4+
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>
2016-08-15 18:11:18 -03:00
..
entry/syscalls perf tools: Sync copy of syscall_64.tbl with the kernel 2016-07-04 20:29:40 -03:00
include perf tests: Pass the subtest index to each test routine 2015-11-19 13:19:15 -03:00
tests libnvdimm for 4.8 2016-07-28 17:38:16 -07:00
util perf intel-pt: Fix occasional decoding errors when tracing system-wide 2016-08-15 18:11:18 -03:00
Build perf tests: Add arch tests 2015-10-05 16:55:38 -03:00
Makefile perf tools: Make the x86 clean quiet 2016-04-25 17:56:15 -03:00