blob: a377375c1768c10ba6cedd1ac9a3cc251eeab94a [file] [log] [blame]
Justin Bognera119f322014-05-16 00:38:00 +00001RUN: printf '\201rforpl\377' > %t-foo.profraw
Xinliang David Li78d61b12016-05-05 04:07:30 +00002RUN: printf '\4\0\0\0\0\0\0\0' >> %t-foo.profraw
Xinliang David Lia82d6c02016-02-08 18:13:49 +00003RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
4RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
5RUN: printf '\10\0\0\0\0\0\0\0' >> %t-foo.profraw
Justin Bognera119f322014-05-16 00:38:00 +00006RUN: printf '\0\0\4\0\1\0\0\0' >> %t-foo.profraw
7RUN: printf '\0\0\4\0\2\0\0\0' >> %t-foo.profraw
Betul Buyukkurt6fac1742015-11-18 18:14:55 +00008RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
Justin Bognera119f322014-05-16 00:38:00 +00009
Xinliang David Lia82d6c02016-02-08 18:13:49 +000010RUN: printf '\254\275\030\333\114\302\370\134' >> %t-foo.profraw
Justin Bognera119f322014-05-16 00:38:00 +000011RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
Justin Bognera119f322014-05-16 00:38:00 +000012RUN: printf '\0\0\4\0\1\0\0\0' >> %t-foo.profraw
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000013RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
14RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
Xinliang David Lia82d6c02016-02-08 18:13:49 +000015RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
Justin Bognera119f322014-05-16 00:38:00 +000016
17RUN: printf '\023\0\0\0\0\0\0\0' >> %t-foo.profraw
Xinliang David Lia82d6c02016-02-08 18:13:49 +000018RUN: printf '\3\0foo\0\0\0' >> %t-foo.profraw
Justin Bognera119f322014-05-16 00:38:00 +000019
20RUN: printf '\201rforpl\377' > %t-bar.profraw
Xinliang David Li78d61b12016-05-05 04:07:30 +000021RUN: printf '\4\0\0\0\0\0\0\0' >> %t-bar.profraw
Justin Bognera119f322014-05-16 00:38:00 +000022RUN: printf '\1\0\0\0\0\0\0\0' >> %t-bar.profraw
23RUN: printf '\2\0\0\0\0\0\0\0' >> %t-bar.profraw
Xinliang David Lia82d6c02016-02-08 18:13:49 +000024RUN: printf '\10\0\0\0\0\0\0\0' >> %t-bar.profraw
Justin Bognera119f322014-05-16 00:38:00 +000025RUN: printf '\0\0\6\0\1\0\0\0' >> %t-bar.profraw
26RUN: printf '\0\0\6\0\2\0\0\0' >> %t-bar.profraw
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000027RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
Justin Bognera119f322014-05-16 00:38:00 +000028
Xinliang David Lia82d6c02016-02-08 18:13:49 +000029RUN: printf '\067\265\035\031\112\165\023\344' >> %t-bar.profraw
30RUN: printf '\02\0\0\0\0\0\0\0' >> %t-bar.profraw
Justin Bognera119f322014-05-16 00:38:00 +000031RUN: printf '\0\0\6\0\1\0\0\0' >> %t-bar.profraw
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000032RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
33RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
Xinliang David Lia82d6c02016-02-08 18:13:49 +000034RUN: printf '\02\0\0\0\0\0\0\0' >> %t-bar.profraw
Justin Bognera119f322014-05-16 00:38:00 +000035
36RUN: printf '\067\0\0\0\0\0\0\0' >> %t-bar.profraw
37RUN: printf '\101\0\0\0\0\0\0\0' >> %t-bar.profraw
Xinliang David Lia82d6c02016-02-08 18:13:49 +000038RUN: printf '\3\0bar\0\0\0' >> %t-bar.profraw
Justin Bognera119f322014-05-16 00:38:00 +000039
Betul Buyukkurt6fac1742015-11-18 18:14:55 +000040RUN: cat %t-foo.profraw %t-bar.profraw > %t-pad.profraw
Justin Bognera119f322014-05-16 00:38:00 +000041RUN: llvm-profdata show %t-pad.profraw -all-functions -counts | FileCheck %s
42
43CHECK: Counters:
44CHECK: foo:
45CHECK: Hash: 0x0000000000000001
46CHECK: Counters: 1
47CHECK: Function count: 19
48CHECK: Block counts: []
49CHECK: bar:
50CHECK: Hash: 0x0000000000000002
51CHECK: Counters: 2
52CHECK: Function count: 55
53CHECK: Block counts: [65]
54CHECK: Functions shown: 2
55CHECK: Total functions: 2
56CHECK: Maximum function count: 55
57CHECK: Maximum internal block count: 65