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:Handle PTRACE_POKEUSR calls for the debug register area.

Proto:static int ptrace_set_debugreg(struct task_struct *tsk, int n, unsigned long val)

Type:int

Parameter:

TypeParameterName
struct task_struct *tsk
intn
unsigned longval
689  thread = * New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct.
691  rc = -EIO
693  If n < Total number of available HW breakpoint registers Then
694  rc = ptrace_set_breakpoint_addr(tsk, n, val)
695  Else if n == 6 Then
696  Debug status used for traps, single steps, etc... = val
697  rc = 0
698  Else if n == 7 Then
699  rc = Handle ptrace writes to debug register 7.
700  If Not rc Then Keep track of the exact dr7 value set by the user = val
703  Return rc
Caller
NameDescribe
arch_ptrace