2014-03-23 04:38:12 +01:00
|
|
|
RUN: printf '\377lprofr\201' > %t
|
2015-11-18 19:14:55 +01:00
|
|
|
RUN: printf '\0\0\0\0\0\0\0\2' >> %t
|
2014-03-23 04:38:12 +01:00
|
|
|
RUN: printf '\0\0\0\0\0\0\0\2' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\3' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\6' >> %t
|
|
|
|
RUN: printf '\0\0\0\1\0\4\0\0' >> %t
|
|
|
|
RUN: printf '\0\0\0\2\0\4\0\0' >> %t
|
2015-11-18 19:14:55 +01:00
|
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
2014-03-23 04:38:12 +01:00
|
|
|
|
|
|
|
RUN: printf '\0\0\0\3' >> %t
|
|
|
|
RUN: printf '\0\0\0\1' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\1' >> %t
|
|
|
|
RUN: printf '\0\0\0\2\0\4\0\0' >> %t
|
|
|
|
RUN: printf '\0\0\0\1\0\4\0\0' >> %t
|
2015-11-18 19:14:55 +01:00
|
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
2014-03-23 04:38:12 +01:00
|
|
|
|
|
|
|
RUN: printf '\0\0\0\3' >> %t
|
|
|
|
RUN: printf '\0\0\0\2' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\02' >> %t
|
|
|
|
RUN: printf '\0\0\0\2\0\4\0\03' >> %t
|
|
|
|
RUN: printf '\0\0\0\1\0\4\0\10' >> %t
|
2015-11-18 19:14:55 +01:00
|
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
2014-03-23 04:38:12 +01:00
|
|
|
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\023' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\067' >> %t
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0\101' >> %t
|
2015-11-18 19:14:55 +01:00
|
|
|
RUN: printf 'foobar\0\0' >> %t
|
2014-03-23 04:38:12 +01:00
|
|
|
|
|
|
|
RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
|
|
|
|
|
|
|
|
CHECK: Counters:
|
|
|
|
CHECK: foo:
|
|
|
|
CHECK: Hash: 0x0000000000000001
|
|
|
|
CHECK: Counters: 1
|
|
|
|
CHECK: Function count: 19
|
|
|
|
CHECK: Block counts: []
|
|
|
|
CHECK: bar:
|
|
|
|
CHECK: Hash: 0x0000000000000002
|
|
|
|
CHECK: Counters: 2
|
|
|
|
CHECK: Function count: 55
|
|
|
|
CHECK: Block counts: [65]
|
|
|
|
CHECK: Functions shown: 2
|
|
|
|
CHECK: Total functions: 2
|
|
|
|
CHECK: Maximum function count: 55
|
|
|
|
CHECK: Maximum internal block count: 65
|