Lines Matching refs:jitdump_fd
88 static int jitdump_fd = -1; variable
153 jitdump_fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0666); in ir_perf_jitdump_open()
154 if (jitdump_fd < 0) { in ir_perf_jitdump_open()
161 MAP_PRIVATE, jitdump_fd, 0); in ir_perf_jitdump_open()
164 close(jitdump_fd); in ir_perf_jitdump_open()
165 jitdump_fd = -1; in ir_perf_jitdump_open()
177 if (write(jitdump_fd, &jit_hdr, sizeof(jit_hdr)) != sizeof(jit_hdr)) { in ir_perf_jitdump_open()
187 if (jitdump_fd >= 0) { in ir_perf_jitdump_close()
193 if (write(jitdump_fd, &rec, sizeof(rec)) != sizeof(rec)) { in ir_perf_jitdump_close()
196 close(jitdump_fd); in ir_perf_jitdump_close()
207 if (jitdump_fd >= 0) { in ir_perf_jitdump_register()
243 if (write(jitdump_fd, &rec, sizeof(rec)) != sizeof(rec) in ir_perf_jitdump_register()
244 || write(jitdump_fd, name, len + 1) < 0 in ir_perf_jitdump_register()
245 || write(jitdump_fd, start, size) < 0) { in ir_perf_jitdump_register()