[trace][intelpt] Support system-wide tracing [6] - Break IntelPTCollector into smalle...
authorWalter Erquinigo <wallace@fb.com>
Thu, 5 May 2022 21:42:54 +0000 (14:42 -0700)
committerWalter Erquinigo <wallace@fb.com>
Tue, 17 May 2022 19:46:54 +0000 (12:46 -0700)
commit1188faa7ab4b005e3ee28f30055de2f76e210eb8
tree3207b36aaf2e37331da7d1164b8c48bd77e24bd4
parent1637545f689b8c4ef888ca385de75982a6a932e3
[trace][intelpt] Support system-wide tracing [6] - Break IntelPTCollector into smaller files and minor refactor

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.

Differential Revision: https://reviews.llvm.org/D125047
lldb/include/lldb/Utility/TraceGDBRemotePackets.h
lldb/source/Plugins/Process/Linux/CMakeLists.txt
lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp
lldb/source/Plugins/Process/Linux/IntelPTCollector.h
lldb/source/Plugins/Process/Linux/IntelPTPerThreadProcessTrace.cpp [new file with mode: 0644]
lldb/source/Plugins/Process/Linux/IntelPTPerThreadProcessTrace.h [new file with mode: 0644]
lldb/source/Plugins/Process/Linux/IntelPTThreadTraceCollection.cpp [new file with mode: 0644]
lldb/source/Plugins/Process/Linux/IntelPTThreadTraceCollection.h [new file with mode: 0644]