blob: 987aaf9801052628e8b67e6189a37aa626ddf480 [file] [log] [blame]
Petr Hosek493a0822018-12-14 01:37:56 +00001; This test makes sure we can extract the instrumentation map from an
2; XRay-instrumented PIE file.
3;
4; RUN: llvm-xray extract %S/Inputs/elf64-pie.bin -s | FileCheck %s
5
6; CHECK: ---
7; CHECK-NEXT: - { id: 1, address: 0x00000000000299C0, function: 0x00000000000299C0, kind: function-enter, always-instrument: true, function-name: {{.*foo.*}} }
8; CHECK-NEXT: - { id: 1, address: 0x00000000000299D0, function: 0x00000000000299C0, kind: function-exit, always-instrument: true, function-name: {{.*foo.*}} }
9; CHECK-NEXT: - { id: 2, address: 0x00000000000299E0, function: 0x00000000000299E0, kind: function-enter, always-instrument: true, function-name: {{.*bar.*}} }
10; CHECK-NEXT: - { id: 2, address: 0x00000000000299F6, function: 0x00000000000299E0, kind: function-exit, always-instrument: true, function-name: {{.*bar.*}} }
11; CHECK-NEXT: ...