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 * when the current task has just entered the kernel for a system call.
94 * made. If @task ever returns to user mode after this, its register state
97 * can work (see asm-generic/syscall.h).
99 * Called without locks, just after entering kernel mode.
108 * tracehook_report_syscall_exit - task has just finished a system call
109 * @regs: user register state of current task
110 * @step: nonzero if simulating single-step or block-step
113 * current task has just finished an attempted system call. Full
133 * tracehook_signal_handler - signal handler setup is complete
134 * @stepping: nonzero if debugger single-step or block-step in use
140 * Called without locks, shortly before returning to user mode
150 * set_notify_resume - cause tracehook_notify_resume() to be called
154 * before returning to user mode. If it's already running in user mode,
167 * tracehook_notify_resume - report when about to return to user mode
168 * @regs: user-mode registers of @current task
171 * about to return to user mode, and the user state in @regs can be
175 * user mode.
183 * This barrier pairs with task_work_add()->set_notify_resume() after in tracehook_notify_resume()
184 * hlist_add_head(task->task_works); in tracehook_notify_resume()
187 if (unlikely(current->task_works)) in tracehook_notify_resume()
191 if (unlikely(current->cached_requested_key)) { in tracehook_notify_resume()
192 key_put(current->cached_requested_key); in tracehook_notify_resume()
193 current->cached_requested_key = NULL; in tracehook_notify_resume()