函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ptrace_event - possibly stop for a ptrace event notification*@event: %PTRACE_EVENT_* value to report*@message: value for %PTRACE_GETEVENTMSG to return* Check whether @event is enabled and, if so, report @event and @message* to the ptrace parent.

函数原型:static inline void ptrace_event(int event, unsigned long message)

返回类型:void

参数:

类型参数名称
intevent
unsigned longmessage
157  如果此条件成立可能性小(为编译器优化)(判断启用了跟踪)则
158  ptrace_message等于message
159  ptrace_notify((event << 8) | SIGTRAP)
160  否则如果event恒等于PTRACE_EVENT_EXEC
162  如果ptrace按位与PT_PTRACED按位或SEIZE used, enable new behavior 的值的值恒等于PT_PTRACEDsend_sig(SIGTRAP, 当前进程, 0)
调用者
名称描述
do_exit
exec_binprm
ptrace_event_pidptrace_event_pid - possibly stop for a ptrace event notification*@event: %PTRACE_EVENT_* value to report*@pid: process identifier for %PTRACE_GETEVENTMSG to return* Check whether @event is enabled and, if so, report @event and @pid* to the ptrace parent