函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:COMPAT_SYSCALL_DEFINE4

函数原型:COMPAT_SYSCALL_DEFINE4(ptrace, compat_long_t, request, compat_long_t, pid, compat_long_t, addr, compat_long_t, data)

返回类型:

参数:

1395  如果(request == structs and defines to help the user use the ptrace system call. )则
1396  ret等于ptrace_traceme -- helper for PTRACE_TRACEME* Performs checks and sets PT_PTRACED.* Should be used by all ptrace implementations for PTRACE_TRACEME.
1397  转到:out
1400  child等于d a task by its virtual pid and get the task struct
1401  如果非child
1402  ret等于负ESRCH
1403  转到:out
1406  如果(request == PTRACE_ATTACH || request == PTRACE_SEIZE)则
1407  ret等于ptrace_attach(child, request, addr, data)
1412  如果非retarch_ptrace_attach(child)
1414  转到:out_put_task_struct
1417  ret等于ptrace_check_attach - check whether ptracee is ready for ptrace operation*@child: ptracee to check for*@ignore_state: don't check whether @child is currently %TASK_TRACED* Check whether @child is being ptraced by %current and ready for further
1419  如果非ret
1420  ret等于compat_arch_ptrace(child, request, addr, data)
1421  如果(ret || request != PTRACE_DETACH)则ptrace_unfreeze_traced(child)
1425  out_put_task_struct :
1426  put_task_struct(child)
1427  out :
1428  返回:ret