| Function report | 
| Source Code: arch\x86\kernel\ptrace.c | Create Date:2022-07-28 07:51:45 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Handle ptrace writes to debug register 7.
Proto:static int ptrace_write_dr7(struct task_struct *tsk, unsigned long data)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | tsk | |
| unsigned long | data | 
| 579 | thread = * New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct. | 
| 581 | bool second_pass = false | 
| 582 | ret = 0 | 
| 585 | old_dr7 = Walk through every ptrace breakpoints for this thread and* build the dr7 value on top of their attributes. | 
| 587 | restore : | 
| 588 | rc = 0 | 
| 591 | disabled = Not Decode the length and type bits for a particular breakpoint as* stored in debug register 7. Return the "enabled" status. | 
| 594 | If Not bp Then | 
| 595 | If disabled Then Continue | 
| 606 | Continue | 
| 610 | If rc Then Break | 
| 615 | If rc && Not WARN_ON(second_pass) Then | 
| 622 | Return ret | 
| Name | Describe | 
|---|---|
| ptrace_set_debugreg | Handle PTRACE_POKEUSR calls for the debug register area. | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |