/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 332 u8 *prog = *pprog; in push_r9() local 340 u8 *prog = *pprog; in pop_r9() local 348 u8 *prog = *pprog; in push_r12() local 356 u8 *prog = *pprog; in push_callee_regs() local 371 u8 *prog = *pprog; in pop_r12() local 379 u8 *prog = *pprog; in pop_callee_regs() local 394 u8 *prog = *pprog; in emit_nops() local 419 u8 *prog = *pprog; in emit_fineibt() local 436 u8 *prog = *pprog; in emit_kcfi() local 459 u8 *prog = *pprog; in emit_cfi() local [all …]
|
H A D | bpf_jit_comp32.c | 209 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 D | clk-programmable.c | 35 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/net/sched/ |
H A D | act_bpf.c | 40 struct tcf_bpf *prog = to_bpf(act); in tcf_bpf_act() local 94 static bool tcf_bpf_is_ebpf(const struct tcf_bpf *prog) in tcf_bpf_is_ebpf() 99 static int tcf_bpf_dump_bpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_bpf_info() 117 static int tcf_bpf_dump_ebpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_ebpf_info() 142 struct tcf_bpf *prog = to_bpf(act); in tcf_bpf_dump() local 266 static void tcf_bpf_prog_fill_cfg(const struct tcf_bpf *prog, in tcf_bpf_prog_fill_cfg() 290 struct tcf_bpf *prog; in tcf_bpf_init() local
|
/linux/kernel/bpf/ |
H A D | offload.c | 109 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 D | syscall.c | 2231 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type() 2261 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op) in bpf_audit_prog() 2280 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_alloc_id() 2299 void bpf_prog_free_id(struct bpf_prog *prog) in bpf_prog_free_id() 2328 static void __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred) in __bpf_prog_put_noref() 2353 struct bpf_prog *prog; in bpf_prog_put_deferred() local 2363 static void __bpf_prog_put(struct bpf_prog *prog) in __bpf_prog_put() 2377 void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put() 2385 struct bpf_prog *prog = filp->private_data; in bpf_prog_release() local 2397 void notrace bpf_prog_inc_misses_counter(struct bpf_prog *prog) in bpf_prog_inc_misses_counter() [all …]
|
H A D | cgroup.c | 67 const struct bpf_prog *prog; in bpf_prog_run_array_cg() local 239 struct bpf_prog *prog, in bpf_cgroup_storages_alloc() 624 struct bpf_prog *prog, in find_attach_entry() 675 struct bpf_prog *prog, struct bpf_prog *replace_prog, in __cgroup_bpf_attach() 793 struct bpf_prog *prog, struct bpf_prog *replace_prog, in cgroup_bpf_attach() 920 struct bpf_prog *prog, in find_detach_entry() 961 static void purge_effective_progs(struct cgroup *cgrp, struct bpf_prog *prog, in purge_effective_progs() 1018 static int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, in __cgroup_bpf_detach() 1076 static int cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, in cgroup_bpf_detach() 1155 struct bpf_prog *prog; in __cgroup_bpf_query() local [all …]
|
H A D | bpf_lsm.c | 115 const struct bpf_prog *prog) in bpf_lsm_verify_prog() argument 169 static bool bpf_ima_inode_hash_allowed(const struct bpf_prog *prog) in 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 D | prog_iter.c | 16 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 D | bpf_iter.c | 25 struct bpf_prog *prog; member 333 struct bpf_prog *prog) in cache_btf_id() argument 338 int bpf_iter_prog_supported(struct bpf_prog *prog) in bpf_iter_prog_supported() argument 372 bpf_iter_get_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) bpf_iter_get_func_proto() argument 507 bpf_iter_link_attach(const union bpf_attr * attr,bpfptr_t uattr,struct bpf_prog * prog) bpf_iter_link_attach() argument 580 init_seq_meta(struct bpf_iter_priv_data * priv_data,struct bpf_iter_target_info * tinfo,const struct bpf_iter_seq_info * seq_info,struct bpf_prog * prog) init_seq_meta() argument 595 struct bpf_prog *prog; prepare_seq_file() local 694 bpf_iter_run_prog(struct bpf_prog * prog,void * ctx) bpf_iter_run_prog() argument [all...] |
H A D | tcx.c | 10 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()
|
H A D | core.c | 143 struct bpf_prog *prog; in bpf_prog_alloc() local 168 bpf_prog_alloc_jited_linfo(struct bpf_prog * prog) bpf_prog_alloc_jited_linfo() argument 182 bpf_prog_jit_attempt_done(struct bpf_prog * prog) bpf_prog_jit_attempt_done() argument 218 bpf_prog_fill_jited_linfo(struct bpf_prog * prog,const u32 * insn_to_jit_off) bpf_prog_fill_jited_linfo() argument 412 bpf_adj_branches(struct bpf_prog * prog,u32 pos,s32 end_old,s32 end_new,const bool probe_pass) bpf_adj_branches() argument 459 bpf_adj_linfo(struct bpf_prog * prog,u32 off,u32 delta) bpf_adj_linfo() argument 479 bpf_patch_insn_single(struct bpf_prog * prog,u32 off,const struct bpf_insn * patch,u32 len) bpf_patch_insn_single() argument 540 bpf_remove_insns(struct bpf_prog * prog,u32 off,u32 cnt) bpf_remove_insns() argument 579 bpf_prog_ksym_set_addr(struct bpf_prog * prog) bpf_prog_ksym_set_addr() argument 588 bpf_prog_ksym_set_name(struct bpf_prog * prog) bpf_prog_ksym_set_name() argument 791 struct bpf_prog *prog; search_bpf_extables() local 834 bpf_jit_add_poke_descriptor(struct bpf_prog * prog,struct bpf_jit_poke_descriptor * poke) bpf_jit_add_poke_descriptor() argument 1253 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 1471 bpf_jit_blind_constants(struct bpf_prog * prog) bpf_jit_blind_constants() argument 2029 struct bpf_prog *prog; ___bpf_prog_run() local 2463 struct bpf_prog prog; global() member 2630 bpf_prog_array_update_at(struct bpf_prog_array * array,int index,struct bpf_prog * prog) bpf_prog_array_update_at() argument 2931 bpf_int_jit_compile(struct bpf_prog * prog) bpf_int_jit_compile() argument 2939 bpf_jit_compile(struct bpf_prog * prog) bpf_jit_compile() argument [all...] |
/linux/drivers/media/rc/ |
H A D | bpf-lirc.c | 83 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 D | offload.c | 112 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/tools/lib/bpf/ |
H A D | libbpf.c | 759 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload() 770 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit() 807 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog() 872 struct bpf_program *prog, *progs; in bpf_object__add_programs() local 956 struct bpf_program *prog = obj->programs; in bpf_object_bswap_progs() local 1077 const struct bpf_program *prog) in is_valid_st_ops_program() 1096 struct bpf_program *prog, *slot_prog; in bpf_object_adjust_struct_ops_autoload() local 1181 struct bpf_program *prog; in bpf_map__init_kern_struct_ops() local 3442 static bool prog_needs_vmlinux_btf(struct bpf_program *prog) in prog_needs_vmlinux_btf() 3464 struct bpf_program *prog; in obj_needs_vmlinux_btf() local [all …]
|
/linux/include/net/ |
H A D | netkit.h | 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()
|
/linux/drivers/net/netdevsim/ |
H A D | bpf.c | 31 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 D | tailcalls.c | 20 struct bpf_program *prog; in test_tailcall_1() local 156 struct bpf_program *prog; test_tailcall_2() local 235 struct bpf_program *prog; test_tailcall_count() local 416 struct bpf_program *prog; test_tailcall_4() local 506 struct bpf_program *prog; test_tailcall_5() local 596 struct bpf_program *prog; test_tailcall_bpf2bpf_1() local 680 struct bpf_program *prog; test_tailcall_bpf2bpf_2() local 760 struct bpf_program *prog; test_tailcall_bpf2bpf_3() local 855 struct bpf_program *prog; test_tailcall_bpf2bpf_4() local 1019 struct bpf_program *prog; test_tailcall_bpf2bpf_fentry_entry() local 1201 struct bpf_program *prog, *fentry_prog; test_tailcall_hierarchy_count() local [all...] |
H A D | custom_sec_handlers.c | 13 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 D | check_mtu.c | 44 struct bpf_program *prog; in test_check_mtu_xdp_attach() local 79 struct bpf_program *prog, in test_check_mtu_run_xdp() 132 struct bpf_program *prog, in test_check_mtu_run_tc()
|
/linux/net/netfilter/ |
H A D | nf_bpf_link.c | 14 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() 292 const struct bpf_prog *prog, in nf_is_valid_access() 320 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 D | seccomp_bpf.c | 407 struct sock_fprog prog = { in TEST() local 441 struct sock_fprog prog = { }; in TEST() local 478 struct sock_fprog prog = { }; TEST() local 515 struct sock_fprog prog = { TEST() local 538 struct sock_fprog prog = { TEST() local 563 struct sock_fprog prog = { TEST() local 580 struct sock_fprog prog = { TEST() local 599 struct sock_fprog prog = { TEST() local 621 struct sock_fprog prog = { TEST_SIGNAL() local 643 struct sock_fprog prog = { TEST_SIGNAL() local 664 struct sock_fprog prog = { TEST_SIGNAL() local 686 struct sock_fprog prog = { TEST_SIGNAL() local 719 struct sock_fprog prog = { TEST_SIGNAL() local 758 struct sock_fprog prog = { TEST_SIGNAL() local 943 struct sock_fprog prog = { TEST() local 1060 struct sock_fprog prog; FIXTURE() local 1671 struct sock_fprog prog; FIXTURE() local 2048 struct sock_fprog prog; FIXTURE() local 2155 struct sock_fprog prog = { FIXTURE_SETUP() local 2256 struct sock_fprog prog = { TEST_F_SIGNAL() local 2279 struct sock_fprog prog = { TEST_F() local 2304 struct sock_fprog prog = { TEST_F_SIGNAL() local 2323 struct sock_fprog prog = { TEST() local 2375 struct sock_fprog prog = { TEST() local 2502 struct sock_fprog prog = { TEST() local 2532 struct sock_fprog *prog; global() member 2683 struct sock_fprog prog = { TEST_F() local 3048 struct sock_fprog prog = { TEST() local 3307 struct sock_fprog prog = { TEST() local 3364 struct sock_fprog prog = { user_notif_syscall() local 3385 struct sock_fprog prog = { TEST() local 5016 run_probed_with_filter(struct sock_fprog * prog) run_probed_with_filter() argument 5032 struct sock_fprog prog = { TEST_F() local 5049 struct sock_fprog prog = { TEST_F() local 5068 struct sock_fprog prog = { TEST_F() local 5088 struct sock_fprog prog = { TEST_F() local [all...] |
/linux/net/core/ |
H A D | sock_reuseport.c | 466 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/drivers/net/ethernet/microsoft/mana/ |
H A D | mana_bpf.c | 84 struct bpf_prog *prog; in mana_run_xdp() local 149 void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog) in mana_chn_setxdp() 171 static int mana_xdp_set(struct net_device *ndev, struct bpf_prog *prog, in mana_xdp_set()
|
/linux/include/linux/ |
H A D | bpf-netns.h | 44 struct bpf_prog *prog) in netns_bpf_prog_attach() 56 struct bpf_prog *prog) in netns_bpf_link_create()
|