[llvm] [BOLT] Add pre-parsed perf script support (PR #163785)

Ádám Kallai via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 14:51:32 PDT 2026


================
@@ -531,6 +531,9 @@ std::error_code DataAggregator::parsePerfScriptFileHeader() {
     PPI->Offset = Offset;
     PPI->Length = Length;
     Offset = Offset + Length;
+
+    while (checkAndConsumeFS()) {
----------------
kaadam wrote:

FYI: The file header has a 132-byte maximum length and it is padded with whitespace. If the contents are short, we need to consume any remaining whitespace at the end of the header. Unit-test extended. 

https://github.com/llvm/llvm-project/pull/163785


More information about the llvm-commits mailing list