This is an archive of the discontinued LLVM Phabricator instance.

[asan] Do not instrument accesses to profiling globals
ClosedPublic

Authored by vsk on Jun 20 2016, 5:39 PM.

Details

Summary

It's only useful to asan-itize profiling globals while debugging llvm's
profiling instrumentation passes. Enabling asan along with instrprof or
gcov instrumentation shouldn't incur extra overhead.

This patch is in the same spirit as r264805 and r273202, which disabled
tsan instrumentation of instrprof/gcov globals.

N.b we don't actually need to add any special logic to asan to skip
instrprof globals, because they are marked private. This patch adds a
regression test for this specific use-case.

Diff Detail

Repository
rL LLVM

Event Timeline

vsk updated this revision to Diff 61327.Jun 20 2016, 5:39 PM
vsk retitled this revision from to [asan] Do not instrument accesses to profiling globals.
vsk updated this object.
vsk added reviewers: zaks.anna, davidxl.
vsk added a subscriber: llvm-commits.
zaks.anna accepted this revision.Jun 20 2016, 5:44 PM
zaks.anna edited edge metadata.

Thank you!

This revision is now accepted and ready to land.Jun 20 2016, 5:44 PM
zaks.anna edited edge metadata.Jun 20 2016, 5:45 PM
zaks.anna added a subscriber: kcc.
This revision was automatically updated to reflect the committed changes.