File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN: yaml2obj %p/Inputs/blarge.yaml &> %t.exe
6
6
RUN: llvm-bolt %t.exe -o %t.null --data %p/Inputs/blarge.fdata -v=2 \
7
7
RUN: --reorder-blocks=normal --print-finalized --log-file=%t.log 2>&1 \
8
8
RUN: | FileCheck --check-prefix=CHECK --allow-empty %s
9
- RUN: cat %t.log | FileCheck %s --check-prefix=CHECK-LOG
9
+ RUN: FileCheck %s --check-prefix=CHECK-LOG --input-file %t.log
10
10
11
11
CHECK-NOT: BOLT-INFO
12
12
CHECK-NOT: BOLT-WARNING
@@ -16,4 +16,4 @@ CHECK-NOT: BOLT-ERROR
16
16
CHECK-LOG: BOLT-INFO: Target architecture
17
17
CHECK-LOG: BOLT-INFO: BOLT version
18
18
CHECK-LOG: BOLT-INFO: basic block reordering modified layout
19
- CHECK-LOG: Binary Function "usqrt "
19
+ CHECK-LOG: Binary Function "main "
Original file line number Diff line number Diff line change 3
3
REQUIRES: system-linux, perf
4
4
5
5
RUN: %clang %S/Inputs/perf_test.c -fuse-ld=lld -Wl,--script=%S/Inputs/perf_test.lds -o %t
6
- RUN: perf record -e cycles:u -o %t2 -- %t
6
+ RUN: perf record -Fmax - e cycles:u -o %t2 -- %t
7
7
RUN: perf2bolt %t -p=%t2 -o %t3 -nl -ignore-build-id 2>&1 | FileCheck %s
8
8
9
9
CHECK-NOT: PERF2BOLT-ERROR
10
10
CHECK-NOT: !! WARNING !! This high mismatch ratio indicates the input binary is probably not the same binary used during profiling collection.
11
11
12
12
RUN: %clang %S/Inputs/perf_test.c -no-pie -fuse-ld=lld -o %t4
13
- RUN: perf record -e cycles:u -o %t5 -- %t4
14
- RUN: perf2bolt %t4 -p=%t5 -o %t6 -nl -ignore-build-id 2>&1 | FileCheck %s --check-prefix=CHECK-NO-PIE
15
-
16
- CHECK-NO-PIE-NOT: PERF2BOLT-ERROR
17
- CHECK-NO-PIE-NOT: !! WARNING !! This high mismatch ratio indicates the input binary is probably not the same binary used during profiling collection.
13
+ RUN: perf record -Fmax -e cycles:u -o %t5 -- %t4
14
+ RUN: perf2bolt %t4 -p=%t5 -o %t6 -nl -ignore-build-id 2>&1 | FileCheck %s
You can’t perform that action at this time.
0 commit comments