函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\ptrace.c Create Date:2022-07-27 10:13:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ptrace_resume

函数原型:static int ptrace_resume(struct task_struct *child, long request, unsigned long data)

返回类型:int

参数:

类型参数名称
struct task_struct *child
longrequest
unsigned longdata
811  如果非Test if 'sig' is valid signal. Use this instead of testing _NSIG directly 则返回:负EIO
814  如果request恒等于PTRACE_SYSCALLSet thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
816  否则清除线程指定标志
820  如果request恒等于PTRACE_SYSEMUrequest恒等于PTRACE_SYSEMU_SINGLESTEPSet thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
822  否则清除线程指定标志
826  如果is_singleblock(request)则
827  如果此条件成立可能性小(为编译器优化)(!arch_has_block_step())则返回:负EIO
829  user_enable_block_step(child)
830  否则如果is_singlestep(request)或is_sysemu_singlestep(request)则
831  如果此条件成立可能性小(为编译器优化)(!arch_has_single_step())则返回:负EIO
833  user_enable_single_step(child)
834  否则
835  user_disable_single_step(child)
851  need_siglock等于data且非thread_group_empty(当前进程)
852  如果need_siglockspin_lock_irq( & siglock)
854  进程退出时发出的标号等于data
855  wake_up_state(child, __TASK_TRACED)
856  如果need_siglockspin_unlock_irq( & siglock)
859  返回:0
调用者
名称描述
ptrace_request