[PATCH] D89707: [AutoFDO][llvm-profgen] Parse mmap events from perf script

Han Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 14:54:01 PDT 2020


shenhan added inline comments.


================
Comment at: llvm/docs/CommandGuide/llvm-profgen.rst:35
+
+  Path of the input profiled binary files. If no file path is specified, the
+  path of the actual profiled binaries will be used instead. 
----------------
Sometimes, the profiled binary path as recorded in mmaps is different from the local binary's path. I understand then this will only use the "name" part to match.
But sometimes the name part is also different, then the match cannot proceed.

One possible improvement is when the binary provided has embed "build-id", this can query perfdata file to get the absolute path of the file with matching build id, and use that absolute path to match mmap events and this would be the most accurate match, what do you think?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89707



More information about the llvm-commits mailing list