This is an archive of the discontinued LLVM Phabricator instance.

[trace][intelpt] Support system-wide tracing [6] - Break IntelPTCollector into smaller files and minor refactor
ClosedPublic

Authored by wallace on May 5 2022, 3:10 PM.

Details

Summary

IntelPTCollector is very big and has 3 classes in it. It's actually cleaner if each one has its own file. This also gives more visibility to the developer about the different kinds of "tracers" that we have.

Besides that, I'm now restricting the creation of the BinaryData chunks to GetState() instead of having it in different places, which is not very clean, because the gdb-remote protocol should be as restricted as possible.

Diff Detail

Event Timeline

wallace created this revision.May 5 2022, 3:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2022, 3:10 PM
Herald added a subscriber: mgorny. · View Herald Transcript
wallace requested review of this revision.May 5 2022, 3:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 5 2022, 3:10 PM
jj10306 accepted this revision.May 11 2022, 5:26 AM
jj10306 added inline comments.
lldb/source/Utility/TraceGDBRemotePackets.cpp
136

why is this needed now? I thought that unsigned ints were now supported by the json lib.
is this temporary because of the bug you address in D125322?

This revision is now accepted and ready to land.May 11 2022, 5:26 AM
wallace added inline comments.May 11 2022, 9:34 AM
lldb/source/Utility/TraceGDBRemotePackets.cpp
136

i just need to rebase :)