[Lldb-commits] [PATCH] D136371: [trace][intel pt] Correctly treat kernel CPUs as individual threads

Sujin Park via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 20 12:38:51 PDT 2022


persona0220 created this revision.
persona0220 added reviewers: wallace, jj10306.
Herald added a project: All.
persona0220 requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Resolved a bug in kernel decoding and correctly treat kernel CPUs as individual threads.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136371

Files:
  lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp


Index: lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
===================================================================
--- lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
+++ lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
@@ -89,7 +89,7 @@
   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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136371.469319.patch
Type: text/x-patch
Size: 550 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221020/f64e96fd/attachment.bin>


More information about the lldb-commits mailing list