[llvm-branch-commits] [llvm] [llvm-profgen] Extend llvm-profgen to generate vtable profiles with data access events. (PR #148013)

Mingming Liu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jul 18 14:51:45 PDT 2025


================
@@ -276,6 +286,19 @@ class ProfiledBinary {
   // String table owning function name strings created from the symbolizer.
   std::unordered_set<std::string> NameStrings;
 
+  // MMap events for PT_LOAD segments without 'x' memory protection flag.
+  SmallVector<MMapEvent> MMapNonTextEvents;
+
+  // Records the file offset, file size and virtual address of program headers.
+  struct PhdrInfo {
+    uint64_t FileOffset;
+    uint64_t FileSz;
+    uint64_t vAddr;
----------------
mingmingl-llvm wrote:

got it. My original thinking was that the `VA` prefix in `VAddr` felt a bit uncommon and harder to quickly parse. Now I renamed the field to `VirtualAddr`.

https://github.com/llvm/llvm-project/pull/148013


More information about the llvm-branch-commits mailing list