函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Handle PTRACE_PEEKUSR calls for the debug register area.

函数原型:static unsigned long ptrace_get_debugreg(struct task_struct *tsk, int n)

返回类型:unsigned long

参数:

类型参数名称
struct task_struct *tsk
intn
630  thread等于* New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct.
631  val等于0
633  如果n小于Total number of available HW breakpoint registers
634  index等于array_index_nospec - sanitize an array index after a bounds check* For a code sequence like:* if (index < size) {* index = array_index_nospec(index, size);* val = array[index];* }* (n, Total number of available HW breakpoint registers )
635  bp等于 Save middle states of ptrace breakpoints [index]
637  如果bpval等于address
639  否则如果n恒等于6则
640  val等于 Debug status used for traps, single steps, etc...
641  否则如果n恒等于7则
642  val等于 Keep track of the exact dr7 value set by the user
644  返回:val
调用者
名称描述
arch_ptrace