1*0a6a1f1dSLionel SambucRUN: printf '\201rforpl\377' > %t-foo.profraw 2*0a6a1f1dSLionel SambucRUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw 3*0a6a1f1dSLionel SambucRUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw 4*0a6a1f1dSLionel SambucRUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw 5*0a6a1f1dSLionel SambucRUN: printf '\3\0\0\0\0\0\0\0' >> %t-foo.profraw 6*0a6a1f1dSLionel SambucRUN: printf '\0\0\4\0\1\0\0\0' >> %t-foo.profraw 7*0a6a1f1dSLionel SambucRUN: printf '\0\0\4\0\2\0\0\0' >> %t-foo.profraw 8*0a6a1f1dSLionel Sambuc 9*0a6a1f1dSLionel SambucRUN: printf '\3\0\0\0' >> %t-foo.profraw 10*0a6a1f1dSLionel SambucRUN: printf '\1\0\0\0' >> %t-foo.profraw 11*0a6a1f1dSLionel SambucRUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw 12*0a6a1f1dSLionel SambucRUN: printf '\0\0\4\0\2\0\0\0' >> %t-foo.profraw 13*0a6a1f1dSLionel SambucRUN: printf '\0\0\4\0\1\0\0\0' >> %t-foo.profraw 14*0a6a1f1dSLionel Sambuc 15*0a6a1f1dSLionel SambucRUN: printf '\023\0\0\0\0\0\0\0' >> %t-foo.profraw 16*0a6a1f1dSLionel SambucRUN: printf 'foo' >> %t-foo.profraw 17*0a6a1f1dSLionel Sambuc 18*0a6a1f1dSLionel SambucRUN: printf '\201rforpl\377' > %t-bar.profraw 19*0a6a1f1dSLionel SambucRUN: printf '\1\0\0\0\0\0\0\0' >> %t-bar.profraw 20*0a6a1f1dSLionel SambucRUN: printf '\1\0\0\0\0\0\0\0' >> %t-bar.profraw 21*0a6a1f1dSLionel SambucRUN: printf '\2\0\0\0\0\0\0\0' >> %t-bar.profraw 22*0a6a1f1dSLionel SambucRUN: printf '\3\0\0\0\0\0\0\0' >> %t-bar.profraw 23*0a6a1f1dSLionel SambucRUN: printf '\0\0\6\0\1\0\0\0' >> %t-bar.profraw 24*0a6a1f1dSLionel SambucRUN: printf '\0\0\6\0\2\0\0\0' >> %t-bar.profraw 25*0a6a1f1dSLionel Sambuc 26*0a6a1f1dSLionel SambucRUN: printf '\3\0\0\0' >> %t-bar.profraw 27*0a6a1f1dSLionel SambucRUN: printf '\2\0\0\0' >> %t-bar.profraw 28*0a6a1f1dSLionel SambucRUN: printf '\2\0\0\0\0\0\0\0' >> %t-bar.profraw 29*0a6a1f1dSLionel SambucRUN: printf '\0\0\6\0\2\0\0\0' >> %t-bar.profraw 30*0a6a1f1dSLionel SambucRUN: printf '\0\0\6\0\1\0\0\0' >> %t-bar.profraw 31*0a6a1f1dSLionel Sambuc 32*0a6a1f1dSLionel SambucRUN: printf '\067\0\0\0\0\0\0\0' >> %t-bar.profraw 33*0a6a1f1dSLionel SambucRUN: printf '\101\0\0\0\0\0\0\0' >> %t-bar.profraw 34*0a6a1f1dSLionel SambucRUN: printf 'bar' >> %t-bar.profraw 35*0a6a1f1dSLionel Sambuc 36*0a6a1f1dSLionel SambucVersions of the profiles that are padded to eight byte alignment. 37*0a6a1f1dSLionel SambucRUN: cat %t-foo.profraw > %t-foo-padded.profraw 38*0a6a1f1dSLionel SambucRUN: printf '\0\0\0\0\0' >> %t-foo-padded.profraw 39*0a6a1f1dSLionel SambucRUN: cat %t-bar.profraw > %t-bar-padded.profraw 40*0a6a1f1dSLionel SambucRUN: printf '\0\0\0\0\0' >> %t-bar-padded.profraw 41*0a6a1f1dSLionel Sambuc 42*0a6a1f1dSLionel SambucRUN: cat %t-foo-padded.profraw %t-bar.profraw > %t-pad-between.profraw 43*0a6a1f1dSLionel SambucRUN: cat %t-foo-padded.profraw %t-bar-padded.profraw > %t-pad.profraw 44*0a6a1f1dSLionel Sambuc 45*0a6a1f1dSLionel SambucRUN: llvm-profdata show %t-pad-between.profraw -all-functions -counts | FileCheck %s 46*0a6a1f1dSLionel SambucRUN: llvm-profdata show %t-pad.profraw -all-functions -counts | FileCheck %s 47*0a6a1f1dSLionel Sambuc 48*0a6a1f1dSLionel SambucCHECK: Counters: 49*0a6a1f1dSLionel SambucCHECK: foo: 50*0a6a1f1dSLionel SambucCHECK: Hash: 0x0000000000000001 51*0a6a1f1dSLionel SambucCHECK: Counters: 1 52*0a6a1f1dSLionel SambucCHECK: Function count: 19 53*0a6a1f1dSLionel SambucCHECK: Block counts: [] 54*0a6a1f1dSLionel SambucCHECK: bar: 55*0a6a1f1dSLionel SambucCHECK: Hash: 0x0000000000000002 56*0a6a1f1dSLionel SambucCHECK: Counters: 2 57*0a6a1f1dSLionel SambucCHECK: Function count: 55 58*0a6a1f1dSLionel SambucCHECK: Block counts: [65] 59*0a6a1f1dSLionel SambucCHECK: Functions shown: 2 60*0a6a1f1dSLionel SambucCHECK: Total functions: 2 61*0a6a1f1dSLionel SambucCHECK: Maximum function count: 55 62*0a6a1f1dSLionel SambucCHECK: Maximum internal block count: 65 63