Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\ptrace.c Create Date:2022-07-28 07:51:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ptrace_set_breakpoint_addr

Proto:static int ptrace_set_breakpoint_addr(struct task_struct *tsk, int nr, unsigned long addr)

Type:int

Parameter:

TypeParameterName
struct task_struct *tsk
intnr
unsigned longaddr
650  t = * New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct.
651  bp = Save middle states of ptrace breakpoints [nr]
652  err = 0
654  If Not bp Then
666  bp = ptrace_register_breakpoint(tsk, X86_BREAKPOINT_LEN_1, rigger on memory write , addr, true)
669  If IS_ERR(bp) Then err = PTR_ERR(bp)
671  Else Save middle states of ptrace breakpoints [nr] = bp
673  Else
674  attr = attr
676  bp_addr = addr
677  err = modify_user_hw_breakpoint(bp, & attr)
680  Return err
Caller
NameDescribe
ptrace_set_debugregHandle PTRACE_POKEUSR calls for the debug register area.