Lines Matching +full:current +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2008-2009 Red Hat, Inc. All rights reserved.
31 * Some tracehook_*() inlines take arguments that the current tracing
38 * can change so there is no make-work burden on the core code. The
51 #include <linux/blk-cgroup.h>
60 int ptrace = current->ptrace; in ptrace_report_syscall()
65 current->ptrace_message = message; in ptrace_report_syscall()
71 * stopping signal is not SIGTRAP. -brl in ptrace_report_syscall()
73 if (current->exit_code) { in ptrace_report_syscall()
74 send_sig(current->exit_code, current, 1); in ptrace_report_syscall()
75 current->exit_code = 0; in ptrace_report_syscall()
78 current->ptrace_message = 0; in ptrace_report_syscall()
79 return fatal_signal_pending(current); in ptrace_report_syscall()
83 * tracehook_report_syscall_entry - task is about to attempt a system call
84 * @regs: user register state of current task
87 * %SYSCALL_WORK_SYSCALL_EMU have been set, when the current task has just
95 * made. If @task ever returns to user mode after this, its register state
98 * can work (see asm-generic/syscall.h).
100 * Called without locks, just after entering kernel mode.
109 * tracehook_report_syscall_exit - task has just finished a system call
110 * @regs: user register state of current task
111 * @step: nonzero if simulating single-step or block-step
114 * the current task has just finished an attempted system call. Full
134 * tracehook_signal_handler - signal handler setup is complete
135 * @stepping: nonzero if debugger single-step or block-step in use
141 * Called without locks, shortly before returning to user mode
151 * set_notify_resume - cause tracehook_notify_resume() to be called
155 * before returning to user mode. If it's already running in user mode,
168 * tracehook_notify_resume - report when about to return to user mode
169 * @regs: user-mode registers of @current task
172 * about to return to user mode, and the user state in @regs can be
176 * user mode.
184 * This barrier pairs with task_work_add()->set_notify_resume() after in tracehook_notify_resume()
185 * hlist_add_head(task->task_works); in tracehook_notify_resume()
188 if (unlikely(current->task_works)) in tracehook_notify_resume()
192 if (unlikely(current->cached_requested_key)) { in tracehook_notify_resume()
193 key_put(current->cached_requested_key); in tracehook_notify_resume()
194 current->cached_requested_key = NULL; in tracehook_notify_resume()
213 if (current->task_works) in tracehook_notify_signal()