[llvm] [Sample Profile] make page size configurable for ProfiledBinary (PR #206873)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 08:10:28 PDT 2026
================
@@ -362,22 +368,21 @@ template <class ELFT>
void ProfiledBinary::setPreferredTextSegmentAddresses(const ELFFile<ELFT> &Obj,
StringRef FileName) {
const auto &PhdrRange = unwrapOrError(Obj.program_headers(), FileName);
- // FIXME: This should be the page size of the system running profiling.
- // However such info isn't available at post-processing time, assuming
- // 4K page now. Note that we don't use EXEC_PAGESIZE from <linux/param.h>
- // because we may build the tools on non-linux.
- uint64_t PageSize = 0x1000;
+ uint64_t LocalPageSize = PageSize;
----------------
HighW4y2H3ll wrote:
Sorry for the late stamp. Can you rebase? and I'll hit the merge
https://github.com/llvm/llvm-project/pull/206873
More information about the llvm-commits
mailing list