Home
last modified time | relevance | path

Searched refs:prog (Results 1 – 25 of 29) 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() argument
69 const struct bpf_prog *prog) in bpf_lsm_verify_prog() argument
84 static inline void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, in bpf_lsm_find_cgroup_shim() argument
89 static inline int bpf_lsm_get_retval_range(const struct bpf_prog *prog, in bpf_lsm_get_retval_range() argument
103 static inline bool bpf_lsm_has_d_inode_locked(const struct bpf_prog *prog) in bpf_lsm_has_d_inode_locked() argument
A Dbpf-netns.h32 struct bpf_prog *prog);
35 struct bpf_prog *prog);
44 struct bpf_prog *prog) in netns_bpf_prog_attach() argument
56 struct bpf_prog *prog) in netns_bpf_link_create() argument
A Dbpf_mprog.h118 t.prog = READ_ONCE(fp->prog); \
120 t.prog; \
126 (p = READ_ONCE(fp->prog)); \
132 struct bpf_prog *prog; member
154 struct bpf_prog *prog; member
203 struct bpf_prog *prog) in bpf_mprog_exists() argument
209 if (tmp == prog) in bpf_mprog_exists()
220 entry->parent->ref = tuple->prog; in bpf_mprog_mark_for_release()
316 WRITE_ONCE(fp->prog, tuple->prog); in bpf_mprog_write()
328 struct bpf_prog *prog, struct bpf_link *link,
A Dbpf.h1092 struct bpf_prog *prog; member
1241 bool prog; member
1303 struct bpf_prog *prog; member
1645 struct bpf_prog *prog; member
1741 struct bpf_prog *prog; member
2177 struct bpf_prog *prog; member
2290 while ((prog = READ_ONCE(item->prog))) { in bpf_prog_run_array()
2332 while ((prog = READ_ONCE(item->prog))) { in bpf_prog_run_array_uprobe()
2333 if (!prog->sleepable) in bpf_prog_run_array_uprobe()
2340 if (!prog->sleepable) in bpf_prog_run_array_uprobe()
[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() argument
A Dfilter.h682 struct bpf_prog *prog; member
709 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
718 ret = dfunc(ctx, prog->insnsi, prog->bpf_func); in __bpf_prog_run()
742 ret = bpf_prog_run(prog, ctx); in bpf_prog_run_pin_on_cpu()
950 if (unlikely(prog->cb_access)) { in __bpf_prog_run_save_cb()
955 res = bpf_prog_run(prog, skb); in __bpf_prog_run_save_cb()
957 if (unlikely(prog->cb_access)) in __bpf_prog_run_save_cb()
980 if (unlikely(prog->cb_access)) in bpf_prog_run_clear_cb()
1215 const struct bpf_prog *prog);
1219 const struct bpf_prog *prog);
[all …]
A Dbpf_verifier.h753 struct bpf_prog *prog; /* eBPF program being verified */ member
852 return &env->prog->aux->func_info_aux[subprog]; in subprog_aux()
898 int bpf_prog_offload_verifier_prep(struct bpf_prog *prog);
928 const struct bpf_prog *prog,
951 static inline enum bpf_prog_type resolve_prog_type(const struct bpf_prog *prog) in resolve_prog_type() argument
953 return (prog->type == BPF_PROG_TYPE_EXT && prog->aux->saved_dst_prog_type) ? in resolve_prog_type()
954 prog->aux->saved_dst_prog_type : prog->type; in resolve_prog_type()
957 static inline bool bpf_prog_check_recur(const struct bpf_prog *prog) in bpf_prog_check_recur() argument
959 switch (resolve_prog_type(prog)) { in bpf_prog_check_recur()
961 return prog->expected_attach_type != BPF_TRACE_ITER; in bpf_prog_check_recur()
[all …]
A Dbpf-cgroup.h107 struct bpf_prog *prog; member
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() argument
446 struct bpf_prog *prog) in cgroup_bpf_link_attach() argument
458 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_common_func_proto() argument
466 struct bpf_prog *prog, enum bpf_cgroup_storage_type stype) { return NULL; } in bpf_cgroup_storage_alloc() argument
A Dskmsg.h487 struct bpf_prog *prog) in psock_set_prog() argument
489 prog = xchg(pprog, prog); in psock_set_prog()
490 if (prog) in psock_set_prog()
491 bpf_prog_put(prog); in psock_set_prog()
495 struct bpf_prog *prog, in psock_replace_prog() argument
498 if (cmpxchg(pprog, old, prog) != old) in psock_replace_prog()
A Dtrace_events.h764 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() argument
823 bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_kprobe_multi_link_attach() argument
828 bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_uprobe_multi_link_attach() argument
893 int perf_event_set_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
A Dbtf.h119 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() argument
A Dsecurity.h2269 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() argument
2307 static inline int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr, in security_bpf_prog_load() argument
2313 static inline void security_bpf_prog_free(struct bpf_prog *prog) in security_bpf_prog_free() argument
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 Dperf_event.h905 struct bpf_prog *prog; member
1661 extern void perf_event_bpf_event(struct bpf_prog *prog,
1975 static inline void perf_event_bpf_event(struct bpf_prog *prog, in perf_event_bpf_event() argument
/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() argument
22 struct bpf_prog *prog) in netkit_link_attach() argument
28 struct bpf_prog *prog) in netkit_prog_detach() argument
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() argument
185 struct bpf_prog *prog) in tcx_link_attach() argument
191 struct bpf_prog *prog) in tcx_prog_detach() argument
A Dsock_reuseport.h28 struct bpf_prog __rcu *prog; /* optional BPF sock selector */ member
44 extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog);
A Dxdp.h520 struct bpf_prog *prog; member
650 static __always_inline u32 bpf_prog_run_xdp(const struct bpf_prog *prog, in bpf_prog_run_xdp() argument
657 u32 act = __bpf_prog_run(prog, xdp, BPF_DISPATCHER_FUNC(xdp)); in bpf_prog_run_xdp()
A Dflow_dissector.h485 struct bpf_prog *prog);
/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() argument
/include/sound/
A Dopl3.h253 unsigned char prog; member
363 int prog, int bank, int type,
367 struct fm_patch *snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank,
/include/uapi/sound/
A Dasound_fm.h112 unsigned char prog; member
/include/net/libeth/
A Dxsk.h329 #define libeth_xsk_tx_init_bulk(bq, prog, dev, xdpsqs, num) \ argument
330 __libeth_xdp_tx_init_bulk(bq, prog, dev, xdpsqs, num, true, \
396 act = bpf_prog_run_xdp(bq->prog, &xdp->base); in __libeth_xsk_run_prog()
401 ret = xdp_do_redirect(bq->dev, &xdp->base, bq->prog); in __libeth_xsk_run_prog()
A Dxdp.h385 const struct bpf_prog *prog; member
1141 #define libeth_xdp_tx_init_bulk(bq, prog, dev, xdpsqs, num) \ argument
1142 __libeth_xdp_tx_init_bulk(bq, prog, dev, xdpsqs, num, false, \
1152 ub->prog = rcu_dereference(pr); \
1156 ub->prog = NULL; \
1369 act = bpf_prog_run_xdp(bq->prog, &xdp->base); in __libeth_xdp_run_prog()
1383 if (unlikely(xdp_do_redirect(bq->dev, &xdp->base, bq->prog))) in __libeth_xdp_run_prog()
1500 if (!bq || !run || !bq->prog) in __libeth_xdp_run_pass()
/include/linux/sunrpc/
A Dsvc.h444 struct svc_serv * svc_create_pooled(struct svc_program *prog,

Completed in 90 milliseconds

12