blob: 670bdb3ba854d6659a7e34ab14d09505dd3fcc70 [file] [log] [blame]
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +00001RUN: printf '\201rforpl\377' > %t
Xinliang David Lia82d6c02016-02-08 18:13:49 +00002RUN: printf '\3\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
Xinliang David Lia82d6c02016-02-08 18:13:49 +00005RUN: printf '\20\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +00006RUN: 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
Xinliang David Lia82d6c02016-02-08 18:13:49 +000012RUN: printf '\254\275\030\333\114\302\370\134' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000013RUN: printf '\1\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000014RUN: printf '\0\0\4\0\1\0\0\0' >> %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000015RUN: printf '\0\0\0\0\0\0\0\0' >> %t
16RUN: printf '\0\0\0\0\0\0\0\0' >> %t
Xinliang David Lia82d6c02016-02-08 18:13:49 +000017RUN: printf '\1\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000018
Xinliang David Lia82d6c02016-02-08 18:13:49 +000019RUN: printf '\067\265\035\031\112\165\023\344' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000020RUN: printf '\02\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000021RUN: printf '\10\0\4\0\1\0\0\0' >> %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000022RUN: printf '\0\0\0\0\0\0\0\0' >> %t
23RUN: printf '\0\0\0\0\0\0\0\0' >> %t
Xinliang David Lia82d6c02016-02-08 18:13:49 +000024RUN: printf '\02\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000025
26RUN: printf '\023\0\0\0\0\0\0\0' >> %t
27RUN: printf '\067\0\0\0\0\0\0\0' >> %t
28RUN: printf '\101\0\0\0\0\0\0\0' >> %t
Vedant Kumar86705ba2016-03-28 21:06:42 +000029RUN: printf '\7\0foo\1bar\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000030
31RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
32
33CHECK: Counters:
34CHECK: foo:
35CHECK: Hash: 0x0000000000000001
36CHECK: Counters: 1
37CHECK: Function count: 19
38CHECK: Block counts: []
39CHECK: bar:
40CHECK: Hash: 0x0000000000000002
41CHECK: Counters: 2
42CHECK: Function count: 55
43CHECK: Block counts: [65]
44CHECK: Functions shown: 2
45CHECK: Total functions: 2
46CHECK: Maximum function count: 55
47CHECK: Maximum internal block count: 65