Home
last modified time | relevance | path

Searched refs:bpf_prog (Results 1 – 25 of 33) sorted by relevance

12

/include/linux/
A Dbpf_lsm.h29 const struct bpf_prog *prog);
32 bool bpf_lsm_is_trusted(const struct bpf_prog *prog);
47 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, bpf_func_t *bpf_func);
49 int bpf_lsm_get_retval_range(const struct bpf_prog *prog,
54 bool bpf_lsm_has_d_inode_locked(const struct bpf_prog *prog);
63 static inline bool bpf_lsm_is_trusted(const struct bpf_prog *prog) in bpf_lsm_is_trusted()
69 const struct bpf_prog *prog) in bpf_lsm_verify_prog()
84 static inline void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, in bpf_lsm_find_cgroup_shim()
89 static inline int bpf_lsm_get_retval_range(const struct bpf_prog *prog, in bpf_lsm_get_retval_range()
103 static inline bool bpf_lsm_has_d_inode_locked(const struct bpf_prog *prog) in bpf_lsm_has_d_inode_locked()
A Dbpf-netns.h26 struct bpf_prog;
32 struct bpf_prog *prog);
35 struct bpf_prog *prog);
44 struct bpf_prog *prog) in netns_bpf_prog_attach()
56 struct bpf_prog *prog) in netns_bpf_link_create()
A Dbpf.h38 struct bpf_prog;
1092 struct bpf_prog *prog;
1303 struct bpf_prog *prog;
1630 struct bpf_prog **func;
1645 struct bpf_prog *prog;
1693 struct bpf_prog { struct
1741 struct bpf_prog *prog; argument
2177 struct bpf_prog *prog;
2400 struct bpf_prog * __must_check bpf_prog_inc_not_zero(struct bpf_prog *prog);
3367 struct bpf_prog *prog; in bpf_prog_inc_misses_counters()
[all …]
A Dfilter.h682 struct bpf_prog *prog;
993 void bpf_prog_change_xdp(struct bpf_prog *prev_prog, struct bpf_prog *prog);
1092 struct bpf_prog *bpf_prog_select_runtime(struct bpf_prog *fp, int *err);
1104 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size,
1137 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog);
1165 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off,
1215 const struct bpf_prog *prog);
1219 const struct bpf_prog *prog);
1293 struct bpf_prog *bpf_jit_blind_constants(struct bpf_prog *fp);
1294 void bpf_jit_prog_release_other(struct bpf_prog *fp, struct bpf_prog *fp_other);
[all …]
A Dbpf_lirc.h8 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
13 struct bpf_prog *prog) in lirc_prog_attach()
A Dbpf_mprog.h132 struct bpf_prog *prog;
148 struct bpf_prog *ref;
154 struct bpf_prog *prog;
203 struct bpf_prog *prog) in bpf_mprog_exists()
206 const struct bpf_prog *tmp; in bpf_mprog_exists()
322 struct bpf_prog *prog_new, struct bpf_link *link,
323 struct bpf_prog *prog_old,
328 struct bpf_prog *prog, struct bpf_link *link,
A Dbpf-cgroup.h19 struct bpf_prog;
107 struct bpf_prog *prog;
166 struct bpf_cgroup_storage *bpf_cgroup_storage_alloc(struct bpf_prog *prog,
416 enum bpf_prog_type ptype, struct bpf_prog *prog);
419 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
424 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog);
434 struct bpf_prog *prog) in cgroup_bpf_prog_attach()
446 struct bpf_prog *prog) in cgroup_bpf_link_attach()
458 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_common_func_proto()
466 struct bpf_prog *prog, enum bpf_cgroup_storage_type stype) { return NULL; } in bpf_cgroup_storage_alloc()
A Dskmsg.h57 struct bpf_prog *msg_parser;
58 struct bpf_prog *stream_parser;
59 struct bpf_prog *stream_verdict;
60 struct bpf_prog *skb_verdict;
486 static inline void psock_set_prog(struct bpf_prog **pprog, in psock_set_prog()
487 struct bpf_prog *prog) in psock_set_prog()
494 static inline int psock_replace_prog(struct bpf_prog **pprog, in psock_replace_prog()
495 struct bpf_prog *prog, in psock_replace_prog()
496 struct bpf_prog *old) in psock_replace_prog()
A Dbpf_verifier.h753 struct bpf_prog *prog; /* eBPF program being verified */
898 int bpf_prog_offload_verifier_prep(struct bpf_prog *prog);
909 static inline u64 bpf_trampoline_compute_key(const struct bpf_prog *tgt_prog, in bpf_trampoline_compute_key()
928 const struct bpf_prog *prog,
929 const struct bpf_prog *tgt_prog,
951 static inline enum bpf_prog_type resolve_prog_type(const struct bpf_prog *prog) in resolve_prog_type()
957 static inline bool bpf_prog_check_recur(const struct bpf_prog *prog) in bpf_prog_check_recur()
A Dtrace_events.h17 struct bpf_prog;
764 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
778 int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
779 int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
787 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) in perf_event_attach_bpf_prog()
823 bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_kprobe_multi_link_attach()
828 bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_uprobe_multi_link_attach()
893 int perf_event_set_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
A Dbtf.h117 struct bpf_prog;
119 typedef int (*btf_kfunc_filter_t)(const struct bpf_prog *prog, u32 kfunc_id);
577 struct btf *bpf_prog_get_target_btf(const struct bpf_prog *prog);
579 const struct bpf_prog *prog);
581 const struct bpf_prog *prog);
642 struct bpf_prog *prog) in btf_kfunc_id_set_contains()
A Dlsm_hook_defs.h433 LSM_HOOK(int, 0, bpf_prog, struct bpf_prog *prog)
437 LSM_HOOK(int, 0, bpf_prog_load, struct bpf_prog *prog, union bpf_attr *attr,
439 LSM_HOOK(void, LSM_RET_VOID, bpf_prog_free, struct bpf_prog *prog)
A Dsecurity.h2264 struct bpf_prog;
2269 extern int security_bpf_prog(struct bpf_prog *prog);
2273 extern int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
2275 extern void security_bpf_prog_free(struct bpf_prog *prog);
2293 static inline int security_bpf_prog(struct bpf_prog *prog) in security_bpf_prog()
2307 static inline int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr, in security_bpf_prog_load()
2313 static inline void security_bpf_prog_free(struct bpf_prog *prog) in security_bpf_prog_free()
/include/net/
A Dnetkit.h9 int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
10 int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
11 int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog);
16 struct bpf_prog *prog) in netkit_prog_attach()
22 struct bpf_prog *prog) in netkit_link_attach()
28 struct bpf_prog *prog) in netkit_prog_detach()
A Dtcx.h163 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
164 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
165 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog);
179 struct bpf_prog *prog) in tcx_prog_attach()
185 struct bpf_prog *prog) in tcx_link_attach()
191 struct bpf_prog *prog) in tcx_prog_detach()
A Dsock_reuseport.h28 struct bpf_prog __rcu *prog; /* optional BPF sock selector */
44 extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog);
A Dkcm.h86 struct bpf_prog;
109 struct bpf_prog *bpf_prog; member
A Dflow_dissector.h12 struct bpf_prog;
485 struct bpf_prog *prog);
A Dxdp.h520 struct bpf_prog *prog;
650 static __always_inline u32 bpf_prog_run_xdp(const struct bpf_prog *prog, in bpf_prog_run_xdp()
/include/uapi/linux/netfilter/
A Dxt_bpf.h12 struct bpf_prog;
19 struct bpf_prog *filter __attribute__((aligned(8)));
39 struct bpf_prog *filter __attribute__((aligned(8)));
/include/net/netfilter/
A Dnf_bpf_link.h9 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
11 static inline int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_nf_link_attach()
/include/net/netns/
A Dbpf.h11 struct bpf_prog;
24 struct bpf_prog *progs[MAX_NETNS_BPF_ATTACH_TYPE];
/include/net/tc_act/
A Dtc_bpf.h14 struct bpf_prog __rcu *filter;
/include/trace/events/
A Dxdp.h32 const struct bpf_prog *xdp, u32 act),
93 const struct bpf_prog *xdp,
143 const struct bpf_prog *xdp,
152 const struct bpf_prog *xdp,
/include/net/mana/
A Dmana.h347 struct bpf_prog __rcu *bpf_prog; member
514 struct bpf_prog *bpf_prog; member
569 struct bpf_prog *mana_xdp_get(struct mana_port_context *apc);
570 void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog);

Completed in 81 milliseconds

12