Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\tracehook.h Create Date:2022-07-28 07:30:08
Last Modify:2020-03-16 18:56:00 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ptrace report for syscall entry and exit looks identical.

Proto:static inline int ptrace_report_syscall(struct pt_regs *regs, unsigned long message)

Type:int

Parameter:

TypeParameterName
struct pt_regs *regs
unsigned longmessage
60  ptrace = ptrace
62  If Not (ptrace & PT_PTRACED) Then Return 0
65  ptrace_message = message
66  ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0))
73  If exit_code Then
74  send_sig(exit_code, current process, 1)
75  exit_code = 0
78  ptrace_message = 0
79  Return fatal_signal_pending(current process)