• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: printf '\377lprofr\201' > %t
2RUN: printf '\0\0\0\0\0\0\0\2' >> %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
8RUN: 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
11
12RUN: printf '\0\0\0\3' >> %t
13RUN: printf '\0\0\0\1' >> %t
14RUN: printf '\0\0\0\0\0\0\0\1' >> %t
15RUN: printf '\0\0\0\2\0\4\0\0' >> %t
16RUN: printf '\0\0\0\1\0\4\0\0' >> %t
17RUN: 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
20
21RUN: printf '\0\0\0\3' >> %t
22RUN: printf '\0\0\0\2' >> %t
23RUN: printf '\0\0\0\0\0\0\0\02' >> %t
24RUN: printf '\0\0\0\2\0\4\0\03' >> %t
25RUN: printf '\0\0\0\1\0\4\0\10' >> %t
26RUN: 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
29
30RUN: printf '\0\0\0\0\0\0\0\023' >> %t
31RUN: printf '\0\0\0\0\0\0\0\067' >> %t
32RUN: printf '\0\0\0\0\0\0\0\101' >> %t
33RUN: printf 'foobar\0\0' >> %t
34
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
52