Function report |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-28 12:54:05 |
Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_prog_test_run
Proto:static int bpf_prog_test_run(const union bpf_attr *attr, union bpf_attr __user *uattr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const union bpf_attr * | attr | |
union bpf_attr __user * | uattr |
2252 | ret = -Operation is not supported |
2254 | If Not Check operation authority Then Return -EPERM |
2256 | If helper macro to check that unused fields 'union bpf_attr' are zero (BPF_PROG_TEST_RUN) Then Return -EINVAL |
2259 | If ctx_size_in && Not ctx_in || Not input: len of ctx_in && ctx_in Then Return -EINVAL |
2263 | If input/output: len of ctx_out * returns ENOSPC if ctx_out * is too small. && Not ctx_out || Not input/output: len of ctx_out * returns ENOSPC if ctx_out * is too small. && ctx_out Then Return -EINVAL |
2274 | bpf_prog_put(prog) |
2275 | 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 |