aboutsummaryrefslogtreecommitdiffstats
path: root/test/tools/llvm-xray/X86/extract-instrmap.ll
blob: 8155d57f814b4f618058785aac67cb4b46a459d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; This test makes sure we can extract the instrumentation map from an
; XRay-instrumented object file.
;
; RUN: llvm-xray extract %S/Inputs/elf64-example.bin | FileCheck %s

; CHECK:      ---
; CHECK-NEXT: - { id: 1, address: 0x000000000041C900, function: 0x000000000041C900, kind: function-enter,
; CHECK-NEXT:     always-instrument: true }
; CHECK-NEXT: - { id: 1, address: 0x000000000041C912, function: 0x000000000041C900, kind: function-exit,
; CHECK-NEXT:     always-instrument: true }
; CHECK-NEXT: - { id: 2, address: 0x000000000041C930, function: 0x000000000041C930, kind: function-enter,
; CHECK-NEXT:    always-instrument: true }
; CHECK-NEXT: - { id: 2, address: 0x000000000041C946, function: 0x000000000041C930, kind: function-exit,
; CHECK-NEXT:     always-instrument: true }
; CHECK-NEXT: ...