diff options
author | Walter Erquinigo <wallace@fb.com> | 2021-07-16 19:16:03 -0700 |
---|---|---|
committer | Walter Erquinigo <wallace@fb.com> | 2021-07-20 16:29:17 -0700 |
commit | 04195843ef91d012dbaa1611b348447f8136c271 (patch) | |
tree | 3e60baf26fbaf52e9a2f2e18e93dbbf6a1cf0f02 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | 6d8c63946cc259c0af02584b7cc690dde11dea35 (diff) | |
download | llvm-04195843ef91d012dbaa1611b348447f8136c271.zip llvm-04195843ef91d012dbaa1611b348447f8136c271.tar.gz llvm-04195843ef91d012dbaa1611b348447f8136c271.tar.bz2 |
[intel pt] Add TSC timestamps
Differential Revision: https://reviews.llvm.org/D106328
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index e4cf8a4..2f87729 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -2024,6 +2024,10 @@ public: m_forwards = true; break; } + case 't': { + m_show_tsc = true; + break; + } default: llvm_unreachable("Unimplemented option"); } @@ -2035,6 +2039,7 @@ public: m_skip = 0; m_raw = false; m_forwards = false; + m_show_tsc = false; } llvm::ArrayRef<OptionDefinition> GetDefinitions() override { @@ -2048,6 +2053,7 @@ public: size_t m_skip; bool m_raw; bool m_forwards; + bool m_show_tsc; }; CommandObjectTraceDumpInstructions(CommandInterpreter &interpreter) @@ -2109,7 +2115,8 @@ protected: int initial_index = setUpCursor(); auto dumper = std::make_unique<TraceInstructionDumper>( - std::move(cursor_up), initial_index, m_options.m_raw); + std::move(cursor_up), initial_index, m_options.m_raw, + m_options.m_show_tsc); // This happens when the seek value was more than the number of available // instructions. |