Home
last modified time | relevance | path

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

/kernel/bpf/
Dcgroup.c1030 int total_cnt = 0; in __cgroup_bpf_query() local
1056 total_cnt += bpf_prog_array_length(effective); in __cgroup_bpf_query()
1058 total_cnt += prog_list_length(&cgrp->bpf.progs[atype]); in __cgroup_bpf_query()
1066 if (copy_to_user(&uattr->query.prog_cnt, &total_cnt, sizeof(total_cnt))) in __cgroup_bpf_query()
1068 if (attr->query.prog_cnt == 0 || !prog_ids || !total_cnt) in __cgroup_bpf_query()
1072 if (attr->query.prog_cnt < total_cnt) { in __cgroup_bpf_query()
1073 total_cnt = attr->query.prog_cnt; in __cgroup_bpf_query()
1077 for (atype = from_atype; atype <= to_atype && total_cnt; atype++) { in __cgroup_bpf_query()
1081 cnt = min_t(int, bpf_prog_array_length(effective), total_cnt); in __cgroup_bpf_query()
1090 cnt = min_t(int, prog_list_length(progs), total_cnt); in __cgroup_bpf_query()
[all …]