]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/tools/llvm-xray/X86/convert-roundtrip.yaml
Vendor import of llvm release_40 branch r292009:
[FreeBSD/FreeBSD.git] / test / tools / llvm-xray / X86 / convert-roundtrip.yaml
1 #RUN: llvm-xray convert %s -f=raw -o %t && llvm-xray convert %t -f=yaml -o - | FileCheck %s
2 ---
3 header:
4   version: 1
5   type: 0
6   constant-tsc: true
7   nonstop-tsc: true
8   cycle-frequency: 2601000000
9 records:
10   - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-enter,
11     tsc: 10001 }
12   - { type: 0, func-id: 1, cpu: 1, thread: 111, kind: function-exit,
13     tsc: 10100 }
14 ...
15
16 #CHECK:       ---
17 #CHECK-NEXT:  header:
18 #CHECK-NEXT:    version: 1
19 #CHECK-NEXT:    type: 0
20 #CHECK-NEXT:    constant-tsc: true
21 #CHECK-NEXT:    nonstop-tsc: true
22 #CHECK-NEXT:    cycle-frequency: 2601000000
23 #CHECK-NEXT:  records:
24 #CHECK-NEXT:    - { type: 0, func-id: 1, function: '1', cpu: 1, thread: 111, kind: function-enter,
25 #CHECK-NEXT:      tsc: 10001 }
26 #CHECK-NEXT:    - { type: 0, func-id: 1, function: '1', cpu: 1, thread: 111, kind: function-exit,
27 #CHECK-NEXT:      tsc: 10100 }
28 #CHECK-NEXT:  ...