| Function report | 
| 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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| struct task_struct * | tsk | |
| int | n | |
| unsigned long | val | 
| 689 | thread = * New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct. | 
| 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 | 
| 697 | rc = 0 | 
| 698 | Else if n == 7 Then | 
| 700 | If Not rc Then Keep track of the exact dr7 value set by the user = val | 
| 703 | Return rc | 
| Name | Describe | 
|---|---|
| arch_ptrace | 
| 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 |