llvm-project/lldb
Walter Erquinigo 1f49714d3e [trace][intelpt] Support system-wide tracing [4] - Support per core tracing on lldb-server
This 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 tracing
per core fails due to permissions. In this case we add a
troubleshooting 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
2022-05-17 12:46:54 -07:00
..
bindings [lldb/API] Turn SBCompileUnit::GetIndexForLineEntry into FindLineEntryIndex (NFC) 2022-05-13 18:33:05 -07:00
cmake [llvm][lldb] use FindLibEdit.cmake everywhere 2022-05-12 15:59:41 -07:00
docs [trace][intelpt] Support system-wide tracing [4] - Support per core tracing on lldb-server 2022-05-17 12:46:54 -07:00
examples [lldb] Prevent underflow in crashlog.py 2022-05-16 15:00:36 -07:00
include/lldb [trace][intelpt] Support system-wide tracing [4] - Support per core tracing on lldb-server 2022-05-17 12:46:54 -07:00
packages/Python/lldbsuite [trace][intelpt] Support system-wide tracing [4] - Support per core tracing on lldb-server 2022-05-17 12:46:54 -07:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source [trace][intelpt] Support system-wide tracing [4] - Support per core tracing on lldb-server 2022-05-17 12:46:54 -07:00
test [trace][intelpt] Support system-wide tracing [4] - Support per core tracing on lldb-server 2022-05-17 12:46:54 -07:00
third_party/Python/module [lldb][NFC] Inclusive language: replace master/slave names for ptys 2021-11-12 10:54:18 -06:00
tools [lldb-vscode] Fix data race in lldb-vscode when running with ThreadSanitizer 2022-05-17 09:11:45 -07:00
unittests [trace][intelpt] Support system-wide tracing [4] - Support per core tracing on lldb-server 2022-05-17 12:46:54 -07:00
utils [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
.clang-format
.clang-tidy [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
.gitignore
CMakeLists.txt [cmake] Make include(GNUInstallDirs) always below project(..) 2022-01-20 18:59:17 +00:00
CODE_OWNERS.txt [CODE OWNERS] Add wallace as code owner 2022-01-12 12:36:30 -08:00
LICENSE.TXT
use_lldb_suite_root.py