Duncan P. N. Exon Smith | 4680361 | 2014-03-23 03:38:12 +0000 | [diff] [blame] | 1 | RUN: printf '\201rforpl\377' > %t |
Betul Buyukkurt | 6fac174 | 2015-11-18 18:14:55 +0000 | [diff] [blame^] | 2 | RUN: printf '\2\0\0\0\0\0\0\0' >> %t |
Duncan P. N. Exon Smith | 4680361 | 2014-03-23 03:38:12 +0000 | [diff] [blame] | 3 | RUN: printf '\2\0\0\0\0\0\0\0' >> %t |
| 4 | RUN: printf '\3\0\0\0\0\0\0\0' >> %t |
| 5 | RUN: printf '\6\0\0\0\0\0\0\0' >> %t |
| 6 | RUN: printf '\0\0\4\0\1\0\0\0' >> %t |
| 7 | RUN: printf '\0\0\4\0\2\0\0\0' >> %t |
Betul Buyukkurt | 6fac174 | 2015-11-18 18:14:55 +0000 | [diff] [blame^] | 8 | RUN: printf '\0\0\0\0\0\0\0\0' >> %t |
| 9 | RUN: printf '\0\0\0\0\0\0\0\0' >> %t |
| 10 | RUN: printf '\0\0\0\0\0\0\0\0' >> %t |
Duncan P. N. Exon Smith | 4680361 | 2014-03-23 03:38:12 +0000 | [diff] [blame] | 11 | |
| 12 | RUN: printf '\3\0\0\0' >> %t |
| 13 | RUN: printf '\1\0\0\0' >> %t |
| 14 | RUN: printf '\1\0\0\0\0\0\0\0' >> %t |
| 15 | RUN: printf '\0\0\4\0\2\0\0\0' >> %t |
| 16 | RUN: printf '\0\0\4\0\1\0\0\0' >> %t |
Betul Buyukkurt | 6fac174 | 2015-11-18 18:14:55 +0000 | [diff] [blame^] | 17 | RUN: printf '\0\0\0\0\0\0\0\0' >> %t |
| 18 | RUN: printf '\0\0\0\0\0\0\0\0' >> %t |
| 19 | RUN: printf '\0\0\0\0\0\0\0\0' >> %t |
Duncan P. N. Exon Smith | 4680361 | 2014-03-23 03:38:12 +0000 | [diff] [blame] | 20 | |
| 21 | RUN: printf '\03\0\0\0' >> %t |
| 22 | RUN: printf '\02\0\0\0' >> %t |
| 23 | RUN: printf '\02\0\0\0\0\0\0\0' >> %t |
| 24 | RUN: printf '\03\0\4\0\2\0\0\0' >> %t |
| 25 | RUN: printf '\10\0\4\0\1\0\0\0' >> %t |
Betul Buyukkurt | 6fac174 | 2015-11-18 18:14:55 +0000 | [diff] [blame^] | 26 | RUN: printf '\0\0\0\0\0\0\0\0' >> %t |
| 27 | RUN: printf '\0\0\0\0\0\0\0\0' >> %t |
| 28 | RUN: printf '\0\0\0\0\0\0\0\0' >> %t |
Duncan P. N. Exon Smith | 4680361 | 2014-03-23 03:38:12 +0000 | [diff] [blame] | 29 | |
| 30 | RUN: printf '\023\0\0\0\0\0\0\0' >> %t |
| 31 | RUN: printf '\067\0\0\0\0\0\0\0' >> %t |
| 32 | RUN: printf '\101\0\0\0\0\0\0\0' >> %t |
Betul Buyukkurt | 6fac174 | 2015-11-18 18:14:55 +0000 | [diff] [blame^] | 33 | RUN: printf 'foobar\0\0' >> %t |
Duncan P. N. Exon Smith | 4680361 | 2014-03-23 03:38:12 +0000 | [diff] [blame] | 34 | |
| 35 | RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s |
| 36 | |
| 37 | CHECK: Counters: |
| 38 | CHECK: foo: |
| 39 | CHECK: Hash: 0x0000000000000001 |
| 40 | CHECK: Counters: 1 |
| 41 | CHECK: Function count: 19 |
| 42 | CHECK: Block counts: [] |
| 43 | CHECK: bar: |
| 44 | CHECK: Hash: 0x0000000000000002 |
| 45 | CHECK: Counters: 2 |
| 46 | CHECK: Function count: 55 |
| 47 | CHECK: Block counts: [65] |
| 48 | CHECK: Functions shown: 2 |
| 49 | CHECK: Total functions: 2 |
| 50 | CHECK: Maximum function count: 55 |
| 51 | CHECK: Maximum internal block count: 65 |