This is an archive of the discontinued LLVM Phabricator instance.

[PERF2BOLT] Do not issue parsing error on weird build ids
ClosedPublic

Authored by rafauler on Sep 28 2022, 12:21 PM.

Details

Summary

In weird entries we were issueing a parse error. For example, in line 5 here:

6862acc063b0aa86595f52ff81628577df4296ff a.so
6862acc063b0aa86595f52ff81628577df4296ff a.so
6862acc063b0aa86595f52ff81628577df4296ff a.so
db758cb3c970044e78d5a4c99b011708a9995636 bin1
60326683eab31acfd03435d9ed4ff9a8 bin2
7d448e51851b4bdb33eac84f90e74628a14a5f00 b.so
742aa26e0211794356cc25f415c25230a26aa045 c.so

Error reading BOLT data input file: line 89, column 33: malformed field

Fix that.

Diff Detail

Event Timeline

rafauler created this revision.Sep 28 2022, 12:21 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
rafauler requested review of this revision.Sep 28 2022, 12:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 28 2022, 12:21 PM
rafauler edited the summary of this revision. (Show Details)Sep 28 2022, 12:35 PM

It is impossible to see in phabricator UI, but the line 5 I mention in the summary of this diff has several white spaces between a build ID and its binary name, and this build ID is shorter than all the other, so perf prints white spaces to align the binary name with the previous line.

Amir accepted this revision.Sep 28 2022, 2:10 PM

It is impossible to see in phabricator UI, but the line 5 I mention in the summary of this diff has several white spaces between a build ID and its binary name, and this build ID is shorter than all the other, so perf prints white spaces to align the binary name with the previous line.

You can try using markdown code block to preserve the original formatting.

This revision is now accepted and ready to land.Sep 28 2022, 2:10 PM
This revision was landed with ongoing or failed builds.Sep 28 2022, 2:42 PM
This revision was automatically updated to reflect the committed changes.