Lines Matching refs:output_fd
30 static int output_fd; variable
47 off_t hdr_pos = lseek(output_fd, 0, SEEK_CUR); in record_file()
59 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file()
67 if (write(output_fd, buf, r) != r) in record_file()
77 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file()
104 if (write(output_fd, "header_page", 12) != 12) { in record_header_files()
128 if (write(output_fd, "header_event", 13) != 13) { in record_header_files()
192 if (write(output_fd, &count, 4) != 4) { in copy_event_system()
285 if (write(output_fd, &count, 4) != 4) { in record_event_files()
305 if (write(output_fd, dent->d_name, size) != size || in record_event_files()
331 return write(output_fd, &size, 4) != 4 ? -EIO : 0; in record_proc_kallsyms()
351 if (write(output_fd, &size, 4) != 4) in record_ftrace_printk()
379 if (write(output_fd, &size, 8) != 8) in record_saved_cmdline()
463 if (write(output_fd, buf, 10) != 10) in tracing_data_header()
467 if (write(output_fd, VERSION, size) != size) in tracing_data_header()
476 if (write(output_fd, buf, 1) != 1) in tracing_data_header()
481 if (write(output_fd, buf, 1) != 1) in tracing_data_header()
485 if (write(output_fd, &page_size, 4) != 4) in tracing_data_header()
498 output_fd = fd; in tracing_data_get()
533 output_fd = temp_fd; in tracing_data_get()
562 tdata->size = lseek(output_fd, 0, SEEK_CUR); in tracing_data_get()
563 close(output_fd); in tracing_data_get()
564 output_fd = fd; in tracing_data_get()