[llvm-dev] Questions about support __llvm_profile_set_file_object on continuous mode

Zequan Wu via llvm-dev llvm-dev at lists.llvm.org
Tue Jul 27 18:50:32 PDT 2021


Hi,

When merging is disabled, a possible solution is to unmap the mapped file
region, copy the old profile file to the new file, and then mmap the
CounterBegin to the new file region. Does this sound correct?
When merging is enabled, multiple profile files will be created. I'm not
sure how to set the file object in this case as only one file descriptor is
passed to __llvm_profile_set_file_object.

Zequan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210727/8314fd62/attachment.html>


More information about the llvm-dev mailing list