linux/tools/perf/arch/x86/util
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
..
auxtrace.c perf evlist: Rename for_each() macros to for_each_entry() 2016-06-23 11:26:15 -03:00
Build perf unwind: Separate local/remote libunwind config 2016-06-07 12:08:52 -03:00
dwarf-regs.c perf dwarf: Guard !x86_64 definitions under #ifdef else clause 2016-04-08 12:04:29 -03:00
group.c perf stat: Basic support for TopDown in perf stat 2016-06-06 17:04:15 -03:00
header.c perf tools: Use scnprintf where applicable 2012-03-14 12:36:19 -03:00
intel-bts.c perf evlist: Rename for_each() macros to for_each_entry() 2016-06-23 11:26:15 -03:00
intel-pt.c perf intel-pt: Fix occasional decoding errors when tracing system-wide 2016-08-15 18:11:18 -03:00
kvm-stat.c perf kvm/{x86,s390}: Remove const from kvm_events_tp 2016-01-29 17:49:53 -03:00
perf_regs.c perf tools: Fix link time error with sample_reg_masks on non x86 2015-09-01 13:04:41 -03:00
pmu.c perf tools: Add Intel BTS support 2015-08-21 11:34:10 -03:00
tsc.c perf record: Robustify perf_event__synth_time_conv() 2016-05-30 12:41:44 -03:00
unwind-libdw.c perf tools: Add libdw DWARF post unwind support 2014-02-24 09:29:36 -03:00
unwind-libunwind.c perf callchain: Support x86 target platform 2016-06-07 15:13:27 -03:00