summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-xray/AArch64/extract-instrmap-aarch64.test
blob: 8f39548c3f565d61bb935227804a9f3d2599010f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
This test makes sure we can extract the instrumentation map from an
XRay-instrumented PIE file.

RUN: yaml2obj %S/Inputs/elf64-pic.yaml -o %t.so
RUN: llvm-xray extract %t.so -s | FileCheck %s

CHECK:      ---
CHECK-NEXT: - { id: 1, address: 0x0000000000000420, function: 0x0000000000000420, kind: function-enter, always-instrument: true, function-name: 'foo()' }
CHECK-NEXT: - { id: 1, address: 0x0000000000000440, function: 0x0000000000000420, kind: function-exit, always-instrument: true, function-name: 'foo()' }
CHECK-NEXT: - { id: 2, address: 0x0000000000000464, function: 0x0000000000000464, kind: function-enter, always-instrument: true, function-name: 'bar()' }
CHECK-NEXT: - { id: 2, address: 0x0000000000000484, function: 0x0000000000000464, kind: function-exit, always-instrument: true, function-name: 'bar()' }
CHECK-NEXT: - { id: 3, address: 0x00000000000004A8, function: 0x00000000000004A8, kind: function-enter, always-instrument: true, function-name: 'jar()' }
CHECK-NEXT: - { id: 3, address: 0x00000000000004C8, function: 0x00000000000004A8, kind: function-exit, always-instrument: true, function-name: 'jar()' }
CHECK-NEXT: ...
OpenPOWER on IntegriCloud