Skip to content

Commit 6f51ecd

Browse files
pchintalapudivchuravy
authored andcommitted
[MCJIT] Set VMA to code address in PerfJITEventListener.
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 Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D146496 (cherry picked from commit e5bdf0f)
1 parent 5354b0a commit 6f51ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void PerfJITEventListener::NotifyCode(Expected<llvm::StringRef> &Symbol,
417417
rec.Prefix.Timestamp = perf_get_timestamp();
418418

419419
rec.CodeSize = CodeSize;
420-
rec.Vma = 0;
420+
rec.Vma = CodeAddr;
421421
rec.CodeAddr = CodeAddr;
422422
rec.Pid = Pid;
423423
rec.Tid = get_threadid();

0 commit comments

Comments
 (0)