llvm-project/llvm/tools/llvm-profgen
wlei 467652486f [llvm-profgen] Fix inconsistent loading address issues
This is to fix two issues related with loading address:

1) When multiple MMAPs occur and their loading address are different, before it only used the first MMap as base address, all perf address after it used the wrong base address.

2) For pseudo probe profile, the address is always based on preferred loading address. If the base address is not equal to the preferred loading address, the pseudo probe address query will be wrong.

Solution: Instead of converting the address to offset lazily, right now all the address after parsing are converted on the fly based on preferred loading address in the parsing time. There is no "offset" used in profile generator any more.

Reviewed By: hoy, wenlei

Differential Revision: https://reviews.llvm.org/D126827
2022-10-13 23:19:30 -07:00
..
CMakeLists.txt [llvm-profgen] Switch to DWARF-based symbol and ranges 2021-10-29 09:59:12 -07:00
CSPreInliner.cpp [NFC] FunctionSamples::getEntrySamples -> getHeadSamplesEstimate 2022-07-22 09:17:59 -07:00
CSPreInliner.h [CSSPGO][llvm-profgen] Reimplement SampleContextTracker using context trie 2022-06-27 23:22:21 -07:00
CallContext.h [CSSPGO] Rename the field of SampleContextFrame 2021-10-04 19:06:59 -07:00
ErrorHandling.h [llvm-profgen] Fix bug of setting function entry 2021-11-12 12:18:43 -08:00
PerfReader.cpp [llvm-profgen] Fix inconsistent loading address issues 2022-10-13 23:19:30 -07:00
PerfReader.h [llvm] Fix comment typos (NFC) 2022-08-07 00:16:14 -07:00
ProfileGenerator.cpp [llvm-profgen] Fix inconsistent loading address issues 2022-10-13 23:19:30 -07:00
ProfileGenerator.h [llvm-profgen] Fix inconsistent loading address issues 2022-10-13 23:19:30 -07:00
ProfiledBinary.cpp [llvm-profgen] Fix inconsistent loading address issues 2022-10-13 23:19:30 -07:00
ProfiledBinary.h [llvm-profgen] Fix inconsistent loading address issues 2022-10-13 23:19:30 -07:00
llvm-profgen.cpp [llvm-profgen] Remove CommaSeparated option from perf file cl 2022-09-21 09:46:21 -07:00