[Lldb-commits] [lldb] 600a2a7 - [NFC] Remove deprecated Intel PT test

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 26 10:34:13 PDT 2021


Author: Walter Erquinigo
Date: 2021-08-26T10:34:04-07:00
New Revision: 600a2a7ec07aa0215c094d2d8b4c0325189ad30d

URL: https://github.com/llvm/llvm-project/commit/600a2a7ec07aa0215c094d2d8b4c0325189ad30d
DIFF: https://github.com/llvm/llvm-project/commit/600a2a7ec07aa0215c094d2d8b4c0325189ad30d.diff

LOG: [NFC] Remove deprecated Intel PT test

Added: 
    

Modified: 
    

Removed: 
    lldb/test/API/tools/intel-features/intel-pt/test/TestIntelPTSimpleBinary.py


################################################################################
diff  --git a/lldb/test/API/tools/intel-features/intel-pt/test/TestIntelPTSimpleBinary.py b/lldb/test/API/tools/intel-features/intel-pt/test/TestIntelPTSimpleBinary.py
deleted file mode 100644
index 8c6c9cf4fbb75..0000000000000
--- a/lldb/test/API/tools/intel-features/intel-pt/test/TestIntelPTSimpleBinary.py
+++ /dev/null
@@ -1,61 +0,0 @@
-from __future__ import print_function
-
-import os
-import lldb
-import time
-
-from lldbsuite.test.decorators import *
-from lldbsuite.test.lldbtest import *
-from lldbsuite.test import lldbutil
-from lldbsuite.test import configuration
-
-
-class TestIntelPTSimpleBinary(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-    NO_DEBUG_INFO_TESTCASE = True
-
-    def setUp(self):
-        TestBase.setUp(self)
-
-        if 'intel-pt' not in configuration.enabled_plugins:
-            self.skipTest("The intel-pt test plugin is not enabled")
-
-        plugin_path = os.path.join(configuration.lldb_libs_dir, "liblldbIntelFeatures.so")
-        self.runCmd("plugin load " + plugin_path)
-
-    @skipIf(oslist=no_match(['linux']))
-    @skipIf(archs=no_match(['i386', 'x86_64']))
-    @skipIfRemote
-    def test_basic_flow(self):
-        """Test collection, decoding, and dumping instructions"""
-
-        self.build()
-        exe = self.getBuildArtifact("a.out")
-        lldbutil.run_to_name_breakpoint(self, "main", exe_name=exe)
-        # We start tracing from main
-        self.runCmd("processor-trace start all")
-
-        # We check the trace after the for loop
-        self.runCmd("b " + str(line_number('main.cpp', '// Break 1')))
-        self.runCmd("c")
-
-        # We wait a little bit to ensure the processor has send the PT packets to
-        # the memory
-        time.sleep(.1)
-
-        # We find the start address of the 'fun' function for a later check
-        target = self.dbg.GetSelectedTarget()
-        fun_start_adddress = target.FindFunctions("fun")[0].GetSymbol() \
-            .GetStartAddress().GetLoadAddress(target)
-
-        # We print the last instructions
-        self.expect("processor-trace show-instr-log -c 100",
-            patterns=[
-                # We expect to have seen the first instruction of 'fun'
-                hex(fun_start_adddress),
-                # We expect to see the exit condition of the for loop
-                "at main.cpp:" + str(line_number('main.cpp', '// Break for loop'))
-            ])
-
-        self.runCmd("processor-trace stop")


        


More information about the lldb-commits mailing list