Lines Matching full:kind
262 int kind; in bpf_trampoline_get_progs() local
269 for (kind = 0; kind < BPF_TRAMP_MAX; kind++) { in bpf_trampoline_get_progs()
270 tlinks[kind].nr_links = tr->progs_cnt[kind]; in bpf_trampoline_get_progs()
271 *total += tr->progs_cnt[kind]; in bpf_trampoline_get_progs()
272 links = tlinks[kind].links; in bpf_trampoline_get_progs()
274 hlist_for_each_entry(link, &tr->progs_hlist[kind], tramp_hlist) { in bpf_trampoline_get_progs()
534 enum bpf_tramp_prog_type kind; in __bpf_trampoline_link_prog() local
539 kind = bpf_attach_type_to_tramp(link->link.prog); in __bpf_trampoline_link_prog()
549 if (kind == BPF_TRAMP_REPLACE) { in __bpf_trampoline_link_prog()
562 hlist_for_each_entry(link_exiting, &tr->progs_hlist[kind], tramp_hlist) { in __bpf_trampoline_link_prog()
569 hlist_add_head(&link->tramp_hlist, &tr->progs_hlist[kind]); in __bpf_trampoline_link_prog()
570 tr->progs_cnt[kind]++; in __bpf_trampoline_link_prog()
574 tr->progs_cnt[kind]--; in __bpf_trampoline_link_prog()
591 enum bpf_tramp_prog_type kind; in __bpf_trampoline_unlink_prog() local
594 kind = bpf_attach_type_to_tramp(link->link.prog); in __bpf_trampoline_unlink_prog()
595 if (kind == BPF_TRAMP_REPLACE) { in __bpf_trampoline_unlink_prog()
603 tr->progs_cnt[kind]--; in __bpf_trampoline_unlink_prog()
684 int kind; in cgroup_shim_find() local
686 for (kind = 0; kind < BPF_TRAMP_MAX; kind++) { in cgroup_shim_find()
687 hlist_for_each_entry(link, &tr->progs_hlist[kind], tramp_hlist) { in cgroup_shim_find()