[Lldb-commits] [PATCH] D131630: [trace][intel pt] Fix per-psb packet decoding

walter erquinigo via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 12 13:21:19 PDT 2022


wallace marked 4 inline comments as done.
wallace added inline comments.


================
Comment at: lldb/source/Plugins/Trace/intel-pt/LibiptDecoder.cpp:476-478
+      if (event.has_tsc) {
+        tsc = event.tsc;
+        break;
----------------
jj10306 wrote:
> so is this inner loop what's actually doing the work of getting to the next PSB? is the assumption that if an event has a tsc then it's a PSB?
> Can you explain what the two different while loops are doing?
discussed offline. Every invocation to pt_qry_event will get a new PSB. the event loop is just for getting the first TSC.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131630



More information about the lldb-commits mailing list