Home | History | Annotate | Download | only in profile

Lines Matching refs:File

1 /*===- InstrProfilingFile.c - Write instrumentation to a file -------------===*\
5 |* This file is distributed under the University of Illinois Open Source
17 static int writeFile(FILE *File) {
46 #define CHECK_fwrite(Data, Size, Length, File) \
47 do { if (fwrite(Data, Size, Length, File) != Length) return -1; } while (0)
48 CHECK_fwrite(Header, sizeof(uint64_t), PROFILE_HEADER_SIZE, File);
49 CHECK_fwrite(DataBegin, sizeof(__llvm_profile_data), DataSize, File);
50 CHECK_fwrite(CountersBegin, sizeof(uint64_t), CountersSize, File);
51 CHECK_fwrite(NamesBegin, sizeof(char), NamesSize, File);
52 CHECK_fwrite(Zeroes, sizeof(char), Padding, File);
60 FILE *OutputFile;
64 /* Append to the file to support profiling multiple shared objects. */
91 /* Truncate the file. Later we'll reopen and append. */
92 FILE *File = fopen(Filename, "w");
93 if (!File)
95 fclose(File);
177 /* Write the file. */