Searched refs:BufferIO (Results 1 – 6 of 6) sorted by relevance
/external/llvm-project/compiler-rt/test/profile/ |
D | instrprof-bufferio.c | 15 void lprofDeleteBufferIO(ProfBufferIO *BufferIO); 17 int lprofBufferIOWrite(ProfBufferIO *BufferIO, const char *Data, uint32_t Size); 18 int lprofBufferIOFlush(ProfBufferIO *BufferIO); 27 ProfBufferIO *BufferIO; in main() local 45 BufferIO = lprofCreateBufferIOInternal(File[J], IOBufferSize[J]); in main() 47 lprofBufferIOWrite(BufferIO, "Short Strings:\n", in main() 50 lprofBufferIOWrite(BufferIO, SmallData, strlen(SmallData)); in main() 52 lprofBufferIOWrite(BufferIO, "Long Strings:\n", strlen("Long Strings:\n")); in main() 54 lprofBufferIOWrite(BufferIO, MediumData, strlen(MediumData)); in main() 56 lprofBufferIOWrite(BufferIO, "Extra Long Strings:\n", in main() [all …]
|
/external/compiler-rt/test/profile/ |
D | instrprof-bufferio.c | 15 void lprofDeleteBufferIO(ProfBufferIO *BufferIO); 17 int lprofBufferIOWrite(ProfBufferIO *BufferIO, const char *Data, uint32_t Size); 18 int lprofBufferIOFlush(ProfBufferIO *BufferIO); 27 ProfBufferIO *BufferIO; in main() local 45 BufferIO = lprofCreateBufferIOInternal(File[J], IOBufferSize[J]); in main() 47 lprofBufferIOWrite(BufferIO, "Short Strings:\n", in main() 50 lprofBufferIOWrite(BufferIO, SmallData, strlen(SmallData)); in main() 52 lprofBufferIOWrite(BufferIO, "Long Strings:\n", strlen("Long Strings:\n")); in main() 54 lprofBufferIOWrite(BufferIO, MediumData, strlen(MediumData)); in main() 56 lprofBufferIOWrite(BufferIO, "Extra Long Strings:\n", in main() [all …]
|
/external/llvm-project/compiler-rt/lib/profile/ |
D | InstrProfilingWriter.c | 55 static void llvmInitBufferIO(ProfBufferIO *BufferIO, ProfDataWriter *FileWriter, in llvmInitBufferIO() argument 57 BufferIO->FileWriter = FileWriter; in llvmInitBufferIO() 58 BufferIO->OwnFileWriter = 0; in llvmInitBufferIO() 59 BufferIO->BufferStart = Buffer; in llvmInitBufferIO() 60 BufferIO->BufferSz = BufferSz; in llvmInitBufferIO() 61 BufferIO->CurOffset = 0; in llvmInitBufferIO() 76 COMPILER_RT_VISIBILITY void lprofDeleteBufferIO(ProfBufferIO *BufferIO) { in lprofDeleteBufferIO() argument 77 if (BufferIO->OwnFileWriter) in lprofDeleteBufferIO() 78 FreeHook(BufferIO->FileWriter); in lprofDeleteBufferIO() 87 lprofBufferIOWrite(ProfBufferIO *BufferIO, const uint8_t *Data, uint32_t Size) { in lprofBufferIOWrite() argument [all …]
|
D | InstrProfilingInternal.h | 93 void lprofDeleteBufferIO(ProfBufferIO *BufferIO); 99 int lprofBufferIOWrite(ProfBufferIO *BufferIO, const uint8_t *Data, 105 int lprofBufferIOFlush(ProfBufferIO *BufferIO);
|
/external/compiler-rt/lib/profile/ |
D | InstrProfilingWriter.c | 47 static void llvmInitBufferIO(ProfBufferIO *BufferIO, WriterCallback FileWriter, in llvmInitBufferIO() argument 49 BufferIO->File = File; in llvmInitBufferIO() 50 BufferIO->FileWriter = FileWriter; in llvmInitBufferIO() 51 BufferIO->BufferStart = Buffer; in llvmInitBufferIO() 52 BufferIO->BufferSz = BufferSz; in llvmInitBufferIO() 53 BufferIO->CurOffset = 0; in llvmInitBufferIO() 68 COMPILER_RT_VISIBILITY void lprofDeleteBufferIO(ProfBufferIO *BufferIO) { in lprofDeleteBufferIO() argument 77 lprofBufferIOWrite(ProfBufferIO *BufferIO, const uint8_t *Data, uint32_t Size) { in lprofBufferIOWrite() argument 79 if (Size + BufferIO->CurOffset > BufferIO->BufferSz) { in lprofBufferIOWrite() 80 if (lprofBufferIOFlush(BufferIO) != 0) in lprofBufferIOWrite() [all …]
|
D | InstrProfilingInternal.h | 82 void lprofDeleteBufferIO(ProfBufferIO *BufferIO); 88 int lprofBufferIOWrite(ProfBufferIO *BufferIO, const uint8_t *Data, 94 int lprofBufferIOFlush(ProfBufferIO *BufferIO);
|