[PATCH] D151948: [BOLT][NFC] Drop MMap events for deleted files

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 13:04:04 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa478a0913121: [BOLT][NFC] Drop MMap events for deleted files (authored by Amir).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151948

Files:
  bolt/lib/Profile/DataAggregator.cpp


Index: bolt/lib/Profile/DataAggregator.cpp
===================================================================
--- bolt/lib/Profile/DataAggregator.cpp
+++ bolt/lib/Profile/DataAggregator.cpp
@@ -1978,6 +1978,8 @@
     std::pair<StringRef, MMapInfo> FileMMapInfo = FileMMapInfoRes.get();
     if (FileMMapInfo.second.PID == -1)
       continue;
+    if (FileMMapInfo.first.equals("(deleted)"))
+      continue;
 
     // Consider only the first mapping of the file for any given PID
     auto Range = GlobalMMapInfo.equal_range(FileMMapInfo.first);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151948.528553.patch
Type: text/x-patch
Size: 548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230605/992bb1ec/attachment.bin>


More information about the llvm-commits mailing list