/linux/arch/x86/include/asm/ |
A D | insn.h | 68 struct insn { struct 69 struct insn_field prefixes; /* argument 73 struct insn_field rex_prefix; /* REX prefix */ argument 74 struct insn_field vex_prefix; /* VEX prefix */ argument 75 struct insn_field opcode; /* argument 80 struct insn_field modrm; argument 81 struct insn_field sib; argument 82 struct insn_field displacement; argument 94 insn_attr_t attr; argument 100 const insn_byte_t *kaddr; /* kernel address of insn to analyze */ argument [all …]
|
/linux/tools/arch/x86/include/asm/ |
A D | insn.h | 68 struct insn { struct 69 struct insn_field prefixes; /* argument 73 struct insn_field rex_prefix; /* REX prefix */ argument 74 struct insn_field vex_prefix; /* VEX prefix */ argument 75 struct insn_field opcode; /* argument 80 struct insn_field modrm; argument 81 struct insn_field sib; argument 82 struct insn_field displacement; argument 94 insn_attr_t attr; argument 100 const insn_byte_t *kaddr; /* kernel address of insn to analyze */ argument [all …]
|
/linux/arch/x86/lib/ |
A D | insn.c | 37 #define validate_next(t, insn, n) \ argument 40 #define __get_next(t, insn) \ argument 43 #define __peek_nbyte_next(t, insn, n) \ argument 46 #define get_next(t, insn) \ argument 49 #define peek_nbyte_next(t, insn, n) \ argument 124 int insn_get_prefixes(struct insn *insn) in insn_get_prefixes() 262 int insn_get_opcode(struct insn *insn) in insn_get_opcode() 333 int insn_get_modrm(struct insn *insn) in insn_get_modrm() 381 int insn_rip_relative(struct insn *insn) in insn_rip_relative() 412 int insn_get_sib(struct insn *insn) in insn_get_sib() [all …]
|
A D | insn-eval.c | 38 static bool is_string_insn(struct insn *insn) in is_string_insn() 64 bool insn_has_rep_prefix(struct insn *insn) in insn_has_rep_prefix() 93 static int get_seg_reg_override_idx(struct insn *insn) in get_seg_reg_override_idx() 156 static bool check_seg_overrides(struct insn *insn, int regoff) in check_seg_overrides() 415 static int get_reg_offset(struct insn *insn, struct pt_regs *regs, in get_reg_offset() 528 static int get_reg_offset_16(struct insn *insn, struct pt_regs *regs, in get_reg_offset_16() 833 int insn_get_modrm_rm_off(struct insn *insn, struct pt_regs *regs) in insn_get_modrm_rm_off() 848 int insn_get_modrm_reg_off(struct insn *insn, struct pt_regs *regs) in insn_get_modrm_reg_off() 924 static int get_eff_addr_reg(struct insn *insn, struct pt_regs *regs, in get_eff_addr_reg() 1108 static int get_eff_addr_sib(struct insn *insn, struct pt_regs *regs, in get_eff_addr_sib() [all …]
|
/linux/tools/arch/x86/lib/ |
A D | insn.c | 37 #define validate_next(t, insn, n) \ argument 40 #define __get_next(t, insn) \ argument 43 #define __peek_nbyte_next(t, insn, n) \ argument 46 #define get_next(t, insn) \ argument 49 #define peek_nbyte_next(t, insn, n) \ argument 124 int insn_get_prefixes(struct insn *insn) in insn_get_prefixes() 262 int insn_get_opcode(struct insn *insn) in insn_get_opcode() 333 int insn_get_modrm(struct insn *insn) in insn_get_modrm() 381 int insn_rip_relative(struct insn *insn) in insn_rip_relative() 412 int insn_get_sib(struct insn *insn) in insn_get_sib() [all …]
|
/linux/arch/arm/probes/kprobes/ |
A D | actions-thumb.c | 24 t32_simulate_table_branch(probes_opcode_t insn, in t32_simulate_table_branch() 44 t32_simulate_mrs(probes_opcode_t insn, in t32_simulate_mrs() 78 t32_simulate_branch(probes_opcode_t insn, in t32_simulate_branch() 158 t32_emulate_ldrdstrd(probes_opcode_t insn, in t32_emulate_ldrdstrd() 185 t32_emulate_ldrstr(probes_opcode_t insn, in t32_emulate_ldrstr() 306 t16_simulate_bxblx(probes_opcode_t insn, in t16_simulate_bxblx() 365 t16_simulate_cbz(probes_opcode_t insn, in t16_simulate_cbz() 379 t16_simulate_it(probes_opcode_t insn, in t16_simulate_it() 396 t16_singlestep_it(probes_opcode_t insn, in t16_singlestep_it() 442 t16_emulate_loregs(probes_opcode_t insn, in t16_emulate_loregs() [all …]
|
A D | checkers-common.c | 13 enum probes_insn checker_stack_use_none(probes_opcode_t insn, in checker_stack_use_none() 21 enum probes_insn checker_stack_use_unknown(probes_opcode_t insn, in checker_stack_use_unknown() 30 enum probes_insn checker_stack_use_imm_0xx(probes_opcode_t insn, in checker_stack_use_imm_0xx() 43 enum probes_insn checker_stack_use_t32strd(probes_opcode_t insn, in checker_stack_use_t32strd() 52 enum probes_insn checker_stack_use_imm_x0x(probes_opcode_t insn, in checker_stack_use_imm_x0x() 62 enum probes_insn checker_stack_use_imm_xxx(probes_opcode_t insn, in checker_stack_use_imm_xxx() 71 enum probes_insn checker_stack_use_stmdx(probes_opcode_t insn, in checker_stack_use_stmdx()
|
A D | actions-common.c | 18 static void __kprobes simulate_ldm1stm1(probes_opcode_t insn, in simulate_ldm1stm1() 60 static void __kprobes simulate_stm1_pc(probes_opcode_t insn, in simulate_stm1_pc() 71 static void __kprobes simulate_ldm1_pc(probes_opcode_t insn, in simulate_ldm1_pc() 80 emulate_generic_r0_12_noflags(probes_opcode_t insn, in emulate_generic_r0_12_noflags() 108 emulate_generic_r2_14_noflags(probes_opcode_t insn, in emulate_generic_r2_14_noflags() 116 emulate_ldm_r3_15(probes_opcode_t insn, in emulate_ldm_r3_15() 125 kprobe_decode_ldmstm(probes_opcode_t insn, struct arch_probes_insn *asi, in kprobe_decode_ldmstm()
|
A D | checkers-arm.c | 13 static enum probes_insn __kprobes arm_check_stack(probes_opcode_t insn, in arm_check_stack() 93 static enum probes_insn __kprobes arm_check_regs_nouse(probes_opcode_t insn, in arm_check_regs_nouse() 101 static enum probes_insn arm_check_regs_normal(probes_opcode_t insn, in arm_check_regs_normal() 117 static enum probes_insn arm_check_regs_ldmstm(probes_opcode_t insn, in arm_check_regs_ldmstm() 127 static enum probes_insn arm_check_regs_mov_ip_sp(probes_opcode_t insn, in arm_check_regs_mov_ip_sp() 148 static enum probes_insn arm_check_regs_ldrdstrd(probes_opcode_t insn, in arm_check_regs_ldrdstrd()
|
A D | actions-arm.c | 69 emulate_ldrdstrd(probes_opcode_t insn, in emulate_ldrdstrd() 98 emulate_ldr(probes_opcode_t insn, in emulate_ldr() 128 emulate_str(probes_opcode_t insn, in emulate_str() 155 emulate_rd12rn16rm0rs8_rwflags(probes_opcode_t insn, in emulate_rd12rn16rm0rs8_rwflags() 190 emulate_rd12rn16rm0_rwflags_nopc(probes_opcode_t insn, in emulate_rd12rn16rm0_rwflags_nopc() 217 emulate_rd16rn12rm0rs8_rwflags_nopc(probes_opcode_t insn, in emulate_rd16rn12rm0rs8_rwflags_nopc() 247 emulate_rd12rm0_noflags_nopc(probes_opcode_t insn, in emulate_rd12rm0_noflags_nopc() 267 emulate_rdlo12rdhi16rn0rm8_rwflags_nopc(probes_opcode_t insn, in emulate_rdlo12rdhi16rn0rm8_rwflags_nopc()
|
/linux/arch/arm64/lib/ |
A D | insn.c | 354 u32 insn; in aarch64_insn_gen_branch_imm() local 387 u32 insn; in aarch64_insn_gen_comp_branch_imm() local 426 u32 insn; in aarch64_insn_gen_cond_branch_imm() local 456 u32 insn; in aarch64_insn_gen_branch_reg() local 482 u32 insn; in aarch64_insn_gen_load_store_reg() local 514 u32 insn; in aarch64_insn_gen_load_store_pair() local 577 u32 insn; in aarch64_insn_gen_load_store_ex() local 721 u32 insn; in aarch64_insn_gen_add_sub_imm() local 783 u32 insn; in aarch64_insn_gen_bitfield() local 837 u32 insn; in aarch64_insn_gen_movewide() local [all …]
|
/linux/arch/powerpc/xmon/ |
A D | spu.h | 83 #define DECODE_INSN_RT(insn) (insn & 0x7f) argument 84 #define DECODE_INSN_RA(insn) ((insn >> 7) & 0x7f) argument 85 #define DECODE_INSN_RB(insn) ((insn >> 14) & 0x7f) argument 86 #define DECODE_INSN_RC(insn) ((insn >> 21) & 0x7f) argument 88 #define DECODE_INSN_I10(insn) SIGNED_EXTRACT(insn,10,14) argument 92 #define DECODE_INSN_I16(insn) SIGNED_EXTRACT(insn,16,7) argument 99 #define DECODE_INSN_I18(insn) SIGNED_EXTRACT(insn,18,7) argument 103 #define DECODE_INSN_I7(insn) SIGNED_EXTRACT(insn,7,14) argument 104 #define DECODE_INSN_U7(insn) UNSIGNED_EXTRACT(insn,7,14) argument 107 #define DECODE_INSN_I8(insn) SIGNED_EXTRACT(insn,8,14) argument [all …]
|
A D | ppc-opc.c | 965 insert_arx (unsigned long insn, in insert_arx() 988 insert_ary (unsigned long insn, in insert_ary() 1011 insert_rx (unsigned long insn, in insert_rx() 1028 extract_rx (unsigned long insn, in extract_rx() 1040 insert_ry (unsigned long insn, in insert_ry() 1057 extract_ry (unsigned long insn, in extract_ry() 1075 insert_bat (unsigned long insn, in insert_bat() 1100 insert_bba (unsigned long insn, in insert_bba() 1293 insert_bo (unsigned long insn, in insert_bo() 1509 insert_ls (unsigned long insn, in insert_ls() [all …]
|
/linux/tools/objtool/ |
A D | check.c | 26 struct instruction *insn; member 39 struct instruction *insn; in find_insn() local 159 struct instruction *insn; in __dead_end_function() local 355 struct instruction *insn; in decode_instructions() local 519 struct instruction *insn; in add_dead_ends() local 602 struct instruction *insn; in create_static_call_sections() local 688 struct instruction *insn; in create_retpoline_sites_sections() local 736 struct instruction *insn; in create_mcount_loc_sections() local 780 struct instruction *insn; in add_ignores() local 981 struct instruction *insn; in add_ignore_alternatives() local [all …]
|
/linux/arch/riscv/kernel/ |
A D | traps_misaligned.c | 118 #define RVC_RS1S(insn) (8 + RV_X(insn, SH_RD, 3)) argument 120 #define RVC_RS2(insn) RV_X(insn, SH_RS2C, 5) argument 128 #define REG_OFFSET(insn, pos) \ argument 131 #define REG_PTR(insn, pos, regs) \ argument 134 #define GET_RM(insn) (((insn) >> 12) & 7) argument 143 #define IMM_I(insn) ((s32)(insn) >> 20) argument 144 #define IMM_S(insn) (((s32)(insn) >> 25 << 5) | \ argument 148 #define GET_PRECISION(insn) (((insn) >> 25) & 3) argument 149 #define GET_RM(insn) (((insn) >> 12) & 7) argument 244 unsigned long insn = get_insn(epc); in handle_misaligned_load() local [all …]
|
/linux/arch/riscv/kvm/ |
A D | vcpu_exit.c | 98 #define RVC_RS2(insn) RV_X(insn, SH_RS2C, 5) argument 106 #define REG_OFFSET(insn, pos) \ argument 109 #define REG_PTR(insn, pos, regs) \ argument 112 #define GET_RM(insn) (((insn) >> 12) & 7) argument 121 #define IMM_I(insn) ((s32)(insn) >> 20) argument 128 ulong insn) in truly_illegal_insn() 143 ulong insn) in system_opcode_insn() 163 unsigned long insn = trap->stval; in virtual_inst_fault() local 195 unsigned long insn; in emulate_load() local 308 unsigned long insn; in emulate_store() local [all …]
|
/linux/arch/s390/tools/ |
A D | gen_opcode_table.c | 22 struct insn { struct 23 struct insn_type *type; argument 44 struct insn *insn; argument 154 struct insn insn; in read_instructions() local 206 struct insn *insn; in print_long_insn() local 231 static void print_opcode(struct insn *insn, int nr) in print_opcode() 246 static void add_to_group(struct gen_opcode *desc, struct insn *insn, int offset) in add_to_group() 274 struct insn *insn; in print_opcode_table() local
|
/linux/arch/nds32/include/asm/ |
A D | ftrace.h | 24 #define INSN_SIZE(insn) (((insn & 0x00000080) == 0) ? 4 : 2) argument 25 #define IS_SETHI(insn) ((insn & 0x000000fe) == 0x00000046) argument 26 #define ENDIAN_CONVERT(insn) be32_to_cpu(insn) argument 29 #define INSN_SIZE(insn) (((insn & 0x80000000) == 0) ? 4 : 2) argument 30 #define IS_SETHI(insn) ((insn & 0xfe000000) == 0x46000000) argument 31 #define ENDIAN_CONVERT(insn) (insn) argument
|
/linux/arch/sparc/kernel/ |
A D | unaligned_32.c | 34 static inline enum direction decode_direction(unsigned int insn) in decode_direction() 49 static inline int decode_access_size(unsigned int insn) in decode_access_size() 67 static inline int decode_signedness(unsigned int insn) in decode_signedness() 137 unsigned int insn) in compute_effective_address() 153 unsigned int insn) in safe_compute_effective_address() 205 static inline int floating_point_load_or_store_p(unsigned int insn) in floating_point_load_or_store_p() 210 static inline int ok_for_kernel(unsigned int insn) in ok_for_kernel() 215 static void kernel_mna_trap_fault(struct pt_regs *regs, unsigned int insn) in kernel_mna_trap_fault() 240 asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn) in kernel_unaligned_trap() 277 asmlinkage void user_unaligned_trap(struct pt_regs *regs, unsigned int insn) in user_unaligned_trap()
|
A D | unaligned_64.c | 42 static inline enum direction decode_direction(unsigned int insn) in decode_direction() 87 static inline int decode_asi(unsigned int insn, struct pt_regs *regs) in decode_asi() 99 static inline int decode_signedness(unsigned int insn) in decode_signedness() 170 unsigned int insn, unsigned int rd) in compute_effective_address() 254 static inline int ok_for_kernel(unsigned int insn) in ok_for_kernel() 262 unsigned int insn = current_thread_info()->kern_una_insn; in kernel_mna_trap_fault() local 396 int handle_popc(u32 insn, struct pt_regs *regs) in handle_popc() 437 int handle_ldf_stq(u32 insn, struct pt_regs *regs) in handle_ldf_stq() 570 void handle_ld_nf(u32 insn, struct pt_regs *regs) in handle_ld_nf() 601 u32 insn; in handle_lddfmna() local [all …]
|
/linux/arch/xtensa/include/asm/ |
A D | bitops.h | 101 #define BIT_OP(op, insn, inv) \ argument 120 #define TEST_AND_BIT_OP(op, insn, inv) \ argument 144 #define BIT_OP(op, insn, inv) \ argument 164 #define TEST_AND_BIT_OP(op, insn, inv) \ argument 189 #define BIT_OP(op, insn, inv) argument 190 #define TEST_AND_BIT_OP(op, insn, inv) argument 196 #define BIT_OPS(op, insn, inv) \ argument
|
/linux/arch/arm/probes/ |
A D | decode-arm.c | 21 #define branch_displacement(insn) sign_extend(((insn) & 0xffffff) << 2, 25) argument 53 void __kprobes simulate_bbl(probes_opcode_t insn, in simulate_bbl() 65 void __kprobes simulate_blx1(probes_opcode_t insn, in simulate_blx1() 76 void __kprobes simulate_blx2bx(probes_opcode_t insn, in simulate_blx2bx() 91 void __kprobes simulate_mrs(probes_opcode_t insn, in simulate_mrs() 99 void __kprobes simulate_mov_ipsp(probes_opcode_t insn, in simulate_mov_ipsp() 700 static void __kprobes arm_singlestep(probes_opcode_t insn, in arm_singlestep() 720 arm_probes_decode_insn(probes_opcode_t insn, struct arch_probes_insn *asi, in arm_probes_decode_insn()
|
/linux/arch/s390/kernel/ |
A D | jump_label.c | 14 struct insn { struct 19 static void jump_label_make_nop(struct jump_entry *entry, struct insn *insn) in jump_label_make_nop() 26 static void jump_label_make_branch(struct jump_entry *entry, struct insn *insn) in jump_label_make_branch()
|
/linux/arch/arm/probes/uprobes/ |
A D | actions-arm.c | 19 probes_opcode_t insn = __mem_to_opcode_arm(*pinsn); in uprobes_substitute_pc() local 105 decode_pc_ro(probes_opcode_t insn, struct arch_probes_insn *asi, in decode_pc_ro() 129 decode_wb_pc(probes_opcode_t insn, struct arch_probes_insn *asi, in decode_wb_pc() 144 decode_rd12rn16rm0rs8_rwflags(probes_opcode_t insn, in decode_rd12rn16rm0rs8_rwflags() 152 decode_ldr(probes_opcode_t insn, struct arch_probes_insn *asi, in decode_ldr() 159 uprobe_decode_ldmstm(probes_opcode_t insn, in uprobe_decode_ldmstm()
|
/linux/arch/parisc/kernel/ |
A D | patch.c | 20 u32 *insn; member 61 void __kprobes __patch_text_multiple(void *addr, u32 *insn, unsigned int len) in __patch_text_multiple() 99 void __kprobes __patch_text(void *addr, u32 insn) in __patch_text() 112 void __kprobes patch_text(void *addr, unsigned int insn) in patch_text() 123 void __kprobes patch_text_multiple(void *addr, u32 *insn, unsigned int len) in patch_text_multiple()
|