Lines Matching refs:ud
255 struct ud *ud, in zend_jit_disasm_resolver() argument
262 ((void)ud); in zend_jit_disasm_resolver()
321 struct ud ud; local
347 ud_init(&ud);
349 ud_set_mode(&ud, 64);
351 ud_set_mode(&ud, 32);
354 ud_set_syntax(&ud, UD_SYN_INTEL);
356 ud_set_syntax(&ud, UD_SYN_ATT);
358 ud_set_sym_resolver(&ud, zend_jit_disasm_resolver);
366 ud_set_input_buffer(&ud, (uint8_t*)start, (uint8_t*)end - (uint8_t*)start);
367 ud_set_pc(&ud, (uint64_t)(uintptr_t)start);
403 while (ud_disassemble(&ud)) {
404 op = ud_insn_opr(&ud, 0);
406 addr = ud_syn_rel_target(&ud, (struct ud_operand*)op);
516 ud_set_input_buffer(&ud, (uint8_t*)start, (uint8_t*)end - (uint8_t*)start);
517 ud_set_pc(&ud, (uint64_t)(uintptr_t)start);
519 while (ud_disassemble(&ud)) {
520 addr = ud_insn_off(&ud);
529 op = ud_insn_opr(&ud, 0);
531 addr = ud_syn_rel_target(&ud, (struct ud_operand*)op);
535 const char *str = ud_insn_asm(&ud);
557 fprintf(stderr, " %" PRIx64 ":", ud_insn_off(&ud));
559 fprintf(stderr, "\t%s\n", ud_insn_asm(&ud));