Home | History | Annotate | Download | only in profile

Lines Matching defs:File

1 /*===- InstrProfilingFile.c - Write instrumentation to a file -------------===*\
5 |* This file is distributed under the University of Illinois Open Source
24 FILE *File = (FILE *)*WriterCtx;
26 if (fwrite(IOVecs[I].Data, IOVecs[I].ElmSize, IOVecs[I].NumElm, File) !=
34 llvmCreateBufferIOInternal(void *File, uint32_t BufferSz) {
37 return llvmCreateBufferIO(fileWriter, File, BufferSz);
40 static int writeFile(FILE *File) {
50 return llvmWriteProfData(fileWriter, File, ValueDataArray, ValueDataSize);
55 FILE *OutputFile;
59 /* Append to the file to support profiling multiple shared objects. */
75 FILE *File;
81 /* Create the directory holding the file, if needed. */
89 /* Truncate the file. Later we'll reopen and append. */
90 File = fopen(Filename, "w");
91 if (!File)
93 fclose(File);
106 /* If not a new file, append to support profiling multiple shared objects. */
209 PROF_ERR("LLVM Profile: Failed to write file : %s\n", "Filename not set");
222 /* Write the file. */
225 PROF_ERR("LLVM Profile: Failed to write file \"%s\": %s\n",