Searched refs:prog_cnt (Results 1 – 4 of 4) sorted by relevance
/kernel/trace/ |
D | bpf_trace.c | 1275 u32 *ids, prog_cnt, ids_len; in perf_event_query_prog_array() local 1300 ret = bpf_prog_array_copy_info(progs, ids, ids_len, &prog_cnt); in perf_event_query_prog_array() 1303 if (copy_to_user(&uquery->prog_cnt, &prog_cnt, sizeof(prog_cnt)) || in perf_event_query_prog_array()
|
/kernel/bpf/ |
D | cgroup.c | 521 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) in __cgroup_bpf_query() 523 if (attr->query.prog_cnt == 0 || !prog_ids || !cnt) in __cgroup_bpf_query() 526 if (attr->query.prog_cnt < cnt) { in __cgroup_bpf_query() 527 cnt = attr->query.prog_cnt; in __cgroup_bpf_query()
|
D | core.c | 1839 struct bpf_prog_array *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags) in bpf_prog_array_alloc() argument 1841 if (prog_cnt) in bpf_prog_array_alloc() 1844 (prog_cnt + 1), in bpf_prog_array_alloc() 2002 u32 *prog_cnt) in bpf_prog_array_copy_info() argument 2009 *prog_cnt = cnt; in bpf_prog_array_copy_info()
|
D | syscall.c | 2055 #define BPF_PROG_QUERY_LAST_FIELD query.prog_cnt
|