Function report |
Source Code:kernel\ptrace.c |
Create Date:2022-07-28 09:13:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ptrace_resume
Proto:static int ptrace_resume(struct task_struct *child, long request, unsigned long data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | child | |
long | request | |
unsigned long | data |
811 | If Not Test if 'sig' is valid signal. Use this instead of testing _NSIG directly Then Return -EIO |
814 | If request == PTRACE_SYSCALL Then Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available: |
816 | Else clear_tsk_thread_flag(child, syscall trace active ) |
820 | If request == PTRACE_SYSEMU || request == PTRACE_SYSEMU_SINGLESTEP Then Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available: |
822 | Else clear_tsk_thread_flag(child, syscall emulation active ) |
826 | If is_singleblock(request) Then |
827 | If Value for the false possibility is greater at compile time(!arch_has_block_step()) Then Return -EIO |
830 | Else if is_singlestep(request) || is_sysemu_singlestep(request) Then |
831 | If Value for the false possibility is greater at compile time(!arch_has_single_step()) Then Return -EIO |
834 | Else |
851 | need_siglock = data && Not thread_group_empty(current process) |
852 | If need_siglock Then spin_lock_irq( & siglock) |
855 | wake_up_state(child, __TASK_TRACED) |
856 | If need_siglock Then spin_unlock_irq( & siglock) |
859 | Return 0 |
Name | Describe |
---|---|
ptrace_request |
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 |