WSL2-Linux-Kernel/tools/perf/util/intel-pt-decoder
Adrian Hunter 4fbb83c1bf perf intel-pt: Fix missing 'instruction' events with 'q' option
commit a882cc9497 upstream.

FUP packets contain IP information, which makes them also an 'instruction'
event in 'hop' mode i.e. the itrace 'q' option.  That wasn't happening, so
restructure the logic so that FUP events are added along with appropriate
'instruction' and 'branch' events.

Fixes: 7c1b16ba0e ("perf intel-pt: Add support for decoding FUP/TIP only")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org # v5.15+
Link: https://lore.kernel.org/r/20211210162303.2288710-7-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-14 10:57:13 +01:00
..
Build x86/insn: Use get_unaligned() instead of memcpy() 2021-11-18 19:16:30 +01:00
intel-pt-decoder.c perf intel-pt: Fix missing 'instruction' events with 'q' option 2021-12-14 10:57:13 +01:00
intel-pt-decoder.h perf intel-pt: Add a config for max loops without consuming a packet 2021-07-07 11:40:56 -03:00
intel-pt-insn-decoder.c tools/perf: Convert to insn_decode() 2021-03-15 12:41:26 +01:00
intel-pt-insn-decoder.h perf intel_pt: Add vmlaunch and vmresume as branches 2021-02-18 16:13:30 -03:00
intel-pt-log.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
intel-pt-log.h perf intel-pt: Add VM Time Correlation to decoder 2021-05-12 12:43:11 -03:00
intel-pt-pkt-decoder.c perf intel-pt: Retain the last PIP packet payload as is 2021-02-18 16:13:46 -03:00
intel-pt-pkt-decoder.h perf intel-pt: Retain the last PIP packet payload as is 2021-02-18 16:13:46 -03:00