This is an archive of the discontinued LLVM Phabricator instance.

[memprof] Return an error for unsupported symbolization.
ClosedPublic

Authored by snehasish on Jun 24 2022, 4:38 PM.

Details

Summary

Add a check to detect that the profiled binary was build with position
independent code. Add a test with a pie binary to which can be reused
later when support is added. Also clean up the error messages with
trailing colons.

Diff Detail

Event Timeline

snehasish created this revision.Jun 24 2022, 4:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 4:38 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
snehasish requested review of this revision.Jun 24 2022, 4:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 4:38 PM
tejohnson accepted this revision.Jun 24 2022, 4:47 PM

lgtm with test comment suggestion

llvm/test/tools/llvm-profdata/memprof-pic.test
2

Add a comment at the top about what this test is checking for (e.g. there's nothing here that says why we expect this to fail).

This revision is now accepted and ready to land.Jun 24 2022, 4:47 PM
snehasish updated this revision to Diff 439930.Jun 24 2022, 4:52 PM

Add test description.

snehasish marked an inline comment as done.Jun 24 2022, 4:53 PM

Thanks for the quick review.

This revision was landed with ongoing or failed builds.Jun 27 2022, 9:43 AM
This revision was automatically updated to reflect the committed changes.