REQUIRES: zlib RUN: llvm-profdata show -sample %S/Inputs/unknown.section.extbin.profdata | FileCheck %s RUN: llvm-profdata show -sample %S/Inputs/unknown.section.compressed.extbin.profdata | FileCheck %s RUN: llvm-profdata show -sample -show-sec-info-only %S/Inputs/unknown.section.extbin.profdata | FileCheck %s -check-prefix=HDR RUN: llvm-profdata show -sample -show-sec-info-only %S/Inputs/unknown.section.compressed.extbin.profdata | FileCheck %s -check-prefix=HDR-COMPRESS # The input unknown.section.extbin.profdata contains an unknown section type # which uses an enum value which won't be used in the near future. Check # llvm-profdata can read it without problem. This is to ensure adding new # section in extbinary format for SampleFDO won't cause forward compatibility # issue. # unknown.section.compressed.extbin.profdata is the compressed version of # unknown.section.extbin.profdata. CHECK: Function: main: 366846, 0, 3 sampled lines CHECK-NEXT: Samples collected in the function's body { CHECK-NEXT: 2.1: 60401 CHECK-NEXT: 3: 0 CHECK-NEXT: 4: 0 CHECK-NEXT: } HDR: ProfileSummarySection - Offset: 242, Size: 121, Flags: {} HDR-NEXT: NameTableSection - Offset: 363, Size: 6, Flags: {} HDR-NEXT: UnknownSection - Offset: 369, Size: 1, Flags: {} HDR-NEXT: FuncOffsetTableSection - Offset: 391, Size: 3, Flags: {} HDR-NEXT: LBRProfileSection - Offset: 370, Size: 21, Flags: {} HDR-NEXT: ProfileSymbolListSection - Offset: 391, Size: 0, Flags: {} HDR-NEXT: FunctionMetadata - Offset: 394, Size: 0, Flags: {} HDR-NEXT: Header Size: 242 HDR-NEXT: Total Sections Size: 152 HDR-NEXT: File Size: 394 HDR-COMPRESS: ProfileSummarySection - Offset: 242, Size: 89, Flags: {compressed} HDR-COMPRESS-NEXT: NameTableSection - Offset: 331, Size: 16, Flags: {compressed} HDR-COMPRESS-NEXT: UnknownSection - Offset: 347, Size: 11, Flags: {compressed} HDR-COMPRESS-NEXT: FuncOffsetTableSection - Offset: 388, Size: 13, Flags: {compressed} HDR-COMPRESS-NEXT: LBRProfileSection - Offset: 358, Size: 30, Flags: {compressed} HDR-COMPRESS-NEXT: ProfileSymbolListSection - Offset: 388, Size: 0, Flags: {compressed} HDR-COMPRESS-NEXT: FunctionMetadata - Offset: 401, Size: 0, Flags: {compressed} HDR-COMPRESS-NEXT: Header Size: 242 HDR-COMPRESS-NEXT: Total Sections Size: 159 HDR-COMPRESS-NEXT: File Size: 401