[Lldb-commits] [lldb] 20c7ec1 - [lldb][trace] Correctly treat kernel CPUs as individual threads
Sujin Park via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 20 13:47:01 PDT 2022
Author: Sujin Park
Date: 2022-10-20T13:37:08-07:00
New Revision: 20c7ec12724059388e51e9d00f5c63983ad0e146
URL: https://github.com/llvm/llvm-project/commit/20c7ec12724059388e51e9d00f5c63983ad0e146
DIFF: https://github.com/llvm/llvm-project/commit/20c7ec12724059388e51e9d00f5c63983ad0e146.diff
LOG: [lldb][trace] Correctly treat kernel CPUs as individual threads
Resolved a bug in kernel decoding and correctly treat kernel CPUs as
individual threads.
Differential Revision: https://reviews.llvm.org/D136371
Added:
Modified:
lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
index 0a3bc64098b50..1db34d8fe840d 100644
--- a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
+++ b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
@@ -89,7 +89,7 @@ TraceIntelPTSP TraceIntelPT::CreateInstanceForPostmortemTrace(
trace_sp->m_storage.tsc_conversion =
bundle_description.tsc_perf_zero_conversion;
- if (bundle_description.cpus) {
+ if (bundle_description.cpus && trace_mode == TraceMode::UserMode) {
std::vector<cpu_id_t> cpus;
for (const JSONCpu &cpu : *bundle_description.cpus) {
More information about the lldb-commits
mailing list