Lines Matching refs:jitdump_fd
106 static int jitdump_fd = -1; variable
171 jitdump_fd = open(filename, O_CREAT | O_TRUNC | O_RDWR, 0666); in zend_jit_perf_jitdump_open()
172 if (jitdump_fd < 0) { in zend_jit_perf_jitdump_open()
180 MAP_PRIVATE, jitdump_fd, 0); in zend_jit_perf_jitdump_open()
183 close(jitdump_fd); in zend_jit_perf_jitdump_open()
184 jitdump_fd = -1; in zend_jit_perf_jitdump_open()
198 zend_quiet_write(jitdump_fd, &jit_hdr, sizeof(jit_hdr)); in zend_jit_perf_jitdump_open()
203 if (jitdump_fd >= 0) { in zend_jit_perf_jitdump_close()
209 zend_quiet_write(jitdump_fd, &rec, sizeof(rec)); in zend_jit_perf_jitdump_close()
210 close(jitdump_fd); in zend_jit_perf_jitdump_close()
220 if (jitdump_fd >= 0) { in zend_jit_perf_jitdump_register()
256 zend_quiet_write(jitdump_fd, &rec, sizeof(rec)); in zend_jit_perf_jitdump_register()
257 zend_quiet_write(jitdump_fd, name, len + 1); in zend_jit_perf_jitdump_register()
258 zend_quiet_write(jitdump_fd, start, size); in zend_jit_perf_jitdump_register()
290 static os_log_t jitdump_fd; variable
300 jitdump_fd = os_log_create("net.php.opcache.jit", OS_LOG_CATEGORY_POINTS_OF_INTEREST); in zend_jit_perf_jitdump_open()
301 jitdump_sp = os_signpost_id_generate(jitdump_fd); in zend_jit_perf_jitdump_open()
304 os_signpost_interval_begin(jitdump_fd, jitdump_sp, "zend_jitdump"); in zend_jit_perf_jitdump_open()
311 os_signpost_interval_end(jitdump_fd, jitdump_sp, "zend_jitdump"); in zend_jit_perf_jitdump_close()
321 os_signpost_id_t map = os_signpost_id_make_with_pointer(jitdump_fd, start); in zend_jit_perf_map_register()
323 os_signpost_event_emit(jitdump_fd, map, "zend_jitdump_name", "%s", name); in zend_jit_perf_map_register()
324 os_signpost_event_emit(jitdump_fd, map, "zend_jitdump_size", "%lu", size); in zend_jit_perf_map_register()