This is an archive of the discontinued LLVM Phabricator instance.

[sanitizers] trace buffer API to use user-allocated buffer.
ClosedPublic

Authored by aizatsky on Aug 4 2016, 5:42 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

aizatsky updated this revision to Diff 66893.Aug 4 2016, 5:42 PM
aizatsky retitled this revision from to [sanitizers] trace buffer API to uses user-allocated buffer..
aizatsky updated this object.
aizatsky retitled this revision from [sanitizers] trace buffer API to uses user-allocated buffer. to [sanitizers] trace buffer API to use user-allocated buffer..Aug 4 2016, 5:45 PM
aizatsky added reviewers: kcc, vitalybuka.
aizatsky added a project: Restricted Project.Aug 4 2016, 5:48 PM
aizatsky added a subscriber: llvm-commits.
kcc added inline comments.Aug 4 2016, 6:04 PM
include/sanitizer/coverage_interface.h
67 ↗(On Diff #66894)

Is this really what you want?
Why do you need to reset the entire coverage just to rest the pc_buffer?
Sounds like an overkill.

aizatsky added inline comments.Aug 5 2016, 11:35 AM
include/sanitizer/coverage_interface.h
67 ↗(On Diff #66894)

I don't have a separate counter for the length at this point. I'm using the same counter that is already available because I don't want to add more synchronization. Quite easy to add though. WDYT?

kcc accepted this revision.Aug 5 2016, 11:44 AM
kcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Aug 5 2016, 11:44 AM
This revision was automatically updated to reflect the committed changes.