perf tools: Add Intel PT instruction decoder
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 13 Aug 2015 07:14:55 +0000 (10:14 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Aug 2015 14:11:36 +0000 (11:11 -0300)
commit237fae79f50d2d0c7bdeb039bc2c87fc6d52c7e7
tree5f1f7e4b16547526c955a7f05db793c6d92daae5
parenta4e925905c98fb83538c164878946d77d0df1433
perf tools: Add Intel PT instruction decoder

Add support for decoding instructions for Intel Processor Trace.  The
kernel x86 instruction decoder is copied for this.

This essentially provides intel_pt_get_insn() which takes a binary
buffer, uses the kernel's x86 instruction decoder to get details of the
instruction and then categorizes it for consumption by an Intel PT
decoder.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1439450095-30122-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
12 files changed:
tools/build/Makefile.build
tools/perf/.gitignore
tools/perf/Makefile.perf
tools/perf/util/intel-pt-decoder/Build
tools/perf/util/intel-pt-decoder/gen-insn-attr-x86.awk [new file with mode: 0644]
tools/perf/util/intel-pt-decoder/inat.c [new file with mode: 0644]
tools/perf/util/intel-pt-decoder/inat.h [new file with mode: 0644]
tools/perf/util/intel-pt-decoder/insn.c [new file with mode: 0644]
tools/perf/util/intel-pt-decoder/insn.h [new file with mode: 0644]
tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c [new file with mode: 0644]
tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.h [new file with mode: 0644]
tools/perf/util/intel-pt-decoder/x86-opcode-map.txt [new file with mode: 0644]