Searched refs:prog_cnt (Results 1 – 6 of 6) sorted by relevance
/kernel/bpf/ |
D | net_namespace.c | 252 u32 prog_cnt = 0, flags = 0; in __netns_bpf_prog_query() local 257 prog_cnt = bpf_prog_array_length(run_array); in __netns_bpf_prog_query() 261 if (copy_to_user(&uattr->query.prog_cnt, &prog_cnt, sizeof(prog_cnt))) in __netns_bpf_prog_query() 263 if (!attr->query.prog_cnt || !prog_ids || !prog_cnt) in __netns_bpf_prog_query() 267 attr->query.prog_cnt); in __netns_bpf_prog_query()
|
D | cgroup.c | 815 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) in __cgroup_bpf_query() 817 if (attr->query.prog_cnt == 0 || !prog_ids || !cnt) in __cgroup_bpf_query() 820 if (attr->query.prog_cnt < cnt) { in __cgroup_bpf_query() 821 cnt = attr->query.prog_cnt; in __cgroup_bpf_query()
|
D | core.c | 1983 struct bpf_prog_array *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags) in bpf_prog_array_alloc() argument 1985 if (prog_cnt) in bpf_prog_array_alloc() 1988 (prog_cnt + 1), in bpf_prog_array_alloc() 2208 u32 *prog_cnt) in bpf_prog_array_copy_info() argument 2215 *prog_cnt = cnt; in bpf_prog_array_copy_info()
|
D | syscall.c | 3277 #define BPF_PROG_QUERY_LAST_FIELD query.prog_cnt
|
/kernel/bpf/preload/iterators/ |
D | iterators.skel.h | 129 s->prog_cnt = 2; in iterators_bpf__create_skeleton() 131 s->progs = (struct bpf_prog_skeleton *)calloc(s->prog_cnt, s->prog_skel_sz); in iterators_bpf__create_skeleton()
|
/kernel/trace/ |
D | bpf_trace.c | 1817 u32 *ids, prog_cnt, ids_len; in perf_event_query_prog_array() local 1842 ret = bpf_prog_array_copy_info(progs, ids, ids_len, &prog_cnt); in perf_event_query_prog_array() 1845 if (copy_to_user(&uquery->prog_cnt, &prog_cnt, sizeof(prog_cnt)) || in perf_event_query_prog_array()
|