Home
last modified time | relevance | path

Searched refs:prog_cnt (Results 1 – 6 of 6) sorted by relevance

/kernel/bpf/
Dnet_namespace.c252 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()
Dcgroup.c815 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()
Dcore.c1983 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()
Dsyscall.c3277 #define BPF_PROG_QUERY_LAST_FIELD query.prog_cnt
/kernel/bpf/preload/iterators/
Diterators.skel.h129 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/
Dbpf_trace.c1817 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()