blob: b97d8b5dac6dc970f1b5493802974e1c95f0b18b [file] [log] [blame]
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +00001RUN: printf '\377lprofr\201' > %t
2RUN: printf '\0\0\0\0\0\0\0\1' >> %t
3RUN: printf '\0\0\0\0\0\0\0\2' >> %t
4RUN: printf '\0\0\0\0\0\0\0\3' >> %t
5RUN: printf '\0\0\0\0\0\0\0\6' >> %t
6RUN: printf '\0\0\0\1\0\4\0\0' >> %t
7RUN: printf '\0\0\0\2\0\4\0\0' >> %t
8
9RUN: printf '\0\0\0\3' >> %t
10RUN: printf '\0\0\0\1' >> %t
11RUN: printf '\0\0\0\0\0\0\0\1' >> %t
12RUN: printf '\0\0\0\2\0\4\0\0' >> %t
13RUN: printf '\0\0\0\1\0\4\0\0' >> %t
14
15RUN: printf '\0\0\0\3' >> %t
16RUN: printf '\0\0\0\2' >> %t
17RUN: printf '\0\0\0\0\0\0\0\02' >> %t
18RUN: printf '\0\0\0\2\0\4\0\03' >> %t
19RUN: printf '\0\0\0\1\0\4\0\10' >> %t
20
21RUN: printf '\0\0\0\0\0\0\0\023' >> %t
22RUN: printf '\0\0\0\0\0\0\0\067' >> %t
23RUN: printf '\0\0\0\0\0\0\0\101' >> %t
24RUN: printf 'foobar' >> %t
25
26RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
27
28CHECK: Counters:
29CHECK: foo:
30CHECK: Hash: 0x0000000000000001
31CHECK: Counters: 1
32CHECK: Function count: 19
33CHECK: Block counts: []
34CHECK: bar:
35CHECK: Hash: 0x0000000000000002
36CHECK: Counters: 2
37CHECK: Function count: 55
38CHECK: Block counts: [65]
39CHECK: Functions shown: 2
40CHECK: Total functions: 2
41CHECK: Maximum function count: 55
42CHECK: Maximum internal block count: 65