Lines Matching refs:ProfileFileSize
192 uint64_t *ProfileFileSize) { in getProfileFileSizeForMerging() argument
198 *ProfileFileSize = ftell(ProfileFile); in getProfileFileSizeForMerging()
207 if (*ProfileFileSize > 0 && in getProfileFileSizeForMerging()
208 *ProfileFileSize < sizeof(__llvm_profile_header)) { in getProfileFileSizeForMerging()
221 static int mmapProfileForMerging(FILE *ProfileFile, uint64_t ProfileFileSize, in mmapProfileForMerging() argument
223 *ProfileBuffer = mmap(NULL, ProfileFileSize, PROT_READ, MAP_SHARED | MAP_FILE, in mmapProfileForMerging()
231 if (__llvm_profile_check_compatibility(*ProfileBuffer, ProfileFileSize)) { in mmapProfileForMerging()
232 (void)munmap(*ProfileBuffer, ProfileFileSize); in mmapProfileForMerging()
246 uint64_t ProfileFileSize; in doProfileMerging() local
250 if (getProfileFileSizeForMerging(ProfileFile, &ProfileFileSize) == -1) in doProfileMerging()
254 if (!ProfileFileSize) in doProfileMerging()
259 if (mmapProfileForMerging(ProfileFile, ProfileFileSize, &ProfileBuffer) == -1) in doProfileMerging()
263 __llvm_profile_merge_from_buffer(ProfileBuffer, ProfileFileSize); in doProfileMerging()
269 (void)munmap(ProfileBuffer, ProfileFileSize); in doProfileMerging()
514 uint64_t ProfileFileSize = 0; in relocateCounters() local
515 if (getProfileFileSizeForMerging(File, &ProfileFileSize) == -1) { in relocateCounters()
521 if (!ProfileFileSize) { in relocateCounters()
529 if (mmapProfileForMerging(File, ProfileFileSize, &Profile) == -1) { in relocateCounters()
620 uint64_t ProfileFileSize; in initializeProfileForContinuousMode() local
621 if (getProfileFileSizeForMerging(File, &ProfileFileSize) == -1) in initializeProfileForContinuousMode()
624 if (ProfileFileSize == 0) { in initializeProfileForContinuousMode()
633 if (mmapProfileForMerging(File, ProfileFileSize, &ProfileBuffer) == -1 || in initializeProfileForContinuousMode()
634 munmap(ProfileBuffer, ProfileFileSize) == -1) in initializeProfileForContinuousMode()