Home
last modified time | relevance | path

Searched defs:insn (Results 1 – 25 of 209) sorted by relevance

123456789

/arch/x86/include/asm/
Dinsn.h36 struct insn { struct
37 struct insn_field prefixes; /* argument
41 struct insn_field rex_prefix; /* REX prefix */ argument
42 struct insn_field vex_prefix; /* VEX prefix */ argument
43 struct insn_field opcode; /* argument
48 struct insn_field modrm; argument
49 struct insn_field sib; argument
50 struct insn_field displacement; argument
61 insn_attr_t attr; argument
67 const insn_byte_t *kaddr; /* kernel address of insn to analyze */ argument
[all …]
/arch/x86/lib/
Dinsn.c30 #define validate_next(t, insn, n) \ argument
33 #define __get_next(t, insn) \ argument
36 #define __peek_nbyte_next(t, insn, n) \ argument
39 #define get_next(t, insn) \ argument
42 #define peek_nbyte_next(t, insn, n) \ argument
45 #define peek_next(t, insn) peek_nbyte_next(t, insn, 0) argument
53 void insn_init(struct insn *insn, const void *kaddr, int buf_len, int x86_64) in insn_init()
82 void insn_get_prefixes(struct insn *insn) in insn_get_prefixes()
213 void insn_get_opcode(struct insn *insn) in insn_get_opcode()
266 void insn_get_modrm(struct insn *insn) in insn_get_modrm()
[all …]
/arch/powerpc/xmon/
Dspu.h91 #define SIGNED_EXTRACT(insn,size,pos) (((int)((insn) << (32-size-pos))) >> (32-size)) argument
92 #define UNSIGNED_EXTRACT(insn,size,pos) (((insn) >> pos) & ((1 << size)-1)) argument
94 #define DECODE_INSN_RT(insn) (insn & 0x7f) argument
95 #define DECODE_INSN_RA(insn) ((insn >> 7) & 0x7f) argument
96 #define DECODE_INSN_RB(insn) ((insn >> 14) & 0x7f) argument
97 #define DECODE_INSN_RC(insn) ((insn >> 21) & 0x7f) argument
99 #define DECODE_INSN_I10(insn) SIGNED_EXTRACT(insn,10,14) argument
100 #define DECODE_INSN_U10(insn) UNSIGNED_EXTRACT(insn,10,14) argument
103 #define DECODE_INSN_I16(insn) SIGNED_EXTRACT(insn,16,7) argument
104 #define DECODE_INSN_U16(insn) UNSIGNED_EXTRACT(insn,16,7) argument
[all …]
Ddis-asm.h18 static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr) in print_insn_powerpc()
24 static inline int print_insn_spu(unsigned long insn, unsigned long memaddr) in print_insn_spu()
Dppc-opc.c977 insert_arx (unsigned long insn, in insert_arx()
992 extract_arx (unsigned long insn, in extract_arx()
1000 insert_ary (unsigned long insn, in insert_ary()
1015 extract_ary (unsigned long insn, in extract_ary()
1023 insert_rx (unsigned long insn, in insert_rx()
1040 extract_rx (unsigned long insn, in extract_rx()
1052 insert_ry (unsigned long insn, in insert_ry()
1069 extract_ry (unsigned long insn, in extract_ry()
1087 insert_bat (unsigned long insn, in insert_bat()
1096 extract_bat (unsigned long insn, in extract_bat()
[all …]
Dppc-dis.c38 unsigned long insn, ppc_cpu_t dialect) in operand_value_powerpc()
71 unsigned long insn, ppc_cpu_t dialect) in skip_optional_operands()
92 lookup_powerpc (unsigned long insn, ppc_cpu_t dialect) in lookup_powerpc()
134 int print_insn_powerpc (unsigned long insn, unsigned long memaddr) in print_insn_powerpc()
/arch/arm/probes/kprobes/
Dactions-thumb.c27 t32_simulate_table_branch(probes_opcode_t insn, in t32_simulate_table_branch()
47 t32_simulate_mrs(probes_opcode_t insn, in t32_simulate_mrs()
56 t32_simulate_cond_branch(probes_opcode_t insn, in t32_simulate_cond_branch()
71 t32_decode_cond_branch(probes_opcode_t insn, struct arch_probes_insn *asi, in t32_decode_cond_branch()
81 t32_simulate_branch(probes_opcode_t insn, in t32_simulate_branch()
109 t32_simulate_ldr_literal(probes_opcode_t insn, in t32_simulate_ldr_literal()
147 t32_decode_ldmstm(probes_opcode_t insn, struct arch_probes_insn *asi, in t32_decode_ldmstm()
161 t32_emulate_ldrdstrd(probes_opcode_t insn, in t32_emulate_ldrdstrd()
188 t32_emulate_ldrstr(probes_opcode_t insn, in t32_emulate_ldrstr()
214 t32_emulate_rd8rn16rm0_rwflags(probes_opcode_t insn, in t32_emulate_rd8rn16rm0_rwflags()
[all …]
Dcheckers-common.c21 enum probes_insn checker_stack_use_none(probes_opcode_t insn, in checker_stack_use_none()
29 enum probes_insn checker_stack_use_unknown(probes_opcode_t insn, in checker_stack_use_unknown()
38 enum probes_insn checker_stack_use_imm_0xx(probes_opcode_t insn, in checker_stack_use_imm_0xx()
51 enum probes_insn checker_stack_use_t32strd(probes_opcode_t insn, in checker_stack_use_t32strd()
60 enum probes_insn checker_stack_use_imm_x0x(probes_opcode_t insn, in checker_stack_use_imm_x0x()
70 enum probes_insn checker_stack_use_imm_xxx(probes_opcode_t insn, in checker_stack_use_imm_xxx()
79 enum probes_insn checker_stack_use_stmdx(probes_opcode_t insn, in checker_stack_use_stmdx()
Dcheckers-arm.c21 static enum probes_insn __kprobes arm_check_stack(probes_opcode_t insn, in arm_check_stack()
101 static enum probes_insn __kprobes arm_check_regs_nouse(probes_opcode_t insn, in arm_check_regs_nouse()
109 static enum probes_insn arm_check_regs_normal(probes_opcode_t insn, in arm_check_regs_normal()
125 static enum probes_insn arm_check_regs_ldmstm(probes_opcode_t insn, in arm_check_regs_ldmstm()
135 static enum probes_insn arm_check_regs_mov_ip_sp(probes_opcode_t insn, in arm_check_regs_mov_ip_sp()
156 static enum probes_insn arm_check_regs_ldrdstrd(probes_opcode_t insn, in arm_check_regs_ldrdstrd()
Dactions-common.c21 static void __kprobes simulate_ldm1stm1(probes_opcode_t insn, in simulate_ldm1stm1()
63 static void __kprobes simulate_stm1_pc(probes_opcode_t insn, in simulate_stm1_pc()
74 static void __kprobes simulate_ldm1_pc(probes_opcode_t insn, in simulate_ldm1_pc()
83 emulate_generic_r0_12_noflags(probes_opcode_t insn, in emulate_generic_r0_12_noflags()
111 emulate_generic_r2_14_noflags(probes_opcode_t insn, in emulate_generic_r2_14_noflags()
119 emulate_ldm_r3_15(probes_opcode_t insn, in emulate_ldm_r3_15()
128 kprobe_decode_ldmstm(probes_opcode_t insn, struct arch_probes_insn *asi, in kprobe_decode_ldmstm()
Dactions-arm.c77 emulate_ldrdstrd(probes_opcode_t insn, in emulate_ldrdstrd()
106 emulate_ldr(probes_opcode_t insn, in emulate_ldr()
136 emulate_str(probes_opcode_t insn, in emulate_str()
163 emulate_rd12rn16rm0rs8_rwflags(probes_opcode_t insn, in emulate_rd12rn16rm0rs8_rwflags()
198 emulate_rd12rn16rm0_rwflags_nopc(probes_opcode_t insn, in emulate_rd12rn16rm0_rwflags_nopc()
225 emulate_rd16rn12rm0rs8_rwflags_nopc(probes_opcode_t insn, in emulate_rd16rn12rm0rs8_rwflags_nopc()
255 emulate_rd12rm0_noflags_nopc(probes_opcode_t insn, in emulate_rd12rm0_noflags_nopc()
275 emulate_rdlo12rdhi16rn0rm8_rwflags_nopc(probes_opcode_t insn, in emulate_rdlo12rdhi16rn0rm8_rwflags_nopc()
Dcheckers-thumb.c21 static enum probes_insn __kprobes t32_check_stack(probes_opcode_t insn, in t32_check_stack()
95 static enum probes_insn __kprobes t16_check_stack(probes_opcode_t insn, in t16_check_stack()
/arch/arm64/kernel/
Dinsn.c58 enum aarch64_insn_encoding_class __kprobes aarch64_get_insn_class(u32 insn) in aarch64_get_insn_class()
64 bool __kprobes aarch64_insn_is_nop(u32 insn) in aarch64_insn_is_nop()
81 bool aarch64_insn_is_branch_imm(u32 insn) in aarch64_insn_is_branch_imm()
129 static int __kprobes __aarch64_insn_write(void *addr, __le32 insn) in __aarch64_insn_write()
146 int __kprobes aarch64_insn_write(void *addr, u32 insn) in aarch64_insn_write()
151 static bool __kprobes __aarch64_insn_hotpatch_safe(u32 insn) in __aarch64_insn_hotpatch_safe()
165 bool __kprobes aarch64_insn_uses_literal(u32 insn) in aarch64_insn_uses_literal()
175 bool __kprobes aarch64_insn_is_branch(u32 insn) in aarch64_insn_is_branch()
207 int __kprobes aarch64_insn_patch_text_nosync(void *addr, u32 insn) in aarch64_insn_patch_text_nosync()
277 u32 insn; in aarch64_insn_patch_text() local
[all …]
/arch/m32r/kernel/
Dalign.c39 #define REG1(insn) (((insn) & 0x0f00) >> 8) argument
40 #define REG2(insn) ((insn) & 0x000f) argument
82 static int emu_addi(unsigned short insn, struct pt_regs *regs) in emu_addi()
95 static int emu_ldi(unsigned short insn, struct pt_regs *regs) in emu_ldi()
104 static int emu_add(unsigned short insn, struct pt_regs *regs) in emu_add()
117 static int emu_addx(unsigned short insn, struct pt_regs *regs) in emu_addx()
137 static int emu_and(unsigned short insn, struct pt_regs *regs) in emu_and()
149 static int emu_cmp(unsigned short insn, struct pt_regs *regs) in emu_cmp()
159 static int emu_cmpeq(unsigned short insn, struct pt_regs *regs) in emu_cmpeq()
169 static int emu_cmpu(unsigned short insn, struct pt_regs *regs) in emu_cmpu()
[all …]
/arch/s390/lib/
Dprobes.c12 int probe_is_prohibited_opcode(u16 *insn) in probe_is_prohibited_opcode()
46 int probe_get_fixup_type(u16 *insn) in probe_get_fixup_type()
118 int probe_is_insn_relative_long(u16 *insn) in probe_is_insn_relative_long()
/arch/sparc/kernel/
Dunaligned_32.c33 static inline enum direction decode_direction(unsigned int insn) in decode_direction()
48 static inline int decode_access_size(unsigned int insn) in decode_access_size()
66 static inline int decode_signedness(unsigned int insn) in decode_signedness()
136 unsigned int insn) in compute_effective_address()
152 unsigned int insn) in safe_compute_effective_address()
204 static inline int floating_point_load_or_store_p(unsigned int insn) in floating_point_load_or_store_p()
209 static inline int ok_for_kernel(unsigned int insn) in ok_for_kernel()
214 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 static inline int ok_for_user(struct pt_regs *regs, unsigned int insn, in ok_for_user()
[all …]
Dunaligned_64.c42 static inline enum direction decode_direction(unsigned int insn) in decode_direction()
59 static inline int decode_access_size(struct pt_regs *regs, unsigned int insn) in decode_access_size()
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()
249 static inline int floating_point_load_or_store_p(unsigned int insn) in floating_point_load_or_store_p()
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
306 asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn) in kernel_unaligned_trap()
396 int handle_popc(u32 insn, struct pt_regs *regs) in handle_popc()
[all …]
/arch/arm/probes/
Ddecode-arm.c29 #define branch_displacement(insn) sign_extend(((insn) & 0xffffff) << 2, 25) argument
61 void __kprobes simulate_bbl(probes_opcode_t insn, in simulate_bbl()
73 void __kprobes simulate_blx1(probes_opcode_t insn, in simulate_blx1()
84 void __kprobes simulate_blx2bx(probes_opcode_t insn, in simulate_blx2bx()
99 void __kprobes simulate_mrs(probes_opcode_t insn, in simulate_mrs()
107 void __kprobes simulate_mov_ipsp(probes_opcode_t insn, in simulate_mov_ipsp()
708 static void __kprobes arm_singlestep(probes_opcode_t insn, in arm_singlestep()
728 arm_probes_decode_insn(probes_opcode_t insn, struct arch_probes_insn *asi, in arm_probes_decode_insn()
/arch/arm64/kernel/probes/
Ddecode-insn.c26 static bool __kprobes aarch64_insn_is_steppable(u32 insn) in aarch64_insn_is_steppable()
81 arm_probe_decode_insn(probe_opcode_t insn, struct arch_probe_insn *api) in arm_probe_decode_insn()
145 probe_opcode_t insn = le32_to_cpu(*addr); in arm_kprobe_decode_insn() local
/arch/s390/kernel/
Djump_label.c15 struct insn { struct
25 static void jump_label_make_nop(struct jump_entry *entry, struct insn *insn) in jump_label_make_nop()
32 static void jump_label_make_branch(struct jump_entry *entry, struct insn *insn) in jump_label_make_branch()
Dftrace.c62 static inline void ftrace_generate_orig_insn(struct ftrace_insn *insn) in ftrace_generate_orig_insn()
75 static inline int is_kprobe_on_ftrace(struct ftrace_insn *insn) in is_kprobe_on_ftrace()
84 static inline void ftrace_generate_kprobe_nop_insn(struct ftrace_insn *insn) in ftrace_generate_kprobe_nop_insn()
92 static inline void ftrace_generate_kprobe_call_insn(struct ftrace_insn *insn) in ftrace_generate_kprobe_call_insn()
/arch/arm/probes/uprobes/
Dactions-arm.c22 probes_opcode_t insn = __mem_to_opcode_arm(*pinsn); in uprobes_substitute_pc() local
108 decode_pc_ro(probes_opcode_t insn, struct arch_probes_insn *asi, in decode_pc_ro()
132 decode_wb_pc(probes_opcode_t insn, struct arch_probes_insn *asi, in decode_wb_pc()
147 decode_rd12rn16rm0rs8_rwflags(probes_opcode_t insn, in decode_rd12rn16rm0rs8_rwflags()
155 decode_ldr(probes_opcode_t insn, struct arch_probes_insn *asi, in decode_ldr()
162 uprobe_decode_ldmstm(probes_opcode_t insn, in uprobe_decode_ldmstm()
/arch/arm/include/asm/
Dpatch.h8 static inline void __patch_text(void *addr, unsigned int insn) in __patch_text()
13 static inline void __patch_text_early(void *addr, unsigned int insn) in __patch_text_early()
/arch/s390/include/uapi/asm/
Dsie.h230 #define INSN_DECODE_IPA0(ipa0, insn, rshift, mask) \ argument
234 #define INSN_DECODE(insn) (insn >> 56) argument
241 #define icpt_insn_decoder(insn) ( \ argument
/arch/sh/include/asm/
Duaccess_32.h36 #define __get_user_asm(x, addr, err, insn) \ argument
57 #define __get_user_asm(x, addr, err, insn) \ argument
91 #define __put_user_asm(x, addr, err, insn) \ argument
115 #define __put_user_asm(x, addr, err, insn) \ argument

123456789