OSDN Git Service

[XRay] Implement `llvm-xray convert` -- trace file conversion
authorDean Michael Berris <dberris@google.com>
Tue, 10 Jan 2017 02:38:11 +0000 (02:38 +0000)
committerDean Michael Berris <dberris@google.com>
Tue, 10 Jan 2017 02:38:11 +0000 (02:38 +0000)
commit6e1f066adf1fd96dc62b8fcf57386fadc3bdf570
tree5e1c06b0b73892d7446f8e64dbd950dee23cfe80
parent0a5dcd60fde7f4b60b3584f5bd433afd538ed414
[XRay] Implement `llvm-xray convert` -- trace file conversion

This is the second part of a multi-part change to define additional
subcommands to the `llvm-xray` tool.

This change defines a conversion subcommand to take XRay log files, and
turns them from one format to another (binary or YAML). This currently
only supports the first version of the log file format, defined in the
compiler-rt runtime.

Depends on D21987.

Reviewers: dblaikie, echristo

Subscribers: mehdi_amini, dberris, beanz, llvm-commits

Differential Revision: https://reviews.llvm.org/D24376

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291529 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
test/tools/llvm-xray/X86/Inputs/elf64-objcopied-instrmap.bin [new file with mode: 0755]
test/tools/llvm-xray/X86/Inputs/elf64-sample-o2.bin [new file with mode: 0755]
test/tools/llvm-xray/X86/Inputs/naive-log-simple.xray [new file with mode: 0644]
test/tools/llvm-xray/X86/Inputs/simple-xray-instrmap.yaml [new file with mode: 0644]
test/tools/llvm-xray/X86/bad-instrmap-sizes.txt [moved from test/tools/llvm-xray/X86/bad-instrmap-sizes.bin with 100% similarity]
test/tools/llvm-xray/X86/convert-roundtrip.yaml [new file with mode: 0644]
test/tools/llvm-xray/X86/convert-to-yaml.txt [new file with mode: 0644]
test/tools/llvm-xray/X86/convert-with-debug-syms.txt [new file with mode: 0644]
test/tools/llvm-xray/X86/convert-with-standalone-instrmap.txt [new file with mode: 0644]
test/tools/llvm-xray/X86/convert-with-yaml-instrmap.txt [new file with mode: 0644]
tools/llvm-xray/CMakeLists.txt
tools/llvm-xray/func-id-helper.cc [new file with mode: 0644]
tools/llvm-xray/func-id-helper.h [new file with mode: 0644]
tools/llvm-xray/xray-converter.cc [new file with mode: 0644]
tools/llvm-xray/xray-converter.h [new file with mode: 0644]
tools/llvm-xray/xray-extract.cc
tools/llvm-xray/xray-log-reader.cc [new file with mode: 0644]
tools/llvm-xray/xray-log-reader.h [new file with mode: 0644]
tools/llvm-xray/xray-record-yaml.h [new file with mode: 0644]
tools/llvm-xray/xray-record.h [new file with mode: 0644]