/linux-6.6.21/arch/powerpc/include/asm/ |
D | inst.h | 14 ppc_inst_t __gui_inst; \ 41 static inline u32 ppc_inst_val(ppc_inst_t x) in ppc_inst_val() 46 #define ppc_inst(x) ((ppc_inst_t){ .val = (x) }) 49 static inline u32 ppc_inst_val(ppc_inst_t x) in ppc_inst_val() 56 static inline int ppc_inst_primary_opcode(ppc_inst_t x) in ppc_inst_primary_opcode() 62 #define ppc_inst_prefix(x, y) ((ppc_inst_t){ .val = (x), .suffix = (y) }) 64 static inline u32 ppc_inst_suffix(ppc_inst_t x) in ppc_inst_suffix() 72 static inline u32 ppc_inst_suffix(ppc_inst_t x) in ppc_inst_suffix() 79 static inline ppc_inst_t ppc_inst_read(const u32 *ptr) in ppc_inst_read() 87 static inline bool ppc_inst_prefixed(ppc_inst_t x) in ppc_inst_prefixed() [all …]
|
D | code-patching.h | 52 static inline int create_branch(ppc_inst_t *instr, const u32 *addr, in create_branch() 72 int create_cond_branch(ppc_inst_t *instr, const u32 *addr, 75 int patch_instruction(u32 *addr, ppc_inst_t instr); 76 int raw_patch_instruction(u32 *addr, ppc_inst_t instr); 83 static inline int patch_instruction_site(s32 *site, ppc_inst_t instr) in patch_instruction_site() 104 static inline unsigned int branch_opcode(ppc_inst_t instr) in branch_opcode() 109 static inline int instr_is_branch_iform(ppc_inst_t instr) in instr_is_branch_iform() 114 static inline int instr_is_branch_bform(ppc_inst_t instr) in instr_is_branch_bform() 119 int instr_is_relative_branch(ppc_inst_t instr); 120 int instr_is_relative_link_branch(ppc_inst_t instr); [all …]
|
D | hw_breakpoint.h | 59 bool wp_check_constraints(struct pt_regs *regs, ppc_inst_t instr, 63 void wp_get_instr_detail(struct pt_regs *regs, ppc_inst_t *instr,
|
D | sstep.h | 148 ppc_inst_t instr); 165 int emulate_step(struct pt_regs *regs, ppc_inst_t instr);
|
D | reg.h | 1389 } __packed ppc_inst_t; typedef 1391 typedef u32 ppc_inst_t; typedef
|
/linux-6.6.21/arch/powerpc/kernel/trace/ |
D | ftrace_64_pg.c | 40 static ppc_inst_t 43 ppc_inst_t op; in ftrace_call_replace() 54 ftrace_modify_code(unsigned long ip, ppc_inst_t old, ppc_inst_t new) in ftrace_modify_code() 56 ppc_inst_t replaced; in ftrace_modify_code() 91 static int is_bl_op(ppc_inst_t op) in is_bl_op() 96 static int is_b_op(ppc_inst_t op) in is_b_op() 101 static unsigned long find_bl_target(unsigned long ip, ppc_inst_t op) in find_bl_target() 120 ppc_inst_t op, pop; in __ftrace_make_nop() 256 ppc_inst_t op; in setup_mcount_compiler_tramp() 306 ppc_inst_t op; in __ftrace_make_nop_kernel() [all …]
|
D | ftrace.c | 34 static ppc_inst_t ftrace_create_branch_inst(unsigned long ip, unsigned long addr, int link) in ftrace_create_branch_inst() 36 ppc_inst_t op; in ftrace_create_branch_inst() 44 static inline int ftrace_read_inst(unsigned long ip, ppc_inst_t *op) in ftrace_read_inst() 54 static inline int ftrace_validate_inst(unsigned long ip, ppc_inst_t inst) in ftrace_validate_inst() 56 ppc_inst_t op; in ftrace_validate_inst() 69 static inline int ftrace_modify_code(unsigned long ip, ppc_inst_t old, ppc_inst_t new) in ftrace_modify_code() 79 static int is_bl_op(ppc_inst_t op) in is_bl_op() 97 static int ftrace_get_call_inst(struct dyn_ftrace *rec, unsigned long addr, ppc_inst_t *call_inst) in ftrace_get_call_inst() 137 ppc_inst_t old, new; in ftrace_make_call() 164 ppc_inst_t old, new, call_inst, new_call_inst; in ftrace_replace_code() [all …]
|
/linux-6.6.21/arch/powerpc/lib/ |
D | code-patching.c | 23 static int __patch_instruction(u32 *exec_addr, ppc_inst_t instr, u32 *patch_addr) in __patch_instruction() 44 int raw_patch_instruction(u32 *addr, ppc_inst_t instr) in raw_patch_instruction() 281 static int __do_patch_instruction_mm(u32 *addr, ppc_inst_t instr) in __do_patch_instruction_mm() 331 static int __do_patch_instruction(u32 *addr, ppc_inst_t instr) in __do_patch_instruction() 356 int patch_instruction(u32 *addr, ppc_inst_t instr) in patch_instruction() 383 ppc_inst_t instr; in patch_branch() 395 bool is_conditional_branch(ppc_inst_t instr) in is_conditional_branch() 413 int create_cond_branch(ppc_inst_t *instr, const u32 *addr, in create_cond_branch() 432 int instr_is_relative_branch(ppc_inst_t instr) in instr_is_relative_branch() 440 int instr_is_relative_link_branch(ppc_inst_t instr) in instr_is_relative_link_branch() [all …]
|
D | test-code-patching.c | 33 ppc_inst_t instr; in test_branch_iform() 115 ppc_inst_t instr; in test_create_function_call() 129 ppc_inst_t instr; in test_branch_bform() 207 ppc_inst_t instr; in test_translate_branch() 340 ppc_inst_t inst = ppc_inst_prefix(OP_PREFIX << 26, 0); in test_prefixed_patching()
|
D | test_emulate_step.c | 792 ppc_inst_t instr; in test_plxvp_pstxvp() 906 ppc_inst_t instr; 1600 ppc_inst_t instr, in emulate_compute_instr() 1627 ppc_inst_t instr) in execute_compute_instr() 1658 ppc_inst_t instr; in run_tests_compute()
|
D | feature-fixups.c | 50 ppc_inst_t instr; in patch_alt_instruction() 605 ppc_inst_t inst; in do_final_fixups()
|
/linux-6.6.21/arch/powerpc/xmon/ |
D | xmon_bpts.h | 8 #define BPT_SIZE (sizeof(ppc_inst_t) * 2) 9 #define BPT_WORDS (BPT_SIZE / sizeof(ppc_inst_t))
|
D | xmon.c | 125 static int mread_instr(unsigned long, ppc_inst_t *); 909 ppc_inst_t instr, instr2; in insert_bpts() 989 ppc_inst_t instr; in remove_bpts() 1205 ppc_inst_t instr; in do_step() 1459 ppc_inst_t instr; in check_bp_loc() 2304 mread_instr(unsigned long adrs, ppc_inst_t *instr) in mread_instr() 3028 ppc_inst_t inst, last_inst = ppc_inst(0); in generic_inst_dump()
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | hw_breakpoint_constraints.c | 83 bool wp_check_constraints(struct pt_regs *regs, ppc_inst_t instr, in wp_check_constraints() 130 void wp_get_instr_detail(struct pt_regs *regs, ppc_inst_t *instr, in wp_get_instr_detail()
|
D | epapr_paravirt.c | 40 ppc_inst_t inst = ppc_inst(be32_to_cpu(insts[i])); in early_init_dt_scan_epapr()
|
D | optprobes.c | 156 ppc_inst_t branch_op_callback, branch_emulate_step, temp; in arch_prepare_optimized_kprobe() 268 ppc_inst_t instr; in arch_optimize_kprobes()
|
D | align.c | 108 ppc_inst_t ppc_instr) in emulate_spe() 303 ppc_inst_t instr; in fix_alignment()
|
D | setup_32.c | 79 ppc_inst_t insn; in machine_init()
|
D | kprobes.c | 147 ppc_inst_t insn = ppc_inst_read(p->addr); in arch_prepare_kprobe() 258 ppc_inst_t insn = ppc_inst_read(p->ainsn.insn); in try_to_emulate()
|
D | hw_breakpoint.c | 284 int *hit, ppc_inst_t instr) in stepping_handler() 386 ppc_inst_t instr = ppc_inst(0); in hw_breakpoint_handler()
|
D | vecemu.c | 264 ppc_inst_t instr; in emulate_altivec()
|
D | module_32.c | 291 ppc_inst_t jmp[4]; in module_trampoline_target()
|
/linux-6.6.21/arch/powerpc/perf/ |
D | 8xx-pmu.c | 156 ppc_inst_t insn = ppc_inst(PPC_RAW_MFSPR(10, SPRN_SPRG_SCRATCH2)); in mpc8xx_pmu_del()
|
/linux-6.6.21/arch/powerpc/kvm/ |
D | emulate.c | 197 ppc_inst_t pinst; in kvmppc_emulate_instruction()
|
D | emulate_loadstore.c | 74 ppc_inst_t inst; in kvmppc_emulate_loadstore()
|