Function report |
Source Code:kernel\trace\bpf_trace.c |
Create Date:2022-07-28 12:37:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_event_query_prog_array
Proto:int perf_event_query_prog_array(struct perf_event *event, void __user *info)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | event | |
void __user * | info |
1393 | struct perf_event_query_bpf query = {} |
1398 | If Not Check operation authority Then Return -EPERM |
1400 | If type != PERF_TYPE_TRACEPOINT Then Return -EINVAL |
1402 | If copy_from_user( & query, uquery, size of query ) Then Return -EFAULT |
1406 | If ids_len > BPF_TRACE_MAX_PROGS Then Return -E2BIG |
1408 | ids = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
1418 | mutex_lock( & bpf_event_mutex) |
1419 | progs = bpf_event_rcu_dereference(prog_array) |
1423 | If copy_to_user( & Set by the kernel to indicate the number of* available programs, & prog_cnt, size of prog_cnt ) || copy_to_user(User provided buffer to store program ids, ids, ids_len * sizeof(u32)) Then ret = -EFAULT |
1428 | Return ret |
Name | Describe |
---|---|
_perf_ioctl |
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 |