Function report |
Source Code:kernel\signal.c |
Create Date:2022-07-28 09:16:38 |
Last Modify:2020-03-17 13:28:47 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This must be called with current->sighand->siglock held.* This should be the path for all ptrace stops.* We always set current->last_siginfo while stopped here.* That makes it a way to test a stopped process for
Proto:static void ptrace_stop(int exit_code, int why, int clear_code, kernel_siginfo_t *info)__releases(&get_current()->sighand->siglock) __acquires(&get_current()->sighand->siglock)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
int | exit_code | |
int | why | |
int | clear_code | |
kernel_siginfo_t * | info |
2119 | bool gstop_done = false |
2133 | spin_unlock_irq( & siglock) |
2135 | spin_lock_irq( & siglock) |
2160 | smp_wmb() |
2162 | last_siginfo = info |
2183 | spin_unlock_irq( & siglock) |
2184 | read_lock( & tasklist_lock) |
2185 | If may_ptrace_stop() Then |
2207 | read_unlock( & tasklist_lock) |
2208 | cgroup_enter_frozen() |
2209 | preempt_enable_no_resched() |
2210 | freezable_schedule() |
2211 | cgroup_leave_frozen(true) |
2212 | Else |
2228 | If clear_code Then exit_code = 0 |
2230 | read_unlock( & tasklist_lock) |
2238 | spin_lock_irq( & siglock) |
2239 | last_siginfo = NULL |
2242 | jobctl &= ~JOBCTL_LISTENING |
Name | Describe |
---|---|
ptrace_do_notify | |
do_jobctl_trap | do_jobctl_trap - take care of ptrace jobctl traps* When PT_SEIZED, it's used for both group stop and explicit* SEIZE/INTERRUPT traps. Both generate PTRACE_EVENT_STOP trap with* accompanying siginfo. If stopped, lower eight bits of exit_code contain |
ptrace_signal |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |