[Lldb-commits] [PATCH] D126394: [trace][intelpt] Support system-wide tracing [14] - Decode per cpu

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 25 10:03:28 PDT 2022


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

This should be the final patch to support intel pt decoding per cpu. It
kind of does its job by correlating subtraces delimited by PSB's with
the context switch traces. Sadly, I'm finding some anomalies, like a
user-space PSB happening during a kernel execution according to the
context switch trace.

tid = 0, core id = 29,  in_tsc = 38890678707555985, out_tsc = 38890678718659020, psb_tsc = 38890678718646466

I have to fix these issues somehow, but I'm leaving this patch here for
reference.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126394

Files:
  lldb/source/Plugins/Trace/intel-pt/LibiptDecoder.cpp
  lldb/source/Plugins/Trace/intel-pt/LibiptDecoder.h
  lldb/source/Plugins/Trace/intel-pt/TraceIntelPTMultiCoreDecoder.cpp
  lldb/source/Plugins/Trace/intel-pt/TraceIntelPTMultiCoreDecoder.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126394.432036.patch
Type: text/x-patch
Size: 23907 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220525/38451c53/attachment-0001.bin>


More information about the lldb-commits mailing list