Home
last modified time | relevance | path

Searched refs:ProfileFileSize (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/compiler-rt/lib/profile/
DInstrProfilingFile.c192 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()
[all …]
/external/compiler-rt/lib/profile/
DInstrProfilingFile.c123 uint64_t ProfileFileSize; in doProfileMerging() local
131 ProfileFileSize = ftell(ProfileFile); in doProfileMerging()
141 if (ProfileFileSize < sizeof(__llvm_profile_header)) { in doProfileMerging()
142 if (ProfileFileSize) in doProfileMerging()
148 ProfileBuffer = mmap(NULL, ProfileFileSize, PROT_READ, MAP_SHARED | MAP_FILE, in doProfileMerging()
156 if (__llvm_profile_check_compatibility(ProfileBuffer, ProfileFileSize)) { in doProfileMerging()
157 (void)munmap(ProfileBuffer, ProfileFileSize); in doProfileMerging()
164 __llvm_profile_merge_from_buffer(ProfileBuffer, ProfileFileSize); in doProfileMerging()
165 (void)munmap(ProfileBuffer, ProfileFileSize); in doProfileMerging()