Home
last modified time | relevance | path

Searched defs:insn (Results 1 – 25 of 215) 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.c616 insert_bat (unsigned long insn, in insert_bat()
625 extract_bat (unsigned long insn, in extract_bat()
641 insert_bba (unsigned long insn, in insert_bba()
650 extract_bba (unsigned long insn, in extract_bba()
663 insert_bd (unsigned long insn, in insert_bd()
672 extract_bd (unsigned long insn, in extract_bd()
693 insert_bdm (unsigned long insn, in insert_bdm()
714 extract_bdm (unsigned long insn, in extract_bdm()
738 insert_bdp (unsigned long insn, in insert_bdp()
759 extract_bdp (unsigned long insn, in extract_bdp()
[all …]
/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/m32r/kernel/
Dalign.c38 #define REG1(insn) (((insn) & 0x0f00) >> 8) argument
39 #define REG2(insn) ((insn) & 0x000f) argument
81 static int emu_addi(unsigned short insn, struct pt_regs *regs) in emu_addi()
94 static int emu_ldi(unsigned short insn, struct pt_regs *regs) in emu_ldi()
103 static int emu_add(unsigned short insn, struct pt_regs *regs) in emu_add()
116 static int emu_addx(unsigned short insn, struct pt_regs *regs) in emu_addx()
136 static int emu_and(unsigned short insn, struct pt_regs *regs) in emu_and()
148 static int emu_cmp(unsigned short insn, struct pt_regs *regs) in emu_cmp()
158 static int emu_cmpeq(unsigned short insn, struct pt_regs *regs) in emu_cmpeq()
168 static int emu_cmpu(unsigned short insn, struct pt_regs *regs) in emu_cmpu()
[all …]
/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, u32 insn) in __aarch64_insn_write()
146 int __kprobes aarch64_insn_write(void *addr, u32 insn) in aarch64_insn_write()
152 static bool __kprobes __aarch64_insn_hotpatch_safe(u32 insn) in __aarch64_insn_hotpatch_safe()
166 bool __kprobes aarch64_insn_uses_literal(u32 insn) in aarch64_insn_uses_literal()
176 bool __kprobes aarch64_insn_is_branch(u32 insn) in aarch64_insn_is_branch()
208 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/s390/lib/
Dprobes.c10 int probe_is_prohibited_opcode(u16 *insn) in probe_is_prohibited_opcode()
44 int probe_get_fixup_type(u16 *insn) in probe_get_fixup_type()
116 int probe_is_insn_relative_long(u16 *insn) in probe_is_insn_relative_long()
/arch/sparc/kernel/
Dunaligned_32.c32 static inline enum direction decode_direction(unsigned int insn) in decode_direction()
47 static inline int decode_access_size(unsigned int insn) in decode_access_size()
65 static inline int decode_signedness(unsigned int insn) in decode_signedness()
135 unsigned int insn) in compute_effective_address()
151 unsigned int insn) in safe_compute_effective_address()
203 static inline int floating_point_load_or_store_p(unsigned int insn) in floating_point_load_or_store_p()
208 static inline int ok_for_kernel(unsigned int insn) in ok_for_kernel()
213 static void kernel_mna_trap_fault(struct pt_regs *regs, unsigned int insn) in kernel_mna_trap_fault()
239 asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn) in kernel_unaligned_trap()
276 static inline int ok_for_user(struct pt_regs *regs, unsigned int insn, in ok_for_user()
[all …]
Dunaligned_64.c41 static inline enum direction decode_direction(unsigned int insn) in decode_direction()
58 static inline int decode_access_size(struct pt_regs *regs, unsigned int insn) in decode_access_size()
86 static inline int decode_asi(unsigned int insn, struct pt_regs *regs) in decode_asi()
98 static inline int decode_signedness(unsigned int insn) in decode_signedness()
169 unsigned int insn, unsigned int rd) in compute_effective_address()
248 static inline int floating_point_load_or_store_p(unsigned int insn) in floating_point_load_or_store_p()
253 static inline int ok_for_kernel(unsigned int insn) in ok_for_kernel()
261 unsigned int insn = current_thread_info()->kern_una_insn; in kernel_mna_trap_fault() local
305 asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn) in kernel_unaligned_trap()
395 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.c27 static bool __kprobes aarch64_insn_is_steppable(u32 insn) in aarch64_insn_is_steppable()
82 arm_probe_decode_insn(kprobe_opcode_t insn, struct arch_specific_insn *asi) in arm_probe_decode_insn()
145 kprobe_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.c60 static inline void ftrace_generate_orig_insn(struct ftrace_insn *insn) in ftrace_generate_orig_insn()
73 static inline int is_kprobe_on_ftrace(struct ftrace_insn *insn) in is_kprobe_on_ftrace()
82 static inline void ftrace_generate_kprobe_nop_insn(struct ftrace_insn *insn) in ftrace_generate_kprobe_nop_insn()
90 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.h7 static inline void __patch_text(void *addr, unsigned int insn) in __patch_text()
12 static inline void __patch_text_early(void *addr, unsigned int insn) in __patch_text_early()
/arch/s390/include/uapi/asm/
Dsie.h229 #define INSN_DECODE_IPA0(ipa0, insn, rshift, mask) \ argument
233 #define INSN_DECODE(insn) (insn >> 56) argument
240 #define icpt_insn_decoder(insn) ( \ argument
/arch/sh/include/asm/
Duaccess_32.h35 #define __get_user_asm(x, addr, err, insn) \ argument
56 #define __get_user_asm(x, addr, err, insn) \ argument
90 #define __put_user_asm(x, addr, err, insn) \ argument
114 #define __put_user_asm(x, addr, err, insn) \ argument
/arch/s390/include/asm/
Dftrace.h41 static inline void ftrace_generate_nop_insn(struct ftrace_insn *insn) in ftrace_generate_nop_insn()
56 static inline int is_ftrace_nop(struct ftrace_insn *insn) in is_ftrace_nop()
70 static inline void ftrace_generate_call_insn(struct ftrace_insn *insn, in ftrace_generate_call_insn()

123456789