Lines Matching refs:output_fd
33 static int output_fd; variable
55 off_t hdr_pos = lseek(output_fd, 0, SEEK_CUR); in record_file()
67 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file()
75 if (write(output_fd, buf, r) != r) in record_file()
85 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
112 if (write(output_fd, "header_page", 12) != 12) { in record_header_files()
136 if (write(output_fd, "header_event", 13) != 13) { in record_header_files()
200 if (write(output_fd, &count, 4) != 4) { in copy_event_system()
293 if (write(output_fd, &count, 4) != 4) { in record_event_files()
313 if (write(output_fd, dent->d_name, size) != size || in record_event_files()
339 return write(output_fd, &size, 4) != 4 ? -EIO : 0; in record_proc_kallsyms()
359 if (write(output_fd, &size, 4) != 4) in record_ftrace_printk()
387 if (write(output_fd, &size, 8) != 8) in record_saved_cmdline()
559 if (write(output_fd, buf, 10) != 10) in tracing_data_header()
563 if (write(output_fd, VERSION, size) != size) in tracing_data_header()
572 if (write(output_fd, buf, 1) != 1) in tracing_data_header()
577 if (write(output_fd, buf, 1) != 1) in tracing_data_header()
581 if (write(output_fd, &page_size, 4) != 4) in tracing_data_header()
594 output_fd = fd; in tracing_data_get()
629 output_fd = temp_fd; in tracing_data_get()
658 tdata->size = lseek(output_fd, 0, SEEK_CUR); in tracing_data_get()
659 close(output_fd); in tracing_data_get()
660 output_fd = fd; in tracing_data_get()