Home
last modified time | relevance | path

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

/kernel/bpf/preload/
Dbpf_preload_kern.c47 maps_link = bpf_link_get_from_fd(skel->links.dump_bpf_map_fd); in load_skel()
52 progs_link = bpf_link_get_from_fd(skel->links.dump_bpf_prog_fd); in load_skel()
60 close_fd(skel->links.dump_bpf_map_fd); in load_skel()
61 skel->links.dump_bpf_map_fd = 0; in load_skel()
62 close_fd(skel->links.dump_bpf_prog_fd); in load_skel()
63 skel->links.dump_bpf_prog_fd = 0; in load_skel()
/kernel/bpf/preload/iterators/
Diterators.lskel.h20 } links; member
32 skel->links.dump_bpf_map_fd = fd; in iterators_bpf__dump_bpf_map__attach()
43 skel->links.dump_bpf_prog_fd = fd; in iterators_bpf__dump_bpf_prog__attach()
60 skel_closenz(skel->links.dump_bpf_map_fd); in iterators_bpf__detach()
61 skel_closenz(skel->links.dump_bpf_prog_fd); in iterators_bpf__detach()
83 skel->ctx.sz = (void *)&skel->links - (void *)skel; in iterators_bpf__open()
/kernel/gcov/
Dfs.c60 struct dentry **links; member
485 node->links = kcalloc(num, sizeof(struct dentry *), GFP_KERNEL); in add_links()
486 if (!node->links) in add_links()
497 node->links[i] = debugfs_create_symlink(deskew(basename), in add_links()
506 debugfs_remove(node->links[i]); in add_links()
507 kfree(node->links); in add_links()
508 node->links = NULL; in add_links()
578 if (!node->links) in remove_links()
581 debugfs_remove(node->links[i]); in remove_links()
582 kfree(node->links); in remove_links()
[all …]
/kernel/bpf/
Dbpf_struct_ops.c40 struct bpf_link **links; member
286 if (st_map->links[i]) { in bpf_struct_ops_map_put_progs()
287 bpf_link_put(st_map->links[i]); in bpf_struct_ops_map_put_progs()
288 st_map->links[i] = NULL; in bpf_struct_ops_map_put_progs()
342 tlinks[BPF_TRAMP_FENTRY].links[0] = link; in bpf_struct_ops_prepare_trampoline()
479 st_map->links[i] = &link->link; in bpf_struct_ops_map_update_elem()
578 if (st_map->links) in bpf_struct_ops_map_free()
580 bpf_map_area_free(st_map->links); in bpf_struct_ops_map_free()
629 st_map->links = in bpf_struct_ops_map_alloc()
633 if (!st_map->uvalue || !st_map->links || !st_map->image) { in bpf_struct_ops_map_alloc()
Dnet_namespace.c72 list_for_each_entry(pos, &net->bpf.links[type], node) { in link_index()
85 list_for_each(pos, &net->bpf.links[type]) in link_count()
96 list_for_each_entry(pos, &net->bpf.links[type], node) { in fill_prog_array()
316 if (!list_empty(&net->bpf.links[type])) { in netns_bpf_prog_attach()
371 if (!list_empty(&net->bpf.links[type])) in __netns_bpf_prog_detach()
462 list_add_tail(&net_link->node, &net->bpf.links[type]); in netns_bpf_link_attach()
534 INIT_LIST_HEAD(&net->bpf.links[type]); in netns_bpf_pernet_init()
547 list_for_each_entry(net_link, &net->bpf.links[type], node) { in netns_bpf_pernet_pre_exit()
Dtrampoline.c261 struct bpf_tramp_link **links; in bpf_trampoline_get_progs() local
272 links = tlinks[kind].links; in bpf_trampoline_get_progs()
276 *links++ = link; in bpf_trampoline_get_progs()
/kernel/cgroup/
Dcgroup-v1.c186 struct list_head links; member
202 list_for_each_entry_safe(l, tmp_l, &cgrp->pidlists, links) in cgroup1_pidlist_destroy_all()
224 list_del(&l->links); in cgroup_pidlist_destroy_work_fn()
287 list_for_each_entry(l, &cgrp->pidlists, links) in cgroup_pidlist_find()
320 list_add(&l->links, &cgrp->pidlists); in cgroup_pidlist_find_create()