This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Allow symbolizers that don't obtain global symbol sizes
ClosedPublic

Authored by kubamracek on Nov 12 2015, 4:23 AM.

Details

Summary

The default symbolizer, llvm-symbolizer provides sizes for global symbols. On OS X, we want to also allow using atos (because it's available everywhere and users don't need to copy/install it) and dladdr (it's the only available option when running in a sandbox). However, these symbolizers do not supply the symbol sizes, only names and starting addresses. This patch changes the reporting functions to hide the size of the symbol when this value is unavailable, and modifies tests to make this part of the report "optional".

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek updated this revision to Diff 40028.Nov 12 2015, 4:23 AM
kubamracek retitled this revision from to [tsan] Allow symbolizers that don't obtain global symbol sizes.
kubamracek updated this object.
kubamracek added reviewers: dvyukov, kcc, glider, samsonov.
dvyukov accepted this revision.Nov 12 2015, 6:28 AM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Nov 12 2015, 6:28 AM
This revision was automatically updated to reflect the committed changes.