aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorWalter Erquinigo <wallace@fb.com>2021-06-01 15:34:06 -0700
committerWalter Erquinigo <wallace@fb.com>2021-06-17 15:14:47 -0700
commitbf9f21a28be171dc500cc68b4cb1fcd3fc33f229 (patch)
tree15fe415b67514d3e546353eea9ed6b208bcf65ae /lldb/packages/Python/lldbsuite/test/dotest.py
parentc1360fd5fced42ea45ce1eacbf1c5e1ed54fcac5 (diff)
downloadllvm-bf9f21a28be171dc500cc68b4cb1fcd3fc33f229.zip
llvm-bf9f21a28be171dc500cc68b4cb1fcd3fc33f229.tar.gz
llvm-bf9f21a28be171dc500cc68b4cb1fcd3fc33f229.tar.bz2
[trace][intel-pt] Create basic SB API
This 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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index dc46f21..3e832d9 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -477,6 +477,7 @@ def setupSysPath():
pluginPath = os.path.join(scriptPath, 'plugins')
toolsLLDBVSCode = os.path.join(scriptPath, 'tools', 'lldb-vscode')
toolsLLDBServerPath = os.path.join(scriptPath, 'tools', 'lldb-server')
+ intelpt = os.path.join(scriptPath, 'tools', 'intelpt')
# Insert script dir, plugin dir and lldb-server dir to the sys.path.
sys.path.insert(0, pluginPath)
@@ -484,8 +485,11 @@ def setupSysPath():
# "import lldb_vscode_testcase" from the VSCode tests
sys.path.insert(0, toolsLLDBVSCode)
# Adding test/tools/lldb-server to the path makes it easy
- sys.path.insert(0, toolsLLDBServerPath)
# to "import lldbgdbserverutils" from the lldb-server tests
+ sys.path.insert(0, toolsLLDBServerPath)
+ # Adding test/tools/intelpt to the path makes it easy
+ # to "import intelpt_testcase" from the lldb-server tests
+ sys.path.insert(0, intelpt)
# This is the root of the lldb git/svn checkout
# When this changes over to a package instead of a standalone script, this