函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ptrace_set_breakpoint_addr

函数原型:static int ptrace_set_breakpoint_addr(struct task_struct *tsk, int nr, unsigned long addr)

返回类型:int

参数:

类型参数名称
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  如果非bp
666  bp等于ptrace_register_breakpoint(tsk, X86_BREAKPOINT_LEN_1, rigger on memory write , addr, true)
669  如果是错误err等于错误
671  否则 Save middle states of ptrace breakpoints [nr]等于bp
673  否则
674  attr等于attr
676  bp_addr等于addr
677  err等于modify_user_hw_breakpoint(bp, & attr)
680  返回:err
调用者
名称描述
ptrace_set_debugregHandle PTRACE_POKEUSR calls for the debug register area.