/linux-6.6.21/arch/loongarch/include/asm/ |
D | ftrace.h | 52 static __always_inline struct pt_regs *arch_ftrace_get_regs(struct ftrace_regs *fregs) in arch_ftrace_get_regs() argument 54 return &fregs->regs; in arch_ftrace_get_regs() 58 ftrace_regs_get_instruction_pointer(struct ftrace_regs *fregs) in ftrace_regs_get_instruction_pointer() argument 60 return instruction_pointer(&fregs->regs); in ftrace_regs_get_instruction_pointer() 64 ftrace_regs_set_instruction_pointer(struct ftrace_regs *fregs, unsigned long ip) in ftrace_regs_set_instruction_pointer() argument 66 regs_set_return_value(&fregs->regs, ip); in ftrace_regs_set_instruction_pointer() 69 #define ftrace_regs_get_argument(fregs, n) \ argument 70 regs_get_kernel_argument(&(fregs)->regs, n) 71 #define ftrace_regs_get_stack_pointer(fregs) \ argument 72 kernel_stack_pointer(&(fregs)->regs) [all …]
|
/linux-6.6.21/arch/x86/include/asm/ |
D | ftrace.h | 43 arch_ftrace_get_regs(struct ftrace_regs *fregs) in arch_ftrace_get_regs() argument 46 if (!fregs->regs.cs) in arch_ftrace_get_regs() 48 return &fregs->regs; in arch_ftrace_get_regs() 51 #define ftrace_regs_set_instruction_pointer(fregs, _ip) \ argument 52 do { (fregs)->regs.ip = (_ip); } while (0) 54 #define ftrace_regs_get_instruction_pointer(fregs) \ argument 55 ((fregs)->regs.ip) 57 #define ftrace_regs_get_argument(fregs, n) \ argument 58 regs_get_kernel_argument(&(fregs)->regs, n) 59 #define ftrace_regs_get_stack_pointer(fregs) \ argument [all …]
|
/linux-6.6.21/arch/arm64/include/asm/ |
D | ftrace.h | 95 ftrace_regs_get_instruction_pointer(const struct ftrace_regs *fregs) in ftrace_regs_get_instruction_pointer() argument 97 return fregs->pc; in ftrace_regs_get_instruction_pointer() 101 ftrace_regs_set_instruction_pointer(struct ftrace_regs *fregs, in ftrace_regs_set_instruction_pointer() argument 104 fregs->pc = pc; in ftrace_regs_set_instruction_pointer() 108 ftrace_regs_get_stack_pointer(const struct ftrace_regs *fregs) in ftrace_regs_get_stack_pointer() argument 110 return fregs->sp; in ftrace_regs_get_stack_pointer() 114 ftrace_regs_get_argument(struct ftrace_regs *fregs, unsigned int n) in ftrace_regs_get_argument() argument 117 return fregs->regs[n]; in ftrace_regs_get_argument() 122 ftrace_regs_get_return_value(const struct ftrace_regs *fregs) in ftrace_regs_get_return_value() argument 124 return fregs->regs[0]; in ftrace_regs_get_return_value() [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | ftrace.h | 49 static __always_inline struct pt_regs *arch_ftrace_get_regs(struct ftrace_regs *fregs) in arch_ftrace_get_regs() argument 52 return fregs->regs.msr ? &fregs->regs : NULL; in arch_ftrace_get_regs() 56 ftrace_regs_set_instruction_pointer(struct ftrace_regs *fregs, in ftrace_regs_set_instruction_pointer() argument 59 regs_set_return_ip(&fregs->regs, ip); in ftrace_regs_set_instruction_pointer() 63 ftrace_regs_get_instruction_pointer(struct ftrace_regs *fregs) in ftrace_regs_get_instruction_pointer() argument 65 return instruction_pointer(&fregs->regs); in ftrace_regs_get_instruction_pointer() 68 #define ftrace_regs_get_argument(fregs, n) \ argument 69 regs_get_kernel_argument(&(fregs)->regs, n) 70 #define ftrace_regs_get_stack_pointer(fregs) \ argument 71 kernel_stack_pointer(&(fregs)->regs) [all …]
|
/linux-6.6.21/arch/s390/include/asm/ |
D | ftrace.h | 48 static __always_inline struct pt_regs *arch_ftrace_get_regs(struct ftrace_regs *fregs) in arch_ftrace_get_regs() argument 50 struct pt_regs *regs = &fregs->regs; in arch_ftrace_get_regs() 75 ftrace_regs_get_instruction_pointer(const struct ftrace_regs *fregs) in ftrace_regs_get_instruction_pointer() argument 77 return fregs->regs.psw.addr; in ftrace_regs_get_instruction_pointer() 81 ftrace_regs_set_instruction_pointer(struct ftrace_regs *fregs, in ftrace_regs_set_instruction_pointer() argument 84 fregs->regs.psw.addr = ip; in ftrace_regs_set_instruction_pointer() 87 #define ftrace_regs_get_argument(fregs, n) \ argument 88 regs_get_kernel_argument(&(fregs)->regs, n) 89 #define ftrace_regs_get_stack_pointer(fregs) \ argument 90 kernel_stack_pointer(&(fregs)->regs) [all …]
|
/linux-6.6.21/arch/sh/math-emu/ |
D | math.c | 26 #define FPUL (fregs->fpul) 27 #define FPSCR (fregs->fpscr) 36 #define FR ((unsigned long*)(fregs->fp_regs)) 40 #define DR ((unsigned long long*)(fregs->fp_regs)) 79 fcmp_gt(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) in fcmp_gt() argument 90 fcmp_eq(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) in fcmp_eq() argument 106 fadd(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) in fadd() argument 113 fsub(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) in fsub() argument 120 fmul(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) in fmul() argument 127 fdiv(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) in fdiv() argument [all …]
|
/linux-6.6.21/include/linux/ |
D | ftrace.h | 68 struct ftrace_ops *op, struct ftrace_regs *fregs); 124 #define arch_ftrace_get_regs(fregs) (&(fregs)->regs) argument 131 #define ftrace_regs_set_instruction_pointer(fregs, ip) do { } while (0) argument 134 static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs) in ftrace_get_regs() argument 136 if (!fregs) in ftrace_get_regs() 139 return arch_ftrace_get_regs(fregs); in ftrace_get_regs() 146 static __always_inline bool ftrace_regs_has_args(struct ftrace_regs *fregs) in ftrace_regs_has_args() argument 151 return ftrace_get_regs(fregs) != NULL; in ftrace_regs_has_args() 155 #define ftrace_regs_get_instruction_pointer(fregs) \ argument 156 instruction_pointer(ftrace_get_regs(fregs)) [all …]
|
/linux-6.6.21/arch/mips/kernel/ |
D | ptrace32.c | 95 union fpureg *fregs; in compat_arch_ptrace() local 102 fregs = get_fpu_regs(child); in compat_arch_ptrace() 109 tmp = get_fpr32(&fregs[(addr & ~1) - FPR_BASE], in compat_arch_ptrace() 113 tmp = get_fpr64(&fregs[addr - FPR_BASE], 0); in compat_arch_ptrace() 211 union fpureg *fregs = get_fpu_regs(child); in compat_arch_ptrace() local 225 set_fpr32(&fregs[(addr & ~1) - FPR_BASE], in compat_arch_ptrace() 229 set_fpr64(&fregs[addr - FPR_BASE], 0, data); in compat_arch_ptrace()
|
D | ptrace.c | 367 union fpureg *fregs = get_fpu_regs(child); in ptrace_getfpregs() local 369 __put_user(get_fpr64(&fregs[i], 0), in ptrace_getfpregs() 384 union fpureg *fregs; in ptrace_setfpregs() local 393 fregs = get_fpu_regs(child); in ptrace_setfpregs() 397 set_fpr64(&fregs[i], 0, fpr_val); in ptrace_setfpregs() 1111 union fpureg *fregs; in arch_ptrace() local 1118 fregs = get_fpu_regs(child); in arch_ptrace() 1127 tmp = get_fpr32(&fregs[(addr & ~1) - FPR_BASE], in arch_ptrace() 1132 tmp = get_fpr64(&fregs[addr - FPR_BASE], 0); in arch_ptrace() 1215 union fpureg *fregs = get_fpu_regs(child); in arch_ptrace() local [all …]
|
/linux-6.6.21/kernel/trace/ |
D | fprobe.c | 25 struct ftrace_ops *ops, struct ftrace_regs *fregs) in __fprobe_handler() argument 49 ret = fp->entry_handler(fp, ip, parent_ip, ftrace_get_regs(fregs), entry_data); in __fprobe_handler() 56 rethook_hook(rh, ftrace_get_regs(fregs), true); in __fprobe_handler() 61 struct ftrace_ops *ops, struct ftrace_regs *fregs) in fprobe_handler() argument 78 __fprobe_handler(ip, parent_ip, ops, fregs); in fprobe_handler() 85 struct ftrace_ops *ops, struct ftrace_regs *fregs) in fprobe_kprobe_handler() argument 115 __fprobe_handler(ip, parent_ip, ops, fregs); in fprobe_kprobe_handler()
|
D | trace_selftest.c | 110 struct ftrace_regs *fregs) in trace_selftest_test_probe1_func() argument 119 struct ftrace_regs *fregs) in trace_selftest_test_probe2_func() argument 128 struct ftrace_regs *fregs) in trace_selftest_test_probe3_func() argument 137 struct ftrace_regs *fregs) in trace_selftest_test_global_func() argument 146 struct ftrace_regs *fregs) in trace_selftest_test_dyn_func() argument 451 struct ftrace_regs *fregs) in trace_selftest_test_recursion_func() argument 466 struct ftrace_regs *fregs) in trace_selftest_test_recursion_safe_func() argument 585 struct ftrace_regs *fregs) in trace_selftest_test_regs_func() argument 587 struct pt_regs *regs = ftrace_get_regs(fregs); in trace_selftest_test_regs_func()
|
D | trace_functions.c | 26 struct ftrace_ops *op, struct ftrace_regs *fregs); 29 struct ftrace_ops *op, struct ftrace_regs *fregs); 32 struct ftrace_ops *op, struct ftrace_regs *fregs); 36 struct ftrace_regs *fregs); 173 struct ftrace_ops *op, struct ftrace_regs *fregs) in function_trace_call() argument 218 struct ftrace_ops *op, struct ftrace_regs *fregs) in function_stack_trace_call() argument 282 struct ftrace_regs *fregs) in function_no_repeats_trace_call() argument 328 struct ftrace_regs *fregs) in function_stack_no_repeats_trace_call() argument
|
/linux-6.6.21/arch/parisc/kernel/ |
D | ftrace.c | 59 struct ftrace_regs *fregs) in ftrace_function_trampoline() argument 63 ftrace_func(self_addr, parent, function_trace_op, fregs); in ftrace_function_trampoline() 202 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler() argument 213 regs = ftrace_get_regs(fregs); in kprobe_ftrace_handler()
|
/linux-6.6.21/arch/loongarch/kernel/ |
D | ftrace_dyn.c | 242 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func() argument 244 struct pt_regs *regs = &fregs->regs; in ftrace_graph_func() 283 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler() argument 298 regs = ftrace_get_regs(fregs); in kprobe_ftrace_handler()
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | kprobes-ftrace.c | 17 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler() argument 28 regs = ftrace_get_regs(fregs); in kprobe_ftrace_handler()
|
/linux-6.6.21/arch/x86/kernel/kprobes/ |
D | ftrace.c | 17 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler() argument 19 struct pt_regs *regs = ftrace_get_regs(fregs); in kprobe_ftrace_handler()
|
/linux-6.6.21/arch/riscv/kernel/probes/ |
D | ftrace.c | 7 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler() argument 22 regs = ftrace_get_regs(fregs); in kprobe_ftrace_handler()
|
/linux-6.6.21/arch/csky/kernel/probes/ |
D | ftrace.c | 7 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler() argument 19 regs = ftrace_get_regs(fregs); in kprobe_ftrace_handler()
|
/linux-6.6.21/arch/sparc/math-emu/ |
D | math_32.c | 133 static int do_one_mathemu(u32 insn, unsigned long *fsr, unsigned long *fregs); 275 static int do_one_mathemu(u32 insn, unsigned long *pfsr, unsigned long *fregs) in do_one_mathemu() argument 369 rs1 = (argp)&fregs[freg]; in do_one_mathemu() 390 rs2 = (argp)&fregs[freg]; in do_one_mathemu() 419 rd = (void *)&fregs[freg]; in do_one_mathemu()
|
/linux-6.6.21/arch/arm64/kernel/ |
D | ftrace.c | 482 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func() argument 484 prepare_ftrace_return(ip, &fregs->lr, fregs->fp); in ftrace_graph_func()
|
/linux-6.6.21/samples/ftrace/ |
D | ftrace-ops.c | 102 struct ftrace_regs *fregs) in ops_func_nop() argument 109 struct ftrace_regs *fregs) in ops_func_count() argument
|
/linux-6.6.21/arch/parisc/include/asm/ |
D | ftrace.h | 18 struct ftrace_regs *fregs);
|
/linux-6.6.21/kernel/livepatch/ |
D | patch.c | 43 struct ftrace_regs *fregs) in klp_ftrace_handler() argument 121 ftrace_regs_set_instruction_pointer(fregs, (unsigned long)func->new_func); in klp_ftrace_handler()
|
/linux-6.6.21/arch/powerpc/kernel/trace/ |
D | ftrace.c | 410 struct ftrace_ops *op, struct ftrace_regs *fregs) in ftrace_graph_func() argument 412 unsigned long sp = fregs->regs.gpr[1]; in ftrace_graph_func() 430 fregs->regs.link = parent_ip; in ftrace_graph_func()
|
/linux-6.6.21/arch/s390/kernel/ |
D | ftrace.c | 292 struct ftrace_ops *ops, struct ftrace_regs *fregs) in kprobe_ftrace_handler() argument 303 regs = ftrace_get_regs(fregs); in kprobe_ftrace_handler()
|