blob: d2f410a6bb950c579ace7cebd16c83d5617f76b5 [file] [log] [blame]
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +00001RUN: printf '\201rforpl\377' > %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +00002RUN: printf '\2\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +00003RUN: printf '\2\0\0\0\0\0\0\0' >> %t
4RUN: printf '\3\0\0\0\0\0\0\0' >> %t
5RUN: printf '\6\0\0\0\0\0\0\0' >> %t
6RUN: printf '\0\0\4\0\1\0\0\0' >> %t
7RUN: printf '\0\0\4\0\2\0\0\0' >> %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +00008RUN: printf '\0\0\0\0\0\0\0\0' >> %t
9RUN: printf '\0\0\0\0\0\0\0\0' >> %t
10RUN: printf '\0\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000011
12RUN: printf '\3\0\0\0' >> %t
13RUN: printf '\1\0\0\0' >> %t
14RUN: printf '\1\0\0\0\0\0\0\0' >> %t
15RUN: printf '\0\0\4\0\2\0\0\0' >> %t
16RUN: printf '\0\0\4\0\1\0\0\0' >> %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000017RUN: printf '\0\0\0\0\0\0\0\0' >> %t
18RUN: printf '\0\0\0\0\0\0\0\0' >> %t
19RUN: printf '\0\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000020
21RUN: printf '\03\0\0\0' >> %t
22RUN: printf '\02\0\0\0' >> %t
23RUN: printf '\02\0\0\0\0\0\0\0' >> %t
24RUN: printf '\03\0\4\0\2\0\0\0' >> %t
25RUN: printf '\10\0\4\0\1\0\0\0' >> %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000026RUN: printf '\0\0\0\0\0\0\0\0' >> %t
27RUN: printf '\0\0\0\0\0\0\0\0' >> %t
28RUN: printf '\0\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000029
30RUN: printf '\023\0\0\0\0\0\0\0' >> %t
31RUN: printf '\067\0\0\0\0\0\0\0' >> %t
32RUN: printf '\101\0\0\0\0\0\0\0' >> %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000033RUN: printf 'foobar\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000034
35RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
36
37CHECK: Counters:
38CHECK: foo:
39CHECK: Hash: 0x0000000000000001
40CHECK: Counters: 1
41CHECK: Function count: 19
42CHECK: Block counts: []
43CHECK: bar:
44CHECK: Hash: 0x0000000000000002
45CHECK: Counters: 2
46CHECK: Function count: 55
47CHECK: Block counts: [65]
48CHECK: Functions shown: 2
49CHECK: Total functions: 2
50CHECK: Maximum function count: 55
51CHECK: Maximum internal block count: 65