Lines Matching refs:insn

41 	struct pt_insn insn;  in ptunit_ild_decode()  local
45 memset(&insn, 0, sizeof(insn)); in ptunit_ild_decode()
47 memcpy(insn.raw, raw, size); in ptunit_ild_decode()
48 insn.size = size; in ptunit_ild_decode()
49 insn.mode = mode; in ptunit_ild_decode()
51 errcode = pt_ild_decode(&insn, &iext); in ptunit_ild_decode()
54 ptu_uint_eq(insn.size, size); in ptunit_ild_decode()
55 ptu_int_eq(insn.iclass, ptic_other); in ptunit_ild_decode()
67 struct pt_insn insn; in ptunit_ild_classify() local
71 memset(&insn, 0, sizeof(insn)); in ptunit_ild_classify()
73 memcpy(insn.raw, raw, size); in ptunit_ild_classify()
74 insn.size = size; in ptunit_ild_classify()
75 insn.mode = mode; in ptunit_ild_classify()
77 errcode = pt_ild_decode(&insn, &iext); in ptunit_ild_classify()
80 ptu_uint_eq(insn.size, size); in ptunit_ild_classify()
95 struct pt_insn insn; in ptunit_ild_invalid() local
99 memset(&insn, 0, sizeof(insn)); in ptunit_ild_invalid()
101 memcpy(insn.raw, raw, size); in ptunit_ild_invalid()
102 insn.size = size; in ptunit_ild_invalid()
103 insn.mode = mode; in ptunit_ild_invalid()
105 errcode = pt_ild_decode(&insn, &iext); in ptunit_ild_invalid()
113 #define ptu_decode(insn, size, mode) \ argument
114 ptu_check(ptunit_ild_decode, insn, size, mode)
116 #define ptu_classify(insn, size, mode, iclass) \ argument
117 ptu_check(ptunit_ild_classify, insn, size, mode, iclass)
120 #define ptu_decode_s(insn, mode) \ argument
121 ptu_decode(insn, sizeof(insn), mode)
123 #define ptu_classify_s(insn, mode, iclass) \ argument
124 ptu_classify(insn, sizeof(insn), mode, iclass)
126 #define ptu_invalid_s(insn, mode) \ argument
127 ptu_check(ptunit_ild_invalid, insn, sizeof(insn), mode)
132 uint8_t insn[] = { 0x68, 0x11, 0x22, 0x33, 0x44 }; in push() local
134 ptu_decode_s(insn, ptem_64bit); in push()
141 uint8_t insn[] = { 0xE9, 0x60, 0xF9, 0xFF, 0xFF }; in jmp_rel() local
143 ptu_classify_s(insn, ptem_64bit, PTI_INST_JMP_E9); in jmp_rel()
150 uint8_t insn[] = { 0x66, 0x66, 0x66, 0x66, in long_nop() local
155 ptu_decode_s(insn, ptem_64bit); in long_nop()
162 uint8_t insn[] = { 0x48, 0xa0, 0x3f, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, in mov_al_64() local
165 ptu_decode_s(insn, ptem_64bit); in mov_al_64()
172 uint8_t insn[] = { 0x67, 0xa0, 0x3f, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, in mov_al_32_em64() local
175 ptu_decode(insn, 6, ptem_64bit); in mov_al_32_em64()
182 uint8_t insn[] = { 0xa0, 0x3f, 0xaa, 0xbb, 0xcc, 0xdd, 0xee }; in mov_al_32() local
184 ptu_decode(insn, 5, ptem_32bit); in mov_al_32()
191 uint8_t insn[] = { 0x67, 0xa0, 0x3f, 0xaa, 0xbb, 0xcc, 0xdd, 0xee }; in mov_al_32_em16() local
193 ptu_decode(insn, 6, ptem_16bit); in mov_al_32_em16()
200 uint8_t insn[] = { 0x67, 0xa0, 0x3f, 0xaa, 0xbb, 0xcc, 0xdd, 0xee }; in mov_al_16_em32() local
202 ptu_decode(insn, 4, ptem_32bit); in mov_al_16_em32()
209 uint8_t insn[] = { 0xa0, 0x3f, 0xaa, 0xbb, 0xcc, 0xdd, 0xee }; in mov_al_16() local
211 ptu_decode(insn, 3, ptem_16bit); in mov_al_16()
218 uint8_t insn[] = { 0x0f, 0x31 }; in rdtsc() local
220 ptu_decode_s(insn, ptem_64bit); in rdtsc()
227 uint8_t insn[] = { 0x66, 0x0f, 0x3a, 0x63, 0x04, 0x16, 0x1a }; in pcmpistri() local
229 ptu_decode_s(insn, ptem_64bit); in pcmpistri()
236 uint8_t insn[] = { 0xc5, 0xf9, 0x6f, 0x25, 0xa9, 0x55, 0x04, 0x00 }; in vmovdqa() local
238 ptu_decode_s(insn, ptem_64bit); in vmovdqa()
245 uint8_t insn[] = { 0xc4, 0x41, 0x29, 0xdf, 0xd1 }; in vpandn() local
247 ptu_decode_s(insn, ptem_64bit); in vpandn()
254 uint8_t insn[] = { 0x0f, 0x05 }; in syscall() local
256 ptu_classify_s(insn, ptem_64bit, PTI_INST_SYSCALL); in syscall()
263 uint8_t insn[] = { 0x0f, 0x07 }; in sysret() local
265 ptu_classify_s(insn, ptem_64bit, PTI_INST_SYSRET); in sysret()
272 uint8_t insn[] = { 0x0f, 0x34 }; in sysenter() local
274 ptu_classify_s(insn, ptem_64bit, PTI_INST_SYSENTER); in sysenter()
281 uint8_t insn[] = { 0x0f, 0x35 }; in sysexit() local
283 ptu_classify_s(insn, ptem_64bit, PTI_INST_SYSEXIT); in sysexit()
290 uint8_t insn[] = { 0xcc }; in int3() local
292 ptu_classify_s(insn, ptem_64bit, PTI_INST_INT3); in int3()
299 uint8_t insn[] = { 0xcd, 0x06 }; in intn() local
301 ptu_classify_s(insn, ptem_64bit, PTI_INST_INT); in intn()
308 uint8_t insn[] = { 0xcf }; in iret() local
310 ptu_classify_s(insn, ptem_64bit, PTI_INST_IRET); in iret()
317 uint8_t insn[] = { 0x9a, 0x00, 0x00, 0x00, 0x00 }; in call_9a_cd() local
319 ptu_classify_s(insn, ptem_16bit, PTI_INST_CALL_9A); in call_9a_cd()
326 uint8_t insn[] = { 0x9a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; in call_9a_cp() local
328 ptu_classify_s(insn, ptem_32bit, PTI_INST_CALL_9A); in call_9a_cp()
335 uint8_t insn[] = { 0xff, 0x1c, 0x25, 0x00, 0x00, 0x00, 0x00 }; in call_ff_3() local
337 ptu_classify_s(insn, ptem_64bit, PTI_INST_CALL_FFr3); in call_ff_3()
344 uint8_t insn[] = { 0xff, 0x2c, 0x25, 0x00, 0x00, 0x00, 0x00 }; in jmp_ff_5() local
346 ptu_classify_s(insn, ptem_64bit, PTI_INST_JMP_FFr5); in jmp_ff_5()
353 uint8_t insn[] = { 0xea, 0x00, 0x00, 0x00, 0x00 }; in jmp_ea_cd() local
355 ptu_classify_s(insn, ptem_16bit, PTI_INST_JMP_EA); in jmp_ea_cd()
362 uint8_t insn[] = { 0xea, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; in jmp_ea_cp() local
364 ptu_classify_s(insn, ptem_32bit, PTI_INST_JMP_EA); in jmp_ea_cp()
371 uint8_t insn[] = { 0xca, 0x00, 0x00 }; in ret_ca() local
373 ptu_classify_s(insn, ptem_64bit, PTI_INST_RET_CA); in ret_ca()
380 uint8_t insn[] = { 0x0f, 0x01, 0xc2 }; in vmlaunch() local
382 ptu_classify_s(insn, ptem_64bit, PTI_INST_VMLAUNCH); in vmlaunch()
389 uint8_t insn[] = { 0x0f, 0x01, 0xc3 }; in vmresume() local
391 ptu_classify_s(insn, ptem_64bit, PTI_INST_VMRESUME); in vmresume()
398 uint8_t insn[] = { 0x0f, 0x01, 0xc1 }; in vmcall() local
400 ptu_classify_s(insn, ptem_64bit, PTI_INST_VMCALL); in vmcall()
407 uint8_t insn[] = { 0x0f, 0xc7, 0x30 }; in vmptrld() local
409 ptu_classify_s(insn, ptem_64bit, PTI_INST_VMPTRLD); in vmptrld()
416 uint8_t insn[] = { 0xe3, 0x00 }; in jrcxz() local
418 ptu_classify_s(insn, ptem_64bit, PTI_INST_JrCXZ); in jrcxz()
425 uint8_t insn[] = { 0xa1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in mov_eax_moffs64() local
428 ptu_decode_s(insn, ptem_64bit); in mov_eax_moffs64()
435 uint8_t insn[] = { 0x67, 0xa1, 0x00, 0x00, 0x00, 0x00 }; in mov_eax_moffs64_32() local
437 ptu_decode_s(insn, ptem_64bit); in mov_eax_moffs64_32()
444 uint8_t insn[] = { 0x48, 0xa1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in mov_rax_moffs64() local
447 ptu_decode_s(insn, ptem_64bit); in mov_rax_moffs64()
454 uint8_t insn[] = { 0x67, 0x48, 0xa1, 0x00, 0x00, 0x00, 0x00 }; in mov_rax_moffs64_32() local
456 ptu_decode_s(insn, ptem_64bit); in mov_rax_moffs64_32()
463 uint8_t insn[] = { 0x66, 0xa1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in mov_ax_moffs64() local
466 ptu_decode_s(insn, ptem_64bit); in mov_ax_moffs64()
473 uint8_t insn[] = { 0x67, 0x66, 0xa1, 0x00, 0x00, 0x00, 0x00 }; in mov_ax_moffs64_32() local
475 ptu_decode_s(insn, ptem_64bit); in mov_ax_moffs64_32()
482 uint8_t insn[] = { 0xa1, 0x00, 0x00, 0x00, 0x00 }; in mov_eax_moffs32() local
484 ptu_decode_s(insn, ptem_32bit); in mov_eax_moffs32()
491 uint8_t insn[] = { 0x66, 0xa1, 0x00, 0x00, 0x00, 0x00 }; in mov_ax_moffs32() local
493 ptu_decode_s(insn, ptem_32bit); in mov_ax_moffs32()
500 uint8_t insn[] = { 0xa1, 0x00, 0x00 }; in mov_ax_moffs16() local
502 ptu_decode_s(insn, ptem_16bit); in mov_ax_moffs16()
509 uint8_t insn[] = { 0xc4, 0x00 }; in les() local
511 ptu_decode_s(insn, ptem_16bit); in les()
512 ptu_decode_s(insn, ptem_32bit); in les()
519 uint8_t insn[] = { 0xc4, 0x06, 0x00, 0x00 }; in les_disp16() local
521 ptu_decode_s(insn, ptem_16bit); in les_disp16()
528 uint8_t insn[] = { 0xc4, 0x05, 0x00, 0x00, 0x00, 0x00 }; in les_disp32() local
530 ptu_decode_s(insn, ptem_32bit); in les_disp32()
537 uint8_t insn[] = { 0xc4, 0x40, 0x00 }; in les_ind_disp8() local
539 ptu_decode_s(insn, ptem_16bit); in les_ind_disp8()
540 ptu_decode_s(insn, ptem_32bit); in les_ind_disp8()
547 uint8_t insn[] = { 0xc4, 0x80, 0x00, 0x00 }; in les_ind_disp16() local
549 ptu_decode_s(insn, ptem_16bit); in les_ind_disp16()
556 uint8_t insn[] = { 0xc4, 0x80, 0x00, 0x00, 0x00, 0x00 }; in les_ind_disp32() local
558 ptu_decode_s(insn, ptem_32bit); in les_ind_disp32()
565 uint8_t insn[] = { 0xc5, 0x00 }; in lds() local
567 ptu_decode_s(insn, ptem_16bit); in lds()
568 ptu_decode_s(insn, ptem_32bit); in lds()
575 uint8_t insn[] = { 0xc5, 0x06, 0x00, 0x00 }; in lds_disp16() local
577 ptu_decode_s(insn, ptem_16bit); in lds_disp16()
584 uint8_t insn[] = { 0xc5, 0x05, 0x00, 0x00, 0x00, 0x00 }; in lds_disp32() local
586 ptu_decode_s(insn, ptem_32bit); in lds_disp32()
593 uint8_t insn[] = { 0xc5, 0x40, 0x00 }; in lds_ind_disp8() local
595 ptu_decode_s(insn, ptem_16bit); in lds_ind_disp8()
596 ptu_decode_s(insn, ptem_32bit); in lds_ind_disp8()
603 uint8_t insn[] = { 0xc5, 0x80, 0x00, 0x00 }; in lds_ind_disp16() local
605 ptu_decode_s(insn, ptem_16bit); in lds_ind_disp16()
612 uint8_t insn[] = { 0xc5, 0x80, 0x00, 0x00, 0x00, 0x00 }; in lds_ind_disp32() local
614 ptu_decode_s(insn, ptem_32bit); in lds_ind_disp32()
621 uint8_t insn[] = { 0x62, 0x02, 0x05, 0x00, 0x00, 0x00 }; in vpshufb() local
623 ptu_decode_s(insn, ptem_64bit); in vpshufb()
630 uint8_t insn[] = { 0x62, 0x02 }; in bound() local
632 ptu_decode_s(insn, ptem_32bit); in bound()
633 ptu_decode_s(insn, ptem_16bit); in bound()
640 uint8_t insn[] = { 0x62 }; in evex_cutoff() local
642 ptu_invalid_s(insn, ptem_64bit); in evex_cutoff()
643 ptu_invalid_s(insn, ptem_32bit); in evex_cutoff()
644 ptu_invalid_s(insn, ptem_16bit); in evex_cutoff()
651 uint8_t insn[] = { 0xf3, 0x0f, 0xae, 0xe7 }; in ptwrite_r32() local
653 ptu_classify_s(insn, ptem_64bit, PTI_INST_PTWRITE); in ptwrite_r32()
654 ptu_classify_s(insn, ptem_32bit, PTI_INST_PTWRITE); in ptwrite_r32()
655 ptu_classify_s(insn, ptem_16bit, PTI_INST_PTWRITE); in ptwrite_r32()
662 uint8_t insn[] = { 0xf3, 0x0f, 0xae, 0x67, 0xcc }; in ptwrite_m32() local
664 ptu_classify_s(insn, ptem_64bit, PTI_INST_PTWRITE); in ptwrite_m32()
665 ptu_classify_s(insn, ptem_32bit, PTI_INST_PTWRITE); in ptwrite_m32()
666 ptu_classify_s(insn, ptem_16bit, PTI_INST_PTWRITE); in ptwrite_m32()
673 uint8_t insn[] = { 0xf3, 0x48, 0x0f, 0xae, 0xe7 }; in ptwrite_r64() local
675 ptu_classify_s(insn, ptem_64bit, PTI_INST_PTWRITE); in ptwrite_r64()
682 uint8_t insn[] = { 0xf3, 0x48, 0x0f, 0xae, 0x67, 0xcc }; in ptwrite_m64() local
684 ptu_classify_s(insn, ptem_64bit, PTI_INST_PTWRITE); in ptwrite_m64()