Hi!
I’ve read the updated documentation about Sampling PGO in Clang (link) and found a mention about a new (for me) tool for converting Linux Perf profiles into LLVM-compatible profiles - llvm-profgen.
According to the help in llvm-profgen, Linux Perf profiles should be created with “perf record -b” (enabled LBR). However, it’s not clear right now - does llvm-profgen work with non-LBR profiles or not since the “should” word does not enforce this requirement (instead of “must”). I quickly checked the sources for llvm-profgen, and it seems like the tool works only with LBR profiles.
Does llvm-profgen support non-LBR profiles? If not, I suggest fixing the llvm-profgen help and writing a note about LBR-only supported profiles in the Clang documentation about Sampling PGO (like it’s already done for create_llvm_prof).
Thank you.