blob: 75cc84d68862d0f7f3d0136b9893956e62abc7bd [file] [log] [blame]
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +00001RUN: printf '\377lprofr\201' > %t
Xinliang David Li78d61b12016-05-05 04:07:30 +00002RUN: printf '\0\0\0\0\0\0\0\4' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +00003RUN: printf '\0\0\0\0\0\0\0\2' >> %t
4RUN: printf '\0\0\0\0\0\0\0\3' >> %t
Xinliang David Lia82d6c02016-02-08 18:13:49 +00005RUN: printf '\0\0\0\0\0\0\0\20' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +00006RUN: printf '\0\0\0\1\0\4\0\0' >> %t
7RUN: printf '\0\0\0\2\0\4\0\0' >> %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +00008RUN: printf '\0\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +00009
Xinliang David Lia82d6c02016-02-08 18:13:49 +000010RUN: printf '\134\370\302\114\333\030\275\254' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000011RUN: printf '\0\0\0\0\0\0\0\1' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000012RUN: printf '\0\0\0\1\0\4\0\0' >> %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000013RUN: printf '\0\0\0\0\0\0\0\0' >> %t
14RUN: printf '\0\0\0\0\0\0\0\0' >> %t
Xinliang David Lia82d6c02016-02-08 18:13:49 +000015RUN: printf '\0\0\0\1\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000016
Xinliang David Lia82d6c02016-02-08 18:13:49 +000017RUN: printf '\344\023\165\112\031\035\265\067' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000018RUN: printf '\0\0\0\0\0\0\0\02' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000019RUN: printf '\0\0\0\1\0\4\0\10' >> %t
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000020RUN: printf '\0\0\0\0\0\0\0\0' >> %t
21RUN: printf '\0\0\0\0\0\0\0\0' >> %t
Xinliang David Lia82d6c02016-02-08 18:13:49 +000022RUN: printf '\0\0\0\02\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000023
24RUN: printf '\0\0\0\0\0\0\0\023' >> %t
25RUN: printf '\0\0\0\0\0\0\0\067' >> %t
26RUN: printf '\0\0\0\0\0\0\0\101' >> %t
Vedant Kumar86705ba2016-03-28 21:06:42 +000027RUN: printf '\7\0foo\1bar\0\0\0\0\0\0\0' >> %t
Duncan P. N. Exon Smith46803612014-03-23 03:38:12 +000028
29RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
30
31CHECK: Counters:
32CHECK: foo:
33CHECK: Hash: 0x0000000000000001
34CHECK: Counters: 1
35CHECK: Function count: 19
36CHECK: Block counts: []
37CHECK: bar:
38CHECK: Hash: 0x0000000000000002
39CHECK: Counters: 2
40CHECK: Function count: 55
41CHECK: Block counts: [65]
42CHECK: Functions shown: 2
43CHECK: Total functions: 2
44CHECK: Maximum function count: 55
45CHECK: Maximum internal block count: 65