[PATCH] D145190: [memprof] Record BuildIDs in the raw profile.
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 3 17:46:38 PST 2023
tejohnson added inline comments.
================
Comment at: compiler-rt/include/profile/MemProfData.inc:58
uint64_t Offset;
- // This field is unused until sanitizer procmaps support for build ids for
- // Linux-Elf is implemented.
- uint8_t BuildId[32] = {0};
+ uint64_t BuildIdSize;
+ uint8_t BuildId[MEMPROF_BUILDID_MAX_SIZE] = {0};
----------------
Do we need to record the size or can we just pad with zeros if less than the max? Is it ever not 32 in practice? Looks like it is defined to 32 in sanitizer_common.h.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145190/new/
https://reviews.llvm.org/D145190
More information about the llvm-commits
mailing list