This is an archive of the discontinued LLVM Phabricator instance.

[trace][intelpt] Support system-wide tracing [22] - Some final touches
ClosedPublic

Authored by wallace on Jun 15 2022, 10:38 AM.

Details

Summary

Having a member variable TraceIntelPT * makes it look as if it was
optional. I'm using instead a weak_ptr to indicate that it's not
optional and the object is under the ownership of TraceIntelPT.

Besides that, I've simplified the Perf aux and data buffers copying by
using vector.insert.

I'm also renaming Lookup2 to Lookup. The 2 in the name is confusing.

Diff Detail

Event Timeline

wallace created this revision.Jun 15 2022, 10:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 10:38 AM
wallace requested review of this revision.Jun 15 2022, 10:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 10:38 AM
wallace updated this revision to Diff 437247.Jun 15 2022, 10:56 AM
wallace retitled this revision from [trace][intelpt] Support system-wide tracing [22] - Use a weak pointer to avoid using a pointer to the Trace to [trace][intelpt] Support system-wide tracing [22] - Some final touches.
wallace edited the summary of this revision. (Show Details)

.

jj10306 accepted this revision.Jun 15 2022, 12:55 PM
This revision is now accepted and ready to land.Jun 15 2022, 12:55 PM
This revision was landed with ongoing or failed builds.Jun 16 2022, 11:42 AM
This revision was automatically updated to reflect the committed changes.