Home
last modified time | relevance | path

Searched refs:pt_regs (Results 1 – 25 of 41) sorted by relevance

12

/kernel/entry/
Dcommon.c16 static __always_inline void __enter_from_user_mode(struct pt_regs *regs) in __enter_from_user_mode()
29 void noinstr enter_from_user_mode(struct pt_regs *regs) in enter_from_user_mode()
34 static inline void syscall_enter_audit(struct pt_regs *regs, long syscall) in syscall_enter_audit()
44 static long syscall_trace_enter(struct pt_regs *regs, long syscall, in syscall_trace_enter()
85 __syscall_enter_from_user_work(struct pt_regs *regs, long syscall) in __syscall_enter_from_user_work()
95 long syscall_enter_from_user_mode_work(struct pt_regs *regs, long syscall) in syscall_enter_from_user_mode_work()
100 noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall) in syscall_enter_from_user_mode()
114 noinstr void syscall_enter_from_user_mode_prepare(struct pt_regs *regs) in syscall_enter_from_user_mode_prepare()
141 void __weak arch_do_signal_or_restart(struct pt_regs *regs, bool has_signal) { } in arch_do_signal_or_restart()
143 static void handle_signal_work(struct pt_regs *regs, unsigned long ti_work) in handle_signal_work()
[all …]
Dsyscall_user_dispatch.c19 static void trigger_sigsys(struct pt_regs *regs) in trigger_sigsys()
34 bool syscall_user_dispatch(struct pt_regs *regs) in syscall_user_dispatch()
Dcommon.h5 bool syscall_user_dispatch(struct pt_regs *regs);
/kernel/
Dtest_kprobes.c26 static int kp_pre_handler(struct kprobe *p, struct pt_regs *regs) in kp_pre_handler()
36 static void kp_post_handler(struct kprobe *p, struct pt_regs *regs, in kp_post_handler()
87 static int kp_pre_handler2(struct kprobe *p, struct pt_regs *regs) in kp_pre_handler2()
93 static void kp_post_handler2(struct kprobe *p, struct pt_regs *regs, in kp_post_handler2()
159 static int entry_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in entry_handler()
169 static int return_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in return_handler()
216 static int return_handler2(struct kretprobe_instance *ri, struct pt_regs *regs) in return_handler2()
Dstacktrace.c165 unsigned int stack_trace_save_regs(struct pt_regs *regs, unsigned long *store, in stack_trace_save_regs()
259 save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) in save_stack_trace_regs()
319 unsigned int stack_trace_save_regs(struct pt_regs *regs, unsigned long *store, in stack_trace_save_regs()
Drseq.c237 static int rseq_ip_fixup(struct pt_regs *regs) in rseq_ip_fixup()
278 void __rseq_handle_notify_resume(struct ksignal *ksig, struct pt_regs *regs) in __rseq_handle_notify_resume()
311 void rseq_syscall(struct pt_regs *regs) in rseq_syscall()
Dfail_function.c15 static int fei_kprobe_handler(struct kprobe *kp, struct pt_regs *regs);
17 static void fei_post_handler(struct kprobe *kp, struct pt_regs *regs, in fei_post_handler()
169 static int fei_kprobe_handler(struct kprobe *kp, struct pt_regs *regs) in fei_kprobe_handler()
Dpanic.c150 void __weak nmi_panic_self_stop(struct pt_regs *regs) in nmi_panic_self_stop()
189 void nmi_panic(struct pt_regs *regs, const char *msg) in nmi_panic()
652 struct pt_regs *regs, struct warn_args *args) in __warn()
Dkexec_core.c945 void __noclone __crash_kexec(struct pt_regs *regs) in __crash_kexec()
957 struct pt_regs fixed_regs; in __crash_kexec()
969 void crash_kexec(struct pt_regs *regs) in crash_kexec()
1064 void crash_save_cpu(struct pt_regs *regs, int cpu) in crash_save_cpu()
Dkprobes.c384 static int aggr_pre_handler(struct kprobe *p, struct pt_regs *regs);
416 void opt_pre_handler(struct kprobe *p, struct pt_regs *regs) in opt_pre_handler()
1161 static int aggr_pre_handler(struct kprobe *p, struct pt_regs *regs) in aggr_pre_handler()
1177 static void aggr_post_handler(struct kprobe *p, struct pt_regs *regs, in aggr_post_handler()
1876 unsigned long __kretprobe_trampoline_handler(struct pt_regs *regs, in __kretprobe_trampoline_handler()
1938 static int pre_handler_kretprobe(struct kprobe *p, struct pt_regs *regs) in NOKPROBE_SYMBOL()
2138 static int pre_handler_kretprobe(struct kprobe *p, struct pt_regs *regs) in pre_handler_kretprobe()
/kernel/trace/
Dtrace_syscalls.c67 trace_get_syscall_nr(struct task_struct *task, struct pt_regs *regs) in trace_get_syscall_nr()
76 trace_get_syscall_nr(struct task_struct *task, struct pt_regs *regs) in trace_get_syscall_nr()
293 static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) in ftrace_syscall_enter()
334 static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) in ftrace_syscall_exit()
555 static int perf_call_bpf_enter(struct trace_event_call *call, struct pt_regs *regs, in perf_call_bpf_enter()
566 *(struct pt_regs **)&param = regs; in perf_call_bpf_enter()
573 static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) in perf_syscall_enter()
658 static int perf_call_bpf_exit(struct trace_event_call *call, struct pt_regs *regs, in perf_call_bpf_exit()
667 *(struct pt_regs **)&param = regs; in perf_call_bpf_exit()
673 static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) in perf_syscall_exit()
Dbpf_trace.c136 BPF_CALL_2(bpf_override_return, struct pt_regs *, regs, unsigned long, rc) in BPF_CALL_2() argument
569 __bpf_perf_event_output(struct pt_regs *regs, struct bpf_map *map, in __bpf_perf_event_output()
608 BPF_CALL_5(bpf_perf_event_output, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_5() argument
657 struct pt_regs regs[3];
680 struct pt_regs *regs; in bpf_event_output()
734 BTF_ID(struct, pt_regs)
997 BPF_CALL_1(bpf_get_func_ip_kprobe, struct pt_regs *, regs) in BPF_CALL_1() argument
1184 if (off < 0 || off >= sizeof(struct pt_regs)) in kprobe_prog_is_valid_access()
1194 if (off + size > sizeof(struct pt_regs)) in kprobe_prog_is_valid_access()
1211 struct pt_regs *regs = *(struct pt_regs **)tp_buff; in BPF_CALL_5()
[all …]
Dtrace_uprobe.c94 static int uprobe_dispatcher(struct uprobe_consumer *con, struct pt_regs *regs);
96 unsigned long func, struct pt_regs *regs);
110 static unsigned long get_user_stack_nth(struct pt_regs *regs, unsigned int n) in get_user_stack_nth()
220 struct pt_regs *regs = rec; in process_fetch_insn()
948 unsigned long func, struct pt_regs *regs, in __uprobe_trace_func()
990 static int uprobe_trace_func(struct trace_uprobe *tu, struct pt_regs *regs, in uprobe_trace_func()
1007 struct pt_regs *regs, in uretprobe_trace_func()
1346 unsigned long func, struct pt_regs *regs, in __uprobe_perf_func()
1406 static int uprobe_perf_func(struct trace_uprobe *tu, struct pt_regs *regs, in uprobe_perf_func()
1418 struct pt_regs *regs, in uretprobe_perf_func()
[all …]
Dtrace_kprobe.c237 static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs);
239 struct pt_regs *regs);
1337 struct pt_regs *regs = rec; in process_fetch_insn()
1383 __kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs, in NOKPROBE_SYMBOL()
1418 kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs) in kprobe_trace_func()
1430 struct pt_regs *regs, in __kretprobe_trace_func()
1466 struct pt_regs *regs) in kretprobe_trace_func()
1578 kprobe_perf_func(struct trace_kprobe *tk, struct pt_regs *regs) in kprobe_perf_func()
1628 struct pt_regs *regs) in kretprobe_perf_func()
1722 static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs) in kprobe_dispatcher()
[all …]
Dtrace_event_perf.c396 void *perf_trace_buf_alloc(int size, struct pt_regs **regs, int *rctxp) in perf_trace_buf_alloc()
438 struct pt_regs regs; in perf_ftrace_function_call()
/kernel/debug/kdb/
Dkdb_private.h172 extern void kdb_bp_install(struct pt_regs *);
183 int, kdb_dbtrap_t, struct pt_regs *);
221 extern struct pt_regs *kdb_current_regs;
Dkdb_bp.c27 static void kdb_setsinglestep(struct pt_regs *regs) in kdb_setsinglestep()
108 static void kdb_handle_bp(struct pt_regs *regs, kdb_bp_t *bp) in kdb_handle_bp()
125 static int _kdb_bp_install(struct pt_regs *regs, kdb_bp_t *bp) in _kdb_bp_install()
174 void kdb_bp_install(struct pt_regs *regs) in kdb_bp_install()
/kernel/events/
Dcallchain.c39 struct pt_regs *regs) in perf_callchain_kernel()
44 struct pt_regs *regs) in perf_callchain_user()
180 get_perf_callchain(struct pt_regs *regs, u32 init_nr, bool kernel, bool user, in get_perf_callchain()
Duprobes.c1689 unsigned long __weak uprobe_get_swbp_addr(struct pt_regs *regs) in uprobe_get_swbp_addr()
1694 unsigned long uprobe_get_trap_addr(struct pt_regs *regs) in uprobe_get_trap_addr()
1848 struct pt_regs *regs) in cleanup_return_instances()
1860 static void prepare_uretprobe(struct uprobe *uprobe, struct pt_regs *regs) in prepare_uretprobe()
1928 pre_ssout(struct uprobe *uprobe, struct pt_regs *regs, unsigned long bp_vaddr) in pre_ssout()
2072 static void handler_chain(struct uprobe *uprobe, struct pt_regs *regs) in handler_chain()
2105 handle_uretprobe_chain(struct return_instance *ri, struct pt_regs *regs) in handle_uretprobe_chain()
2130 static void handle_trampoline(struct pt_regs *regs) in handle_trampoline()
2172 bool __weak arch_uprobe_ignore(struct arch_uprobe *aup, struct pt_regs *regs) in arch_uprobe_ignore()
2178 struct pt_regs *regs) in arch_uretprobe_is_alive()
[all …]
/kernel/bpf/
Dstackmap.c327 BPF_CALL_3(bpf_get_stackid, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_3() argument
432 static long __bpf_get_stack(struct pt_regs *regs, struct task_struct *task, in __bpf_get_stack()
508 BPF_CALL_4(bpf_get_stack, struct pt_regs *, regs, void *, buf, u32, size, in BPF_CALL_4() argument
527 struct pt_regs *regs; in BPF_CALL_4()
555 struct pt_regs *regs = (struct pt_regs *)(ctx->regs); in BPF_CALL_4()
/kernel/irq/
Dhandle.c22 void (*handle_arch_irq)(struct pt_regs *) __ro_after_init;
221 int __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) in set_handle_irq() argument
Dirqdesc.c693 unsigned int hwirq, struct pt_regs *regs) in handle_domain_irq()
695 struct pt_regs *old_regs = set_irq_regs(regs); in handle_domain_irq()
732 struct pt_regs *regs) in handle_domain_nmi()
734 struct pt_regs *old_regs = set_irq_regs(regs); in handle_domain_nmi()
/kernel/debug/
Ddebug_core.c202 unsigned long __weak kgdb_arch_pc(int exception, struct pt_regs *regs) in kgdb_arch_pc()
213 int __weak kgdb_skipexception(int exception, struct pt_regs *regs) in kgdb_skipexception()
583 static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs, in kgdb_cpu_enter()
848 kgdb_handle_exception(int evector, int signo, int ecode, struct pt_regs *regs) in kgdb_handle_exception()
Ddebug_core.h28 struct pt_regs *linux_regs;
Dgdbstub.c339 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs()
351 void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) in gdb_regs_to_pt_regs()
430 static struct task_struct *getthread(struct pt_regs *regs, int tid) in getthread()

12