Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Dump the debug register contents to the user.* We can't dump our per cpu values because it* may contain cpu wide breakpoint, something that* doesn't belong to the current task.* TODO: include non-ptrace user breakpoints (perf)

Proto:void aout_dump_debugregs(struct user *dump)

Type:void

Parameter:

TypeParameterName
struct user *dump
369  dr7 = 0
372  thread = thread
374  When i < Total number of available HW breakpoint registers cycle
375  bp = Save middle states of ptrace breakpoints [i]
377  If bp && Not disabled Then
378  u_debugreg[i] = bp_addr
381  Else
382  u_debugreg[i] = 0
386  u_debugreg[4] = 0
387  u_debugreg[5] = 0
388  u_debugreg[6] = debugreg6
390  u_debugreg[7] = dr7