Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dbpf-cgroup-defs.h11 struct bpf_prog_array;
57 struct bpf_prog_array __rcu *effective[MAX_CGROUP_BPF_ATTACH_TYPE];
72 struct bpf_prog_array *inactive;
H A Dbpf.h2477 * ret = bpf_prog_run_array(rcu_dereference(&bpf_prog_array), ctx, bpf_prog_run); in bpf_prog_run_array()
2483 * The 'struct bpf_prog_array *' should only be replaced with xchg()
2494 struct bpf_prog_array { in bpf_prog_run_array_uprobe()
2499 /* to avoid allocating empty bpf_prog_array for cgroups that in bpf_prog_run_array_uprobe()
2505 extern struct bpf_prog_array bpf_empty_prog_array; in bpf_prog_run_array_uprobe()
2507 struct bpf_prog_array *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags); in bpf_prog_run_array_uprobe()
2508 void bpf_prog_array_free(struct bpf_prog_array *progs); in bpf_prog_run_array_uprobe()
2509 /* Use when traversal over the bpf_prog_array uses tasks_trace rcu */ in bpf_prog_run_array_uprobe()
2510 void bpf_prog_array_free_sleepable(struct bpf_prog_array *progs); in bpf_prog_run_array_uprobe()
2511 int bpf_prog_array_length(struct bpf_prog_array *prog in bpf_prog_run_array_uprobe()
2369 struct bpf_prog_array { global() struct
2371 itemsbpf_prog_array global() argument
2374 rcubpf_prog_array global() argument
[all...]
H A Dfilter.h1737 struct bpf_prog_array *run_array; in bpf_sk_lookup_run_v4()
1776 struct bpf_prog_array *run_array; in bpf_sk_lookup_run_v6()
/linux/drivers/media/rc/
H A Dbpf-lirc.c139 struct bpf_prog_array *old_array; in lirc_bpf_attach()
140 struct bpf_prog_array *new_array; in lirc_bpf_attach()
177 struct bpf_prog_array *old_array; in lirc_bpf_detach()
178 struct bpf_prog_array *new_array; in lirc_bpf_detach()
236 struct bpf_prog_array *array; in lirc_bpf_free()
298 struct bpf_prog_array *progs; in lirc_prog_query()
/linux/include/net/netns/
H A Dbpf.h12 struct bpf_prog_array;
23 struct bpf_prog_array __rcu *run_array[MAX_NETNS_BPF_ATTACH_TYPE];
/linux/kernel/bpf/
H A Dnet_namespace.c58 struct bpf_prog_array *run_array; in netns_bpf_run_array_detach()
90 struct bpf_prog_array *prog_array) in fill_prog_array()
106 struct bpf_prog_array *old_array, *new_array; in bpf_netns_link_release()
170 struct bpf_prog_array *run_array; in bpf_netns_link_update_prog()
251 struct bpf_prog_array *run_array; in __netns_bpf_prog_query()
298 struct bpf_prog_array *run_array; in netns_bpf_prog_attach()
425 struct bpf_prog_array *run_array; in netns_bpf_link_attach()
H A Dcore.c2698 struct bpf_prog_array bpf_empty_prog_array = { in bpf_prog_array_alloc()
2705 struct bpf_prog_array *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags) in bpf_prog_array_alloc()
2707 struct bpf_prog_array *p; in bpf_prog_array_free()
2717 void bpf_prog_array_free(struct bpf_prog_array *progs) in __bpf_prog_array_free_sleepable_cb()
2726 struct bpf_prog_array *progs; in bpf_prog_array_free_sleepable()
2732 progs = container_of(rcu, struct bpf_prog_array, rcu);
2736 void bpf_prog_array_free_sleepable(struct bpf_prog_array *progs) in bpf_prog_array_length()
2743 int bpf_prog_array_length(struct bpf_prog_array *array)
2754 bool bpf_prog_array_is_empty(struct bpf_prog_array *array) in bpf_prog_array_copy_core()
2764 static bool bpf_prog_array_copy_core(struct bpf_prog_array *arra in bpf_prog_array_copy_core()
[all...]
H A Dcgroup.c91 const struct bpf_prog_array *array; in bpf_prog_run_array_cg()
329 struct bpf_prog_array *old_array; in cgroup_bpf_release()
455 struct bpf_prog_array **array) in compute_effective_progs()
458 struct bpf_prog_array *progs; in compute_effective_progs()
513 struct bpf_prog_array *old_array) in cgroup_bpf_inherit()
533 struct bpf_prog_array *arrays[NR] = {}; in cgroup_bpf_inherit()
951 struct bpf_prog_array *progs; in replace_effective_prog()
1103 struct bpf_prog_array *progs; in purge_effective_progs()
1240 struct bpf_prog_array *effective; in __cgroup_bpf_query()
/linux/kernel/trace/
H A Dbpf_trace.c175 struct bpf_prog_array *prog_array; in bpf_probe_read_user_common()
1955 struct bpf_prog_array *old_array; in perf_event_attach_bpf_prog()
1956 struct bpf_prog_array *new_array; in perf_event_attach_bpf_prog()
1997 struct bpf_prog_array *old_array; in perf_event_detach_bpf_prog()
1998 struct bpf_prog_array *new_array; in perf_event_detach_bpf_prog()
2042 struct bpf_prog_array *progs; in perf_event_query_prog_array()
H A Dtrace_uprobe.c1401 const struct bpf_prog_array *array; in __uprobe_perf_func()
/linux/net/core/
H A Dflow_dissector.c1134 struct bpf_prog_array *run_array; in __skb_flow_dissect()