• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: printf '\201rforpl\377' > %t
2RUN: printf '\2\0\0\0\0\0\0\0' >> %t
3RUN: 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
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 '\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
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 '\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
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 '\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
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