summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-xray/X86/extract-instrmap-symbolize.ll
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-04-18 23:23:54 +0000
committerDean Michael Berris <dberris@google.com>2017-04-18 23:23:54 +0000
commit918802bed47a6083c968406371e1b3f71ae95a74 (patch)
tree08b854fbb209894680242462184d0c2dfcd17a6f /llvm/test/tools/llvm-xray/X86/extract-instrmap-symbolize.ll
parent94b2bde631ae32ac733e2a8ca920e6a8bfa99150 (diff)
downloadbcm5719-llvm-918802bed47a6083c968406371e1b3f71ae95a74.tar.gz
bcm5719-llvm-918802bed47a6083c968406371e1b3f71ae95a74.zip
[XRay][tools] Add option to llvm-xray extract to symbolize functions
Summary: This allows us to, if the symbol names are available in the binary, be able to provide the function name in the YAML output. Reviewers: dblaikie, pelikan Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32153 llvm-svn: 300624
Diffstat (limited to 'llvm/test/tools/llvm-xray/X86/extract-instrmap-symbolize.ll')
-rw-r--r--llvm/test/tools/llvm-xray/X86/extract-instrmap-symbolize.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-xray/X86/extract-instrmap-symbolize.ll b/llvm/test/tools/llvm-xray/X86/extract-instrmap-symbolize.ll
new file mode 100644
index 00000000000..86358ca5c13
--- /dev/null
+++ b/llvm/test/tools/llvm-xray/X86/extract-instrmap-symbolize.ll
@@ -0,0 +1,10 @@
+; This tests that we can extract the instrumentation map and symbolize the
+; function addresses.
+; RUN: llvm-xray extract %S/Inputs/elf64-example.bin -s | FileCheck %s
+
+; CHECK: ---
+; CHECK-NEXT: - { id: 1, address: 0x000000000041C900, function: 0x000000000041C900, kind: function-enter, always-instrument: true, function-name: {{.*foo.*}} }
+; CHECK-NEXT: - { id: 1, address: 0x000000000041C912, function: 0x000000000041C900, kind: function-exit, always-instrument: true, function-name: {{.*foo.*}} }
+; CHECK-NEXT: - { id: 2, address: 0x000000000041C930, function: 0x000000000041C930, kind: function-enter, always-instrument: true, function-name: {{.*bar.*}} }
+; CHECK-NEXT: - { id: 2, address: 0x000000000041C946, function: 0x000000000041C930, kind: function-exit, always-instrument: true, function-name: {{.*bar.*}} }
+; CHECK-NEXT: ...
OpenPOWER on IntegriCloud