[trace] Add an option to save a compact trace bundleA trace bundle contains many trace files, and, in the case of intel pt, thelargest files are often the context switch traces because they are no
[trace] Add an option to save a compact trace bundleA trace bundle contains many trace files, and, in the case of intel pt, thelargest files are often the context switch traces because they are notcompressed by default. As a way to improve this, I'm adding a --compact optionto the `trace save` command that filters out unwanted processes from thecontext switch traces. Eventually we can do the same for intel pt traces aswell.Differential Revision: https://reviews.llvm.org/D129239
show more ...
Add LoadTraceFromFile to SBDebugger and SBTraceAdd trace load functionality to SBDebugger via the `LoadTraceFromFile` method.Update intelpt test case class to have `testTraceLoad` method so we can
Add LoadTraceFromFile to SBDebugger and SBTraceAdd trace load functionality to SBDebugger via the `LoadTraceFromFile` method.Update intelpt test case class to have `testTraceLoad` method so we can take advantage ofthe testApiAndSB decorator to test both the CLI and SB without duplicating code.Differential Revision: https://reviews.llvm.org/D128107
[trace][intelpt] Support system-wide tracing [20] - Rename some fields in the schemaAs discusses offline with @jj10305, we are updating some naming used throughout the code, specially in the json s
[trace][intelpt] Support system-wide tracing [20] - Rename some fields in the schemaAs discusses offline with @jj10305, we are updating some naming used throughout the code, specially in the json schema- traceBuffer -> iptTrace- core -> cpuDifferential Revision: https://reviews.llvm.org/D127817
[trace][intelpt] Support system-wide tracing [4] - Support per core tracing on lldb-serverThis diffs implements per-core tracing on lldb-server. It also includes tests that ensure that tracing can
[trace][intelpt] Support system-wide tracing [4] - Support per core tracing on lldb-serverThis diffs implements per-core tracing on lldb-server. It also includes tests that ensure that tracing can be initiated from the client and that the jLLDBGetState ppacket returns the list of trace buffers per core.This doesn't include any decoder changes.Finally, this makes some little changes here and there improving the existing code.A specific piece of code that can't reliably be tested is when tracingper core fails due to permissions. In this case we add atroubleshooting message and this is the manual test:```/proc/sys/kernel/perf_event_paranoid set to 1(lldb) process trace start --per-core-tracing error: perf event syscall failed: Permission denied You might need that /proc/sys/kernel/perf_event_paranoid has a value of 0 or -1.``Differential Revision: https://reviews.llvm.org/D124858
[trace][intelpt] Support system-wide tracing [2] - Add a dummy --per-core-tracing optionThis updates the documentation of the gdb-remote protocol, as well as the help messages, to include the new -
[trace][intelpt] Support system-wide tracing [2] - Add a dummy --per-core-tracing optionThis updates the documentation of the gdb-remote protocol, as well as the help messages, to include the new --per-core-tracing option.Differential Revision: https://reviews.llvm.org/D124640
[intel pt] Add TSC timestampsDifferential Revision: https://reviews.llvm.org/D106328
[trace][intel-pt] Create basic SB APIThis adds a basic SB API for creating and stopping traces.Note: This doesn't add any APIs for inspecting individual instructions. That'd be a more complicated
[trace][intel-pt] Create basic SB APIThis adds a basic SB API for creating and stopping traces.Note: This doesn't add any APIs for inspecting individual instructions. That'd be a more complicated change and it might be better to enhande the dump functionality to output the data in binary format. I'll leave that for a later diff.This also enhances the existing tests so that they test the same flow using both the command interface and the SB API.I also did some cleanup of legacy code.Differential Revision: https://reviews.llvm.org/D103500