Home
last modified time | relevance | path

Searched defs:prog (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/linux/net/sched/
H A Dcls_bpf.c87 struct cls_bpf_prog *prog; in cls_bpf_classify() local
138 static bool cls_bpf_is_ebpf(const struct cls_bpf_prog *prog) in cls_bpf_is_ebpf()
143 static int cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload_cmd()
195 static int cls_bpf_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload()
215 struct cls_bpf_prog *prog, in cls_bpf_stop_offload()
226 struct cls_bpf_prog *prog) in cls_bpf_offload_update_stats()
256 static void cls_bpf_free_parms(struct cls_bpf_prog *prog) in cls_bpf_free_parms()
267 static void __cls_bpf_delete_prog(struct cls_bpf_prog *prog) in __cls_bpf_delete_prog()
278 struct cls_bpf_prog *prog = container_of(to_rcu_work(work), in cls_bpf_delete_prog_work() local
286 static void __cls_bpf_delete(struct tcf_proto *tp, struct cls_bpf_prog *prog, in __cls_bpf_delete()
[all …]
H A Dact_bpf.c40 struct tcf_bpf *prog = to_bpf(act); in tcf_bpf_act() local
92 static bool tcf_bpf_is_ebpf(const struct tcf_bpf *prog) in tcf_bpf_is_ebpf()
97 static int tcf_bpf_dump_bpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_bpf_info()
115 static int tcf_bpf_dump_ebpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_ebpf_info()
140 struct tcf_bpf *prog = to_bpf(act); in tcf_bpf_dump() local
264 static void tcf_bpf_prog_fill_cfg(const struct tcf_bpf *prog, in tcf_bpf_prog_fill_cfg()
288 struct tcf_bpf *prog; in tcf_bpf_init() local
/linux/kernel/bpf/
H A Dtrampoline.c107 bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline()
553 static enum bpf_tramp_prog_type bpf_attach_type_to_tramp(struct bpf_prog *prog) in bpf_attach_type_to_tramp()
721 static struct bpf_shim_tramp_link *cgroup_shim_alloc(const struct bpf_prog *prog, in cgroup_shim_alloc()
775 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog, in bpf_trampoline_link_cgroup_shim()
842 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog) in bpf_trampoline_unlink_cgroup_shim()
945 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_recur()
961 static void notrace __update_prog_stats(struct bpf_prog *prog, u64 start) in __update_prog_stats()
982 static __always_inline void notrace update_prog_stats(struct bpf_prog *prog, in update_prog_stats()
989 static void notrace __bpf_prog_exit_recur(struct bpf_prog *prog, u64 start, in __bpf_prog_exit_recur()
1000 static u64 notrace __bpf_prog_enter_lsm_cgroup(struct bpf_prog *prog, in __bpf_prog_enter_lsm_cgroup()
[all …]
H A Doffload.c109 static void __bpf_prog_offload_destroy(struct bpf_prog *prog) in __bpf_prog_offload_destroy()
189 static int __bpf_prog_dev_bound_init(struct bpf_prog *prog, struct net_device *netdev) in __bpf_prog_dev_bound_init()
229 int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr) in bpf_prog_dev_bound_init()
297 int bpf_prog_offload_verifier_prep(struct bpf_prog *prog) in bpf_prog_offload_verifier_prep()
382 void bpf_prog_dev_bound_destroy(struct bpf_prog *prog) in bpf_prog_dev_bound_destroy()
403 static int bpf_prog_offload_translate(struct bpf_prog *prog) in bpf_prog_offload_translate()
424 int bpf_prog_offload_compile(struct bpf_prog *prog) in bpf_prog_offload_compile()
432 struct bpf_prog *prog; member
463 struct bpf_prog *prog) in bpf_prog_offload_info_fill()
699 static bool __bpf_offload_dev_match(struct bpf_prog *prog, in __bpf_offload_dev_match()
[all …]
H A Dsyscall.c2285 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type()
2315 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op) in bpf_audit_prog()
2334 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_alloc_id()
2353 void bpf_prog_free_id(struct bpf_prog *prog) in bpf_prog_free_id()
2382 static void __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred) in __bpf_prog_put_noref()
2407 struct bpf_prog *prog; in bpf_prog_put_deferred() local
2417 static void __bpf_prog_put(struct bpf_prog *prog) in __bpf_prog_put()
2431 void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
2439 struct bpf_prog *prog = filp->private_data; in bpf_prog_release() local
2451 void notrace bpf_prog_inc_misses_counter(struct bpf_prog *prog) in bpf_prog_inc_misses_counter()
[all …]
H A Dcore.c150 struct bpf_prog *prog; in bpf_prog_alloc() local
175 bpf_prog_alloc_jited_linfo(struct bpf_prog * prog) bpf_prog_alloc_jited_linfo() argument
189 bpf_prog_jit_attempt_done(struct bpf_prog * prog) bpf_prog_jit_attempt_done() argument
225 bpf_prog_fill_jited_linfo(struct bpf_prog * prog,const u32 * insn_to_jit_off) bpf_prog_fill_jited_linfo() argument
384 bpf_adj_branches(struct bpf_prog * prog,u32 pos,s32 end_old,s32 end_new,const bool probe_pass) bpf_adj_branches() argument
431 bpf_adj_linfo(struct bpf_prog * prog,u32 off,u32 delta) bpf_adj_linfo() argument
451 bpf_patch_insn_single(struct bpf_prog * prog,u32 off,const struct bpf_insn * patch,u32 len) bpf_patch_insn_single() argument
512 bpf_remove_insns(struct bpf_prog * prog,u32 off,u32 cnt) bpf_remove_insns() argument
551 bpf_prog_ksym_set_addr(struct bpf_prog * prog) bpf_prog_ksym_set_addr() argument
560 bpf_prog_ksym_set_name(struct bpf_prog * prog) bpf_prog_ksym_set_name() argument
766 struct bpf_prog *prog; search_bpf_extables() local
809 bpf_jit_add_poke_descriptor(struct bpf_prog * prog,struct bpf_jit_poke_descriptor * poke) bpf_jit_add_poke_descriptor() argument
1228 bpf_jit_get_func_addr(const struct bpf_prog * prog,const struct bpf_insn * insn,bool extra_pass,u64 * func_addr,bool * func_addr_fixed) bpf_jit_get_func_addr() argument
1268 bpf_jit_get_prog_name(struct bpf_prog * prog) bpf_jit_get_prog_name() argument
1453 bpf_jit_blind_constants(struct bpf_prog * prog) bpf_jit_blind_constants() argument
2014 struct bpf_prog *prog; ___bpf_prog_run() local
2540 struct bpf_prog prog; global() member
2707 bpf_prog_array_update_at(struct bpf_prog_array * array,int index,struct bpf_prog * prog) bpf_prog_array_update_at() argument
3017 bpf_int_jit_compile(struct bpf_prog * prog) bpf_int_jit_compile() argument
3025 bpf_jit_compile(struct bpf_prog * prog) bpf_jit_compile() argument
3176 struct bpf_prog *prog; bpf_prog_report_may_goto_violation() local
3241 bpf_prog_get_file_line(struct bpf_prog * prog,unsigned long ip,const char ** filep,const char ** linep,int * nump) bpf_prog_get_file_line() argument
3287 struct bpf_prog *prog; global() member
3293 struct bpf_prog *prog; find_from_stack_cb() local
[all...]
H A Dbpf_lsm.c115 bpf_lsm_verify_prog(struct bpf_verifier_log * vlog,const struct bpf_prog * prog) bpf_lsm_verify_prog() argument
169 bpf_ima_inode_hash_allowed(const struct bpf_prog * prog) bpf_ima_inode_hash_allowed() argument
223 bpf_lsm_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) bpf_lsm_func_proto() argument
401 bpf_lsm_is_trusted(const struct bpf_prog * prog) bpf_lsm_is_trusted() argument
[all...]
H A Dprog_iter.c16 struct bpf_prog *prog; in bpf_prog_seq_start() local
42 DEFINE_BPF_ITER_FUNC(bpf_prog, struct bpf_iter_meta *meta, struct bpf_prog *prog) in DEFINE_BPF_ITER_FUNC()
48 struct bpf_prog *prog; in DEFINE_BPF_ITER_FUNC() local
H A Dstream.c199 int bpf_prog_stream_read(struct bpf_prog *prog, enum bpf_stream_id stream_id, void __user *buf, int… in bpf_prog_stream_read()
253 void bpf_prog_stream_init(struct bpf_prog *prog) in bpf_prog_stream_init()
266 void bpf_prog_stream_free(struct bpf_prog *prog) in bpf_prog_stream_free()
311 int bpf_stream_stage_commit(struct bpf_stream_stage *ss, struct bpf_prog *prog, in bpf_stream_stage_commit()
348 struct bpf_prog *prog; in dump_stack_cb() local
H A Dtcx.c10 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in tcx_prog_attach()
59 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog) in tcx_prog_detach()
302 struct bpf_prog *prog) in tcx_link_init()
310 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in tcx_link_attach()
/linux/arch/x86/net/
H A Dbpf_jit_comp32.c209 u8 *prog = *pprog; in emit_ia32_mov_i() local
237 u8 *prog = *pprog; in emit_ia32_mov_r() local
288 u8 *prog = *pprog; in emit_ia32_mul_r() local
321 u8 *prog = *pprog; in emit_ia32_to_le_r64() local
369 u8 *prog = *pprog; in emit_ia32_to_be_r64() local
438 u8 *prog = *pprog; in emit_ia32_div_mod_r() local
485 u8 *prog = *pprog; in emit_ia32_shift_r() local
527 u8 *prog = *pprog; in emit_ia32_alu_r() local
582 u8 *prog = *pprog; in emit_ia32_alu_r64() local
601 u8 *prog = *pprog; in emit_ia32_alu_i() local
[all …]
/linux/drivers/clk/at91/
H A Dclk-programmable.c35 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_recalc_rate() local
53 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_determine_rate() local
105 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_set_parent() local
130 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_get_parent() local
151 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_set_rate() local
183 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_save_context() local
195 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_restore_context() local
222 struct clk_programmable *prog; in at91_clk_register_programmable() local
/linux/drivers/media/rc/
H A Dbpf-lirc.c83 lirc_mode2_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in lirc_mode2_func_proto()
123 const struct bpf_prog *prog, in lirc_mode2_is_valid_access()
137 static int lirc_bpf_attach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_attach()
175 static int lirc_bpf_detach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_detach()
248 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in lirc_prog_attach()
269 struct bpf_prog *prog; in lirc_prog_detach() local
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Doffload.c112 struct bpf_prog *prog) in nfp_map_ptrs_record()
151 nfp_prog_prepare(struct nfp_prog *nfp_prog, const struct bpf_insn *prog, in nfp_prog_prepare()
191 static int nfp_bpf_verifier_prep(struct bpf_prog *prog) in nfp_bpf_verifier_prep()
219 static int nfp_bpf_translate(struct bpf_prog *prog) in nfp_bpf_translate()
247 static void nfp_bpf_destroy(struct bpf_prog *prog) in nfp_bpf_destroy()
485 bool nfp_bpf_offload_check_mtu(struct nfp_net *nn, struct bpf_prog *prog, in nfp_bpf_offload_check_mtu()
497 nfp_net_bpf_load(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_load()
576 int nfp_net_bpf_offload(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_offload()
/linux/include/net/
H A Dnetkit.h16 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()
/linux/drivers/net/netdevsim/
H A Dbpf.c31 struct bpf_prog *prog; member
92 static void nsim_prog_set_loaded(struct bpf_prog *prog, bool loaded) in nsim_prog_set_loaded()
104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload()
122 struct bpf_prog *prog = cls_bpf->prog; in nsim_bpf_setup_tc_block_cb() local
219 struct bpf_prog *prog) in nsim_bpf_create_prog()
254 static int nsim_bpf_verifier_prep(struct bpf_prog *prog) in nsim_bpf_verifier_prep()
265 static int nsim_bpf_translate(struct bpf_prog *prog) in nsim_bpf_translate()
273 static void nsim_bpf_destroy_prog(struct bpf_prog *prog) in nsim_bpf_destroy_prog()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtailcalls.c20 struct bpf_program *prog; in test_tailcall_1() local
156 struct bpf_program *prog; in test_tailcall_2() local
235 struct bpf_program *prog; in test_tailcall_count() local
416 struct bpf_program *prog; in test_tailcall_4() local
506 struct bpf_program *prog; in test_tailcall_5() local
596 struct bpf_program *prog; in test_tailcall_bpf2bpf_1() local
680 struct bpf_program *prog; in test_tailcall_bpf2bpf_2() local
760 struct bpf_program *prog; in test_tailcall_bpf2bpf_3() local
855 struct bpf_program *prog; in test_tailcall_bpf2bpf_4() local
1019 struct bpf_program *prog; in test_tailcall_bpf2bpf_fentry_entry() local
[all …]
H A Dcustom_sec_handlers.c13 static int custom_setup_prog(struct bpf_program *prog, long cookie) in custom_setup_prog()
21 static int custom_prepare_load_prog(struct bpf_program *prog, in custom_prepare_load_prog()
32 static int custom_attach_prog(const struct bpf_program *prog, long cookie, in custom_attach_prog()
H A Drecursive_attach.c40 struct bpf_program *prog; in test_recursive_fentry_chain() local
117 struct bpf_program *prog; in test_fentry_attach_btf_presence() local
174 struct bpf_program *prog; in test_fentry_attach_stress() local
H A Dcheck_mtu.c44 struct bpf_program *prog; in test_check_mtu_xdp_attach() local
79 struct bpf_program *prog, in test_check_mtu_run_xdp() argument
132 struct bpf_program *prog, in test_check_mtu_run_tc() argument
[all...]
/linux/net/netfilter/
H A Dnf_bpf_link.c14 const struct bpf_prog *prog = bpf_prog; in nf_hook_run_bpf() local
210 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_nf_link_attach()
293 const struct bpf_prog *prog, in nf_is_valid_access()
324 bpf_nf_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_nf_func_proto()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c416 struct sock_fprog prog = { in TEST() local
450 struct sock_fprog prog = { }; in TEST() local
487 struct sock_fprog prog = { }; in TEST() local
524 struct sock_fprog prog = { in TEST() local
547 struct sock_fprog prog = { in TEST() local
572 struct sock_fprog prog = { in TEST() local
589 struct sock_fprog prog = { in TEST() local
608 struct sock_fprog prog = { in TEST() local
630 struct sock_fprog prog = { in TEST_SIGNAL() local
652 struct sock_fprog prog = { in TEST_SIGNAL() local
[all …]
/linux/net/core/
H A Dsock_reuseport.c466 struct bpf_prog *prog; in reuseport_stop_listen_sock() local
498 struct bpf_prog *prog, struct sk_buff *skb, in run_bpf_filter()
574 struct bpf_prog *prog; in reuseport_select_sock() local
627 struct bpf_prog *prog; in reuseport_migrate_sock() local
683 int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog) in reuseport_attach_prog()
/linux/include/linux/
H A Dbpf-netns.h44 struct bpf_prog *prog) in netns_bpf_prog_attach()
56 struct bpf_prog *prog) in netns_bpf_link_create()
/linux/drivers/net/hyperv/
H A Dnetvsc_bpf.c31 struct bpf_prog *prog; in netvsc_run_xdp() local
124 int netvsc_xdp_set(struct net_device *dev, struct bpf_prog *prog, in netvsc_xdp_set()
165 int netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog) in netvsc_vf_setxdp()

12345678910>>...13