llvm-project/lldb/test/API/commands/trace
Walter Erquinigo fb19f11ef4 [trace][intel-pt] Scaffold the 'thread trace start | stop' commands
Depends on D90490.

The stop command is simple and invokes the new method Trace::StopTracingThread(thread).

On the other hand, the start command works by delegating its implementation to a CommandObject provided by the Trace plugin. This is necessary because each trace plugin needs different options for this command. There's even the chance that a Trace plugin can't support live tracing, but instead supports offline decoding and analysis, which means that "thread trace dump instructions" works but "thread trace start" doest. Because of this and a few other reasons, it's better to have each plugin provide this implementation.

Besides, I'm using the GetSupportedTraceType method introduced in D90490 to quickly infer what's the trace plug-in that works for the current process.

As an implementation note, I moved CommandObjectIterateOverThreads to its header so that I can use it from the IntelPT plugin. Besides, the actual start and stop logic for intel-pt is not part of this diff.

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D90729
2020-11-18 18:24:36 -08:00
..
intelpt-trace [trace][intel-pt] Implement the basic decoding functionality 2020-11-05 18:38:03 -08:00
intelpt-trace-multi-file [trace][intel-pt] Implement the basic decoding functionality 2020-11-05 18:38:03 -08:00
TestTraceDumpInstructions.py [trace][intel-pt] Scaffold the 'thread trace start | stop' commands 2020-11-18 18:24:36 -08:00
TestTraceLoad.py [trace] Scaffold "thread trace dump instructions" 2020-10-12 12:08:18 -07:00
TestTraceSchema.py [intel pt] Refactor parsing 2020-10-09 17:32:04 -07:00
TestTraceStartStop.py [trace][intel-pt] Scaffold the 'thread trace start | stop' commands 2020-11-18 18:24:36 -08:00