Function report |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-28 12:54:52 |
| Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_task_fd_query_copy
Proto:static int bpf_task_fd_query_copy(const union bpf_attr *attr, union bpf_attr __user *uattr, u32 prog_id, u32 fd_type, const char *buf, u64 probe_offset, u64 probe_addr)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const union bpf_attr * | attr | |
| union bpf_attr __user * | uattr | |
| u32 | prog_id | |
| u32 | fd_type | |
| const char * | buf | |
| u64 | probe_offset | |
| u64 | probe_addr |
| 2869 | __user * ubuf = u64_to_user_ptr(buf) |
| 2870 | len = If buf Then strlen - Find the length of a string*@s: The string to be sized Else 0 |
| 2871 | err = 0 |
| 2873 | If Write a simple value into user space(len, & input/output: buf len ) Then Return -EFAULT |
| 2875 | input_len = input/output: buf len |
| 2877 | If Not len Then |
| 2879 | zero = '\0' |
| 2881 | If Write a simple value into user space(zero, ubuf) Then Return -EFAULT |
| 2885 | If copy_to_user(ubuf, buf, len + 1) Then Return -EFAULT |
| 2887 | Else |
| 2907 | Return err |
| Name | Describe |
|---|---|
| bpf_task_fd_query |
| 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 |