Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dbpf-cgroup-defs.h11 struct bpf_prog_array;
58 struct bpf_prog_array __rcu *effective[MAX_CGROUP_BPF_ATTACH_TYPE];
73 struct bpf_prog_array *inactive;
H A Dbpf.h2662 * ret = bpf_prog_run_array(rcu_dereference(&bpf_prog_array), ctx, bpf_prog_run); in bpf_prog_run_array_uprobe()
2668 * The 'struct bpf_prog_array *' should only be replaced with xchg() in bpf_prog_run_array_uprobe()
2682 struct bpf_prog_array { in bpf_prog_run_array_uprobe()
2687 /* to avoid allocating empty bpf_prog_array for cgroups that in bpf_prog_run_array_uprobe()
2693 extern struct bpf_prog_array bpf_empty_prog_array; in bpf_prog_run_array_uprobe()
2695 struct bpf_prog_array *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags); in bpf_prog_run_array_uprobe()
2696 void bpf_prog_array_free(struct bpf_prog_array *progs);
2697 /* Use when traversal over the bpf_prog_array uses tasks_trace rcu */
2698 void bpf_prog_array_free_sleepable(struct bpf_prog_array *progs);
2699 int bpf_prog_array_length(struct bpf_prog_array *prog
2538 struct bpf_prog_array { global() struct
2540 itemsbpf_prog_array global() argument
2543 rcubpf_prog_array global() argument
[all...]
H A Dfilter.h1869 struct bpf_prog_array *run_array; in __bpf_xdp_redirect_map()
1908 struct bpf_prog_array *run_array;
/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()
246 struct bpf_prog_array *run_array; in __netns_bpf_prog_query()
293 struct bpf_prog_array *run_array; in netns_bpf_prog_attach()
420 struct bpf_prog_array *run_array; in netns_bpf_link_attach()
H A Dcore.c2820 struct bpf_prog_array bpf_empty_prog_array = { in bpf_prog_array_is_empty()
2827 struct bpf_prog_array *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags) in bpf_prog_array_copy_core()
2829 struct bpf_prog_array *p; in bpf_prog_array_copy_core()
2839 void bpf_prog_array_free(struct bpf_prog_array *progs) in bpf_prog_array_copy_core()
2848 struct bpf_prog_array *progs; in bpf_prog_array_copy_to_user()
2854 progs = container_of(rcu, struct bpf_prog_array, rcu); in bpf_prog_array_copy_to_user()
2858 void bpf_prog_array_free_sleepable(struct bpf_prog_array *progs) in bpf_prog_array_copy_to_user()
2870 int bpf_prog_array_length(struct bpf_prog_array *array) in bpf_prog_array_copy_to_user()
2881 bool bpf_prog_array_is_empty(struct bpf_prog_array *array) in bpf_prog_array_delete_safe()
2891 static bool bpf_prog_array_copy_core(struct bpf_prog_array *arra
[all...]
H A Dcgroup.c119 const struct bpf_prog_array *array; in __cgroup_bpf_run_lsm_sock()
370 kfree(container_of(rcu, struct bpf_prog_array, rcu)); in cgroup_bpf_release()
373 static void bpf_cgroup_array_free(struct bpf_prog_array *array, in cgroup_bpf_release()
392 static int bpf_cgroup_array_length(struct bpf_prog_array *array,
406 static int bpf_cgroup_array_copy_to_user(struct bpf_prog_array *array, in prog_list_length()
430 static int bpf_cgroup_array_delete_safe_at(struct bpf_prog_array *array, in hierarchy_allows_attach()
456 struct bpf_prog_array *old_array; in compute_effective_progs()
610 struct bpf_prog_array **array) in update_effective_progs()
613 struct bpf_prog_array *progs; in update_effective_progs()
666 struct bpf_prog_array *old_arra in find_attach_entry()
[all...]
/linux/kernel/trace/
H A Dbpf_trace.c175 struct bpf_prog_array *prog_array; in trace_call_bpf_faultable()
1958 struct bpf_prog_array *old_array; in perf_event_attach_bpf_prog()
1959 struct bpf_prog_array *new_array; in perf_event_attach_bpf_prog()
2000 struct bpf_prog_array *old_array; in perf_event_detach_bpf_prog()
2001 struct bpf_prog_array *new_array; in perf_event_detach_bpf_prog()
2045 struct bpf_prog_array *progs; in perf_event_query_prog_array()
H A Dtrace_uprobe.c1404 const struct bpf_prog_array *array; in __uprobe_perf_func()
/linux/net/bpf/
H A Dtest_run.c1588 struct bpf_prog_array *progs = NULL; in bpf_prog_test_run_sk_lookup()
/linux/net/core/
H A Dflow_dissector.c1137 struct bpf_prog_array *run_array; in __skb_flow_dissect()