函数逻辑报告 |
Source Code:kernel\ptrace.c |
Create Date:2022-07-27 10:13:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:SYSCALL_DEFINE4
函数原型:SYSCALL_DEFINE4(ptrace, long, request, long, pid, unsigned long, addr, unsigned long, data)
返回类型:
参数:无
1249 | ret等于ptrace_traceme -- helper for PTRACE_TRACEME* Performs checks and sets PT_PTRACED.* Should be used by all ptrace implementations for PTRACE_TRACEME. |
1250 | 如果非ret则arch_ptrace_attach(当前进程) |
1252 | 转到:out |
1256 | 如果非child则 |
1261 | 如果(request == PTRACE_ATTACH || request == PTRACE_SEIZE)则 |
1267 | 如果非ret则arch_ptrace_attach(child) |
1269 | 转到:out_put_task_struct |
1274 | 如果ret小于0则转到:out_put_task_struct |
1278 | 如果(ret || request != PTRACE_DETACH)则ptrace_unfreeze_traced(child) |
1281 | out_put_task_struct : |
1282 | put_task_struct(child) |
1283 | out : |
1284 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |