Searched refs:progs (Results 1 – 4 of 4) sorted by relevance
/kernel/bpf/ |
D | cgroup.c | 46 for (type = 0; type < ARRAY_SIZE(cgrp->bpf.progs); type++) { in cgroup_bpf_release() 47 struct list_head *progs = &cgrp->bpf.progs[type]; in cgroup_bpf_release() local 50 list_for_each_entry_safe(pl, tmp, progs, node) { in cgroup_bpf_release() 123 cnt = prog_list_length(&p->bpf.progs[type]); in hierarchy_allows_attach() 143 struct bpf_prog_array *progs; in compute_effective_progs() local 151 cnt += prog_list_length(&p->bpf.progs[type]); in compute_effective_progs() 155 progs = bpf_prog_array_alloc(cnt, GFP_KERNEL); in compute_effective_progs() 156 if (!progs) in compute_effective_progs() 166 list_for_each_entry(pl, &p->bpf.progs[type], node) { in compute_effective_progs() 170 progs->items[cnt].prog = pl->prog; in compute_effective_progs() [all …]
|
D | offload.c | 45 struct list_head progs; member 113 list_add_tail(&offload->offloads, &ondev->progs); in bpf_prog_offload_init() 607 INIT_LIST_HEAD(&ondev->progs); in bpf_offload_dev_netdev_register() 650 list_for_each_entry(offload, &ondev->progs, offloads) in bpf_offload_dev_netdev_unregister() 652 list_splice_init(&ondev->progs, &altdev->progs); in bpf_offload_dev_netdev_unregister() 658 list_for_each_entry_safe(offload, ptmp, &ondev->progs, offloads) in bpf_offload_dev_netdev_unregister() 664 WARN_ON(!list_empty(&ondev->progs)); in bpf_offload_dev_netdev_unregister()
|
D | core.c | 1806 void bpf_prog_array_free(struct bpf_prog_array *progs) in bpf_prog_array_free() argument 1808 if (!progs || progs == &empty_prog_array.hdr) in bpf_prog_array_free() 1810 kfree_rcu(progs, rcu); in bpf_prog_array_free()
|
/kernel/trace/ |
D | bpf_trace.c | 1269 struct bpf_prog_array *progs; in perf_event_query_prog_array() local 1294 progs = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_query_prog_array() 1295 ret = bpf_prog_array_copy_info(progs, ids, ids_len, &prog_cnt); in perf_event_query_prog_array()
|