Lines Matching refs:ud
51 static struct ud ud; variable
217 static const char* zend_jit_disasm_resolver(struct ud *ud, in zend_jit_disasm_resolver() argument
222 ((void)ud); in zend_jit_disasm_resolver()
272 ud_set_input_buffer(&ud, (uint8_t*)start, (uint8_t*)end - (uint8_t*)start); in zend_jit_disasm()
273 ud_set_pc(&ud, (uint64_t)(uintptr_t)start); in zend_jit_disasm()
288 while (ud_disassemble(&ud)) { in zend_jit_disasm()
289 op = ud_insn_opr(&ud, 0); in zend_jit_disasm()
291 addr = ud_syn_rel_target(&ud, (struct ud_operand*)op); in zend_jit_disasm()
312 ud_set_input_buffer(&ud, (uint8_t*)start, (uint8_t*)end - (uint8_t*)start); in zend_jit_disasm()
313 ud_set_pc(&ud, (uint64_t)(uintptr_t)start); in zend_jit_disasm()
315 while (ud_disassemble(&ud)) { in zend_jit_disasm()
316 addr = ud_insn_off(&ud); in zend_jit_disasm()
325 op = ud_insn_opr(&ud, 0); in zend_jit_disasm()
327 addr = ud_syn_rel_target(&ud, (struct ud_operand*)op); in zend_jit_disasm()
331 const char *str = ud_insn_asm(&ud); in zend_jit_disasm()
352 fprintf(stderr, "\t%s\n", ud_insn_asm(&ud)); in zend_jit_disasm()
363 ud_init(&ud); in zend_jit_disasm_init()
365 ud_set_mode(&ud, 64); in zend_jit_disasm_init()
367 ud_set_mode(&ud, 32); in zend_jit_disasm_init()
370 ud_set_syntax(&ud, UD_SYN_INTEL); in zend_jit_disasm_init()
372 ud_set_syntax(&ud, UD_SYN_ATT); in zend_jit_disasm_init()
374 ud_set_sym_resolver(&ud, zend_jit_disasm_resolver); in zend_jit_disasm_init()