1 # REQUIRES: system-linux
2 # RUN: llvm-bolt %S/../../../llvm/test/tools/llvm-profgen/Inputs/noinline-cs-pseudoprobe.perfbin --print-pseudo-probes=all -o %t.bolt 2>&1 | FileCheck %s
4 ;; Report of decoding input pseudo probe binaries
6 ; CHECK: GUID: 6699318081062747564 Name: foo
7 ; CHECK: Hash: 563088904013236
8 ; CHECK: GUID: 15822663052811949562 Name: main
9 ; CHECK: Hash: 281479271677951
10 ; CHECK: GUID: 16434608426314478903 Name: bar
11 ; CHECK: Hash: 72617220756
13 CHECK: [Probe]: FUNC: bar Index: 1 Type: Block
14 CHECK: [Probe]: FUNC: bar Index: 4 Type: Block
15 CHECK: [Probe]: FUNC: foo Index: 1 Type: Block
16 CHECK: [Probe]: FUNC: foo Index: 2 Type: Block
17 CHECK: [Probe]: FUNC: foo Index: 5 Type: Block
18 CHECK: [Probe]: FUNC: foo Index: 6 Type: Block
19 CHECK: [Probe]: FUNC: foo Index: 2 Type: Block
20 CHECK: [Probe]: FUNC: foo Index: 3 Type: Block
21 CHECK: [Probe]: FUNC: foo Index: 4 Type: Block
22 CHECK: [Probe]: FUNC: foo Index: 8 Type: DirectCall
23 CHECK: [Probe]: FUNC: foo Index: 6 Type: Block
24 CHECK: [Probe]: FUNC: foo Index: 2 Type: Block
25 CHECK: [Probe]: FUNC: foo Index: 7 Type: Block
26 CHECK: [Probe]: FUNC: foo Index: 9 Type: DirectCall
27 CHECK: [Probe]: FUNC: main Index: 1 Type: Block
28 CHECK: [Probe]: FUNC: main Index: 2 Type: DirectCall
30 CHECK: Pseudo Probe Address Conversion results:
32 CHECK: Address: 0x201760 FUNC: bar Index: 1 Type: Block
33 CHECK: Address: 0x201760 FUNC: bar Index: 4 Type: Block
34 CHECK: Address: 0x201780 FUNC: foo Index: 1 Type: Block
35 CHECK: Address: 0x201780 FUNC: foo Index: 2 Type: Block
36 CHECK: Address: 0x20178d FUNC: foo Index: 5 Type: Block
37 CHECK: Address: 0x20178d FUNC: foo Index: 6 Type: Block
38 CHECK: Address: 0x20178d FUNC: foo Index: 2 Type: Block
39 CHECK: Address: 0x20179b FUNC: foo Index: 3 Type: Block
40 CHECK: Address: 0x2017ba FUNC: foo Index: 4 Type: Block
41 CHECK: Address: 0x2017bc FUNC: foo Index: 8 Type: DirectCall
42 CHECK: Address: 0x2017ba FUNC: foo Index: 6 Type: Block
43 CHECK: Address: 0x2017ba FUNC: foo Index: 2 Type: Block
44 CHECK: Address: 0x2017ce FUNC: foo Index: 7 Type: Block
45 CHECK: Address: 0x2017d5 FUNC: foo Index: 9 Type: DirectCall
46 CHECK: Address: 0x2017f0 FUNC: main Index: 1 Type: Block
47 CHECK: Address: 0x2017f4 FUNC: main Index: 2 Type: DirectCall
49 CHECK: Address: 2103136
50 CHECK-NEXT: [Probe]: FUNC: bar Index: 1 Type: Block
51 CHECK-NEXT: [Probe]: FUNC: bar Index: 4 Type: Block
52 CHECK-NEXT: Address: 2103168
53 CHECK-NEXT: [Probe]: FUNC: foo Index: 1 Type: Block
54 CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
55 CHECK-NEXT: Address: 2103181
56 CHECK-NEXT: [Probe]: FUNC: foo Index: 5 Type: Block
57 CHECK-NEXT: [Probe]: FUNC: foo Index: 6 Type: Block
58 CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
59 CHECK-NEXT: Address: 2103195
60 CHECK-NEXT: [Probe]: FUNC: foo Index: 3 Type: Block
61 CHECK-NEXT: Address: 2103226
62 CHECK-NEXT: [Probe]: FUNC: foo Index: 4 Type: Block
63 CHECK-NEXT: [Probe]: FUNC: foo Index: 6 Type: Block
64 CHECK-NEXT: [Probe]: FUNC: foo Index: 2 Type: Block
65 CHECK-NEXT: Address: 2103228
66 CHECK-NEXT: [Probe]: FUNC: foo Index: 8 Type: DirectCall
67 CHECK-NEXT: Address: 2103246
68 CHECK-NEXT: [Probe]: FUNC: foo Index: 7 Type: Block
69 CHECK-NEXT: Address: 2103253
70 CHECK-NEXT: [Probe]: FUNC: foo Index: 9 Type: DirectCall
71 CHECK-NEXT: Address: 2103280
72 CHECK-NEXT: [Probe]: FUNC: main Index: 1 Type: Block
73 CHECK-NEXT: Address: 2103284
74 CHECK-NEXT: [Probe]: FUNC: main Index: 2 Type: DirectCall