mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 19:26:36 +00:00

When a basic sample profile is gathered without LBR info, the generated profile contains a "no-lbr" tag in the first line of the fdata file. This PR fixes merge-fdata to recognize and save this tag to the output file.
19 lines
366 B
Plaintext
19 lines
366 B
Plaintext
## Check that merge-fdata tool correctly processes fdata files with header
|
|
## string produced by no-lbr mode (no_lbr)
|
|
|
|
# REQUIRES: system-linux
|
|
|
|
# RUN: split-file %s %t
|
|
# RUN: merge-fdata %t/a.fdata %t/b.fdata -o %t/merged.fdata
|
|
# RUN: FileCheck %s --input-file %t/merged.fdata
|
|
|
|
# CHECK: no_lbr
|
|
# CHECK: main 2
|
|
|
|
#--- a.fdata
|
|
no_lbr
|
|
main 1
|
|
#--- b.fdata
|
|
no_lbr
|
|
main 1
|