[PATCH] D146496: Set VMA to code address in PerfJITEventListener
Prem Chintalapudi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 20 20:12:23 PDT 2023
pchintalapudi created this revision.
pchintalapudi added a reviewer: lhames.
Herald added a subscriber: hiraditya.
Herald added a project: All.
pchintalapudi requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
VMA should default to CodeAddr, not 0, as specified here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/perf/Documentation/jitdump-specification.txt
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146496
Files:
llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
Index: llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
===================================================================
--- llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
+++ llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp
@@ -417,7 +417,7 @@
rec.Prefix.Timestamp = perf_get_timestamp();
rec.CodeSize = CodeSize;
- rec.Vma = 0;
+ rec.Vma = CodeAddr;
rec.CodeAddr = CodeAddr;
rec.Pid = Pid;
rec.Tid = get_threadid();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146496.506831.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230321/ac9c913c/attachment.bin>
More information about the llvm-commits
mailing list