blob: 8155d57f814b4f618058785aac67cb4b46a459d9 [file] [log] [blame]
Dean Michael Berrisc92bfb52016-10-26 04:14:34 +00001; This test makes sure we can extract the instrumentation map from an
2; XRay-instrumented object file.
3;
4; RUN: llvm-xray extract %S/Inputs/elf64-example.bin | FileCheck %s
5
6; CHECK: ---
7; CHECK-NEXT: - { id: 1, address: 0x000000000041C900, function: 0x000000000041C900, kind: function-enter,
8; CHECK-NEXT: always-instrument: true }
9; CHECK-NEXT: - { id: 1, address: 0x000000000041C912, function: 0x000000000041C900, kind: function-exit,
10; CHECK-NEXT: always-instrument: true }
11; CHECK-NEXT: - { id: 2, address: 0x000000000041C930, function: 0x000000000041C930, kind: function-enter,
12; CHECK-NEXT: always-instrument: true }
13; CHECK-NEXT: - { id: 2, address: 0x000000000041C946, function: 0x000000000041C930, kind: function-exit,
14; CHECK-NEXT: always-instrument: true }
15; CHECK-NEXT: ...