[trace][intelpt] Support system-wide tracing [7] - Create a base IntelPTProcessTrace...
authorWalter Erquinigo <wallace@fb.com>
Thu, 12 May 2022 17:07:29 +0000 (10:07 -0700)
committerWalter Erquinigo <wallace@fb.com>
Wed, 15 Jun 2022 19:07:59 +0000 (12:07 -0700)
commit1f56f7fc16bcb9966d508e462e0f408080fdb362
treeab8af57b320083c0d12f996428ca587cb77d9d24
parentbc1f24332af3dedccb84a975e57adca495ea016d
[trace][intelpt] Support system-wide tracing [7] - Create a base IntelPTProcessTrace class

We have two different "process trace" implementations: per thread and per core. As a way to simplify the collector who uses both, I'm creating a base abstract class that is used by these implementations. This effectively simplify a good chunk of code.

Differential Revision: https://reviews.llvm.org/D125503
lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp
lldb/source/Plugins/Process/Linux/IntelPTCollector.h
lldb/source/Plugins/Process/Linux/IntelPTMultiCoreTrace.cpp
lldb/source/Plugins/Process/Linux/IntelPTMultiCoreTrace.h
lldb/source/Plugins/Process/Linux/IntelPTPerThreadProcessTrace.cpp
lldb/source/Plugins/Process/Linux/IntelPTPerThreadProcessTrace.h
lldb/source/Plugins/Process/Linux/IntelPTProcessTrace.h [new file with mode: 0644]
lldb/test/API/commands/trace/multiple-threads/TestTraceStartStopMultipleThreads.py