[PATCH] D104276: [CSSPGO][llvm-profgen] Ignore LBR records after interrup transition
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 14 18:34:31 PDT 2021
hoy created this revision.
Herald added a subscriber: wenlei.
hoy requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
If we have seen an inwards transition from external code to internal code, but not a following outwards transition, the inwards transition is likely due to interrupt which is usually unpaired. Ignore current and subsequent entries since they are likely from an unrelated pre-interrupt context.
LBR records from different interrupt context are unrelated and they should not be mixed together. Currenlty the OS does this for task-scheduling interrupt but not for all interrupts.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104276
Files:
llvm/test/tools/llvm-profgen/Inputs/cs-interrupt.perfscript
llvm/test/tools/llvm-profgen/cs-interrupt.test
llvm/tools/llvm-profgen/PerfReader.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104276.352027.patch
Type: text/x-patch
Size: 4383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210615/b2e9171d/attachment.bin>
More information about the llvm-commits
mailing list