[PERF2BOLT] Fix aggregator wrt new output format of perf

Summary:
Perf is now outputting one less space, which broke our previous
(flaky) assumptions about field separators when processing the output
file. Make it more resilient by accepting any number of spaces before
reading LBR entries.

(cherry picked from FBD6014941)
This commit is contained in:
Rafael Auler 2017-10-09 15:52:13 -07:00 committed by Maksim Panchenko
parent f02c8c29ee
commit 9df6dce234
1 changed files with 1 additions and 2 deletions

View File

@ -476,8 +476,7 @@ ErrorOr<PerfSample> DataAggregator::parseSample() {
}
while (!checkAndConsumeNewLine()) {
if (!expectAndConsumeFS())
return make_error_code(llvm::errc::io_error);
checkAndConsumeFS();
auto LBRRes = parseLBREntry();
if (std::error_code EC = LBRRes.getError())