Function report |
Source Code:kernel\ptrace.c |
Create Date:2022-07-28 09:13:44 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:compat_ptrace_request
Proto:int compat_ptrace_request(struct task_struct *child, compat_long_t request, compat_ulong_t addr, compat_ulong_t data)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | child | |
| compat_long_t | request | |
| compat_ulong_t | addr | |
| compat_ulong_t | data |
| 1320 | Case request == PTRACE_PEEKTEXT |
| 1321 | Case request == PTRACE_PEEKDATA |
| 1322 | ret = Access another process' address space via ptrace.* Source/target buffer must be kernel space,* Do not walk the page table directly, use get_user_pages |
| 1326 | Else ret = Write a simple value into user space(word, datap) |
| 1328 | Break |
| 1330 | Case request == PTRACE_POKETEXT |
| 1331 | Case request == PTRACE_POKEDATA |
| 1332 | ret = Access another process' address space via ptrace.* Source/target buffer must be kernel space,* Do not walk the page table directly, use get_user_pages |
| 1335 | Break |
| 1337 | Case request == PTRACE_GETEVENTMSG |
| 1339 | Break |
| 1341 | Case request == PTRACE_GETSIGINFO |
| 1342 | ret = ptrace_getsiginfo(child, & siginfo) |
| 1343 | If Not ret Then ret = copy_siginfo_to_user32((structcompat_siginfo__user * )datap, & siginfo) |
| 1347 | Break |
| 1349 | Case request == PTRACE_SETSIGINFO |
| 1350 | ret = copy_siginfo_from_user32( & siginfo, (structcompat_siginfo__user * )datap) |
| 1352 | If Not ret Then ret = ptrace_setsiginfo(child, & siginfo) |
| 1354 | Break |
| 1382 | Default |
| 1386 | Return ret |
| 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 |