Lines Matching refs:write_buffer
71 static char *write_buffer = NULL; variable
110 write_buffer = realloc(write_buffer, size); in resize_write_buffer()
116 memcpy(&write_buffer[cur_pos], s, len); in write_bytes()
145 val = *(uint32_t*)&write_buffer[cur_pos]; in read_32bit_value()
156 val = *(uint64_t*)&write_buffer[cur_pos]; in read_64bit_value()
214 write_buffer = mmap(0, file_size, PROT_READ | PROT_WRITE, in map_file()
216 if (write_buffer == (void *)-1) { in map_file()
226 if (msync(write_buffer, file_size, MS_SYNC) == -1) { in unmap_file()
235 (void)munmap(write_buffer, file_size); in unmap_file()
236 write_buffer = NULL; in unmap_file()
284 write_buffer = NULL; in llvm_gcda_start_file()
290 memset(write_buffer, 0, WRITE_BUFFER_SIZE); in llvm_gcda_start_file()
295 write_buffer = NULL; in llvm_gcda_start_file()
298 memset(write_buffer, 0, WRITE_BUFFER_SIZE); in llvm_gcda_start_file()
473 fwrite(write_buffer, cur_pos, 1, output_file); in llvm_gcda_end_file()
474 free(write_buffer); in llvm_gcda_end_file()
482 write_buffer = NULL; in llvm_gcda_end_file()