[PATCH] D104276: [CSSPGO][llvm-profgen] Ignore LBR records after interrup transition
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 15 12:18:02 PDT 2021
wenlei added inline comments.
================
Comment at: llvm/tools/llvm-profgen/PerfReader.cpp:460
+ // is likely due to interrupt which is usually unpaired. Ignore current
+ // and subsequent entries since they are likely from an unrelated
+ // pre-interrupt context.
----------------
What do you mean by unrelated pre-interrupt context? After interrupt is handled, execution is supposed to continue from the same spot. If we only missed one of the interrupt transition branch, the pre-interrupt IP should be right before the current IP. If that's not the case, then what's missing is more than a transition branch from the pair - it then sounds like the problem is LBR buffer is not being cleared on context switch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104276/new/
https://reviews.llvm.org/D104276
More information about the llvm-commits
mailing list