[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 13:47:08 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG20c7ec127240: [lldb][trace] Correctly treat kernel CPUs as individual threads (authored by persona0220).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136371/new/

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.469343.patch
Type: text/x-patch
Size: 550 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221020/d8bd4c42/attachment.bin>


More information about the lldb-commits mailing list