[PATCH] D146496: Set VMA to code address in PerfJITEventListener

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 2 10:48:15 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe5bdf0f6d255: [MCJIT] Set VMA to code address in PerfJITEventListener. (authored by pchintalapudi, committed by lhames).

Repository:
  rG LLVM Github Monorepo

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

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.510360.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230402/036f6c39/attachment.bin>


More information about the llvm-commits mailing list