Home
last modified time | relevance | path

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

12345678910>>...14

/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/arch/x86/net/
H A Dbpf_jit_comp.c333 u8 *prog = *pprog; in push_r9() local
341 u8 *prog = *pprog; in pop_r9() local
349 u8 *prog = *pprog; in push_r12() local
357 u8 *prog = *pprog; in push_callee_regs() local
372 u8 *prog = *pprog; in pop_r12() local
380 u8 *prog = *pprog; in pop_callee_regs() local
395 u8 *prog = *pprog; in emit_nops() local
420 u8 *prog = *pprog; in emit_fineibt() local
437 u8 *prog = *pprog; in emit_kcfi() local
460 u8 *prog = *pprog; in emit_cfi() local
[all …]
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/kernel/bpf/
H A Dtrampoline.c107 bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline()
504 static enum bpf_tramp_prog_type bpf_attach_type_to_tramp(struct bpf_prog *prog) in bpf_attach_type_to_tramp()
670 static struct bpf_shim_tramp_link *cgroup_shim_alloc(const struct bpf_prog *prog, in cgroup_shim_alloc()
724 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog, in bpf_trampoline_link_cgroup_shim()
791 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog) in bpf_trampoline_unlink_cgroup_shim()
894 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_recur()
910 static void notrace __update_prog_stats(struct bpf_prog *prog, u64 start) in __update_prog_stats()
931 static __always_inline void notrace update_prog_stats(struct bpf_prog *prog, in update_prog_stats()
938 static void notrace __bpf_prog_exit_recur(struct bpf_prog *prog, u64 start, in __bpf_prog_exit_recur()
949 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 Dcgroup.c67 const struct bpf_prog *prog; bpf_prog_run_array_cg() local
239 bpf_cgroup_storages_alloc(struct bpf_cgroup_storage * storages[],struct bpf_cgroup_storage * new_storages[],enum bpf_attach_type type,struct bpf_prog * prog,struct cgroup * cgrp) bpf_cgroup_storages_alloc() argument
624 find_attach_entry(struct hlist_head * progs,struct bpf_prog * prog,struct bpf_cgroup_link * link,struct bpf_prog * replace_prog,bool allow_multi) find_attach_entry() argument
674 struct bpf_prog *prog = ERR_PTR(-EINVAL); bpf_get_anchor_prog() local
683 get_prog_list(struct hlist_head * progs,struct bpf_prog * prog,struct bpf_cgroup_link * link,u32 flags,u32 id_or_fd) get_prog_list() argument
752 insert_pl_to_hlist(struct bpf_prog_list * pl,struct hlist_head * progs,struct bpf_prog * prog,struct bpf_cgroup_link * link,u32 flags,u32 id_or_fd) insert_pl_to_hlist() argument
787 __cgroup_bpf_attach(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_prog * replace_prog,struct bpf_cgroup_link * link,enum bpf_attach_type type,u32 flags,u32 id_or_fd,u64 revision) __cgroup_bpf_attach() argument
908 cgroup_bpf_attach(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_prog * replace_prog,struct bpf_cgroup_link * link,enum bpf_attach_type type,u32 flags,u32 id_or_fd,u64 revision) cgroup_bpf_attach() argument
1037 find_detach_entry(struct hlist_head * progs,struct bpf_prog * prog,struct bpf_cgroup_link * link,bool allow_multi) find_detach_entry() argument
1078 purge_effective_progs(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_cgroup_link * link,enum cgroup_bpf_attach_type atype) purge_effective_progs() argument
1136 __cgroup_bpf_detach(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_cgroup_link * link,enum bpf_attach_type type,u64 revision) __cgroup_bpf_detach() argument
1199 cgroup_bpf_detach(struct cgroup * cgrp,struct bpf_prog * prog,enum bpf_attach_type type,u64 revision) cgroup_bpf_detach() argument
1283 struct bpf_prog *prog; __cgroup_bpf_query() local
1327 cgroup_bpf_prog_attach(const union bpf_attr * attr,enum bpf_prog_type ptype,struct bpf_prog * prog) cgroup_bpf_prog_attach() argument
1358 struct bpf_prog *prog; cgroup_bpf_prog_detach() local
1478 cgroup_bpf_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) cgroup_bpf_link_attach() argument
1819 cgroup_dev_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) cgroup_dev_func_proto() argument
1837 cgroup_dev_is_valid_access(int off,int size,enum bpf_access_type type,const struct bpf_prog * prog,struct bpf_insn_access_aux * info) cgroup_dev_is_valid_access() argument
2366 sysctl_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) sysctl_func_proto() argument
2393 sysctl_is_valid_access(int off,int size,enum bpf_access_type type,const struct bpf_prog * prog,struct bpf_insn_access_aux * info) sysctl_is_valid_access() argument
2422 sysctl_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sysctl_convert_ctx_access() argument
2509 cg_sockopt_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) cg_sockopt_func_proto() argument
2547 cg_sockopt_is_valid_access(int off,int size,enum bpf_access_type type,const struct bpf_prog * prog,struct bpf_insn_access_aux * info) cg_sockopt_is_valid_access() argument
2622 cg_sockopt_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) cg_sockopt_convert_ctx_access() argument
2699 cg_sockopt_get_prologue(struct bpf_insn * insn_buf,bool direct_write,const struct bpf_prog * prog) cg_sockopt_get_prologue() argument
2718 cgroup_common_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) cgroup_common_func_proto() argument
[all...]
H A Dsyscall.c2294 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type()
2324 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op) in bpf_audit_prog()
2343 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_alloc_id()
2362 void bpf_prog_free_id(struct bpf_prog *prog) in bpf_prog_free_id()
2391 static void __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred) in __bpf_prog_put_noref()
2416 struct bpf_prog *prog; in bpf_prog_put_deferred() local
2426 static void __bpf_prog_put(struct bpf_prog *prog) in __bpf_prog_put()
2440 void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
2448 struct bpf_prog *prog = filp->private_data; in bpf_prog_release() local
2460 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 int bpf_prog_alloc_jited_linfo(struct bpf_prog *prog) in bpf_prog_alloc_jited_linfo()
189 void bpf_prog_jit_attempt_done(struct bpf_prog *prog) in bpf_prog_jit_attempt_done()
225 void bpf_prog_fill_jited_linfo(struct bpf_prog *prog, in bpf_prog_fill_jited_linfo()
384 static int bpf_adj_branches(struct bpf_prog *prog, u32 pos, s32 end_old, in bpf_adj_branches()
431 static void bpf_adj_linfo(struct bpf_prog *prog, u32 off, u32 delta) in bpf_adj_linfo()
451 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, in bpf_patch_insn_single()
512 int bpf_remove_insns(struct bpf_prog *prog, u32 off, u32 cnt) in bpf_remove_insns()
551 bpf_prog_ksym_set_addr(struct bpf_prog *prog) in bpf_prog_ksym_set_addr()
560 bpf_prog_ksym_set_name(struct bpf_prog *prog) in bpf_prog_ksym_set_name()
[all …]
H A Dbpf_lsm.c115 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 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 Dbpf_iter.c25 struct bpf_prog *prog; member
332 struct bpf_prog *prog) in cache_btf_id() argument
337 int bpf_iter_prog_supported(struct bpf_prog *prog) in bpf_iter_prog_supported() argument
370 bpf_iter_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_iter_get_func_proto() argument
505 bpf_iter_link_attach(const union bpf_attr * attr,bpfptr_t uattr,struct bpf_prog * prog) bpf_iter_link_attach() argument
579 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
594 struct bpf_prog *prog; prepare_seq_file() local
693 bpf_iter_run_prog(struct bpf_prog * prog,void * ctx) bpf_iter_run_prog() argument
[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/tools/lib/bpf/
H A Dlibbpf.c759 bpf_program__unload(struct bpf_program * prog) bpf_program__unload() argument
770 bpf_program__exit(struct bpf_program * prog) bpf_program__exit() argument
807 bpf_object__init_prog(struct bpf_object * obj,struct bpf_program * prog,const char * name,size_t sec_idx,const char * sec_name,size_t sec_off,void * insn_data,size_t insn_data_sz) bpf_object__init_prog() argument
872 struct bpf_program *prog, *progs; bpf_object__add_programs() local
956 struct bpf_program *prog = obj->programs; bpf_object_bswap_progs() local
1077 is_valid_st_ops_program(struct bpf_object * obj,const struct bpf_program * prog) is_valid_st_ops_program() argument
1096 struct bpf_program *prog, *slot_prog; bpf_object_adjust_struct_ops_autoload() local
1181 struct bpf_program *prog; bpf_map__init_kern_struct_ops() local
3443 prog_needs_vmlinux_btf(struct bpf_program * prog) prog_needs_vmlinux_btf() argument
3465 struct bpf_program *prog; obj_needs_vmlinux_btf() local
3547 struct bpf_program *prog = &obj->programs[i]; bpf_object__sanitize_and_load_btf() local
4431 prog_is_subprog(const struct bpf_object * obj,const struct bpf_program * prog) prog_is_subprog() argument
4440 struct bpf_program *prog; bpf_object__find_program_by_name() local
4488 bpf_program__record_reloc(struct bpf_program * prog,struct reloc_desc * reloc_desc,__u32 insn_idx,const char * sym_name,const Elf64_Sym * sym,const Elf64_Rel * rel) bpf_program__record_reloc() argument
4660 prog_contains_insn(const struct bpf_program * prog,size_t insn_idx) prog_contains_insn() argument
4670 struct bpf_program *prog; find_prog_by_sec_insn() local
4699 struct bpf_program *prog; bpf_object__collect_prog_relos() local
5844 record_relo_core(struct bpf_program * prog,const struct bpf_core_relo * core_relo,int insn_idx) record_relo_core() argument
5862 find_relo_core(struct bpf_program * prog,int insn_idx) find_relo_core() argument
5878 bpf_core_resolve_relo(struct bpf_program * prog,const struct bpf_core_relo * relo,int relo_idx,const struct btf * local_btf,struct hashmap * cand_cache,struct bpf_core_relo_res * targ_res) bpf_core_resolve_relo() argument
5930 struct bpf_program *prog; bpf_object__relocate_core() local
6044 poison_map_ldimm64(struct bpf_program * prog,int relo_idx,int insn_idx,struct bpf_insn * insn,int map_idx,const struct bpf_map * map) poison_map_ldimm64() argument
6074 poison_kfunc_call(struct bpf_program * prog,int relo_idx,int insn_idx,struct bpf_insn * insn,int ext_idx,const struct extern_desc * ext) poison_kfunc_call() argument
6100 bpf_object__relocate_data(struct bpf_object * obj,struct bpf_program * prog) bpf_object__relocate_data() argument
6196 adjust_prog_btf_ext_info(const struct bpf_object * obj,const struct bpf_program * prog,const struct btf_ext_info * ext_info,void ** prog_info,__u32 * prog_rec_cnt,__u32 * prog_rec_sz) adjust_prog_btf_ext_info() argument
6266 reloc_prog_func_and_line_info(const struct bpf_object * obj,struct bpf_program * main_prog,const struct bpf_program * prog) reloc_prog_func_and_line_info() argument
6345 find_prog_insn_relo(const struct bpf_program * prog,size_t insn_idx) find_prog_insn_relo() argument
6416 bpf_object__reloc_code(struct bpf_object * obj,struct bpf_program * main_prog,struct bpf_program * prog) bpf_object__reloc_code() argument
6605 bpf_object__relocate_calls(struct bpf_object * obj,struct bpf_program * prog) bpf_object__relocate_calls() argument
6631 struct bpf_program *prog; bpf_object__free_relocs() local
6671 bpf_prog_assign_exc_cb(struct bpf_object * obj,struct bpf_program * prog) bpf_prog_assign_exc_cb() argument
6793 need_func_arg_type_fixup(const struct btf * btf,const struct bpf_program * prog,const char * subprog_name,int arg_idx,int arg_type_id,const char * ctx_name) need_func_arg_type_fixup() argument
6864 clone_func_btf_info(struct btf * btf,int orig_fn_id,struct bpf_program * prog) clone_func_btf_info() argument
6933 bpf_program_fixup_func_info(struct bpf_object * obj,struct bpf_program * prog) bpf_program_fixup_func_info() argument
7074 struct bpf_program *prog; bpf_object__relocate() local
7369 bpf_object__sanitize_prog(struct bpf_object * obj,struct bpf_program * prog) bpf_object__sanitize_prog() argument
7408 libbpf_prepare_prog_load(struct bpf_program * prog,struct bpf_prog_load_opts * opts,long cookie) libbpf_prepare_prog_load() argument
7475 bpf_object_load_prog(struct bpf_object * obj,struct bpf_program * prog,struct bpf_insn * insns,int insns_cnt,const char * license,__u32 kern_version,int * prog_fd) bpf_object_load_prog() argument
7705 fixup_log_failed_core_relo(struct bpf_program * prog,char * buf,size_t buf_sz,size_t log_sz,char * line1,char * line2,char * line3) fixup_log_failed_core_relo() argument
7744 fixup_log_missing_map_load(struct bpf_program * prog,char * buf,size_t buf_sz,size_t log_sz,char * line1,char * line2,char * line3) fixup_log_missing_map_load() argument
7777 fixup_log_missing_kfunc_call(struct bpf_program * prog,char * buf,size_t buf_sz,size_t log_sz,char * line1,char * line2,char * line3) fixup_log_missing_kfunc_call() argument
7810 fixup_verifier_log(struct bpf_program * prog,char * buf,size_t buf_sz) fixup_verifier_log() argument
7860 bpf_program_record_relos(struct bpf_program * prog) bpf_program_record_relos() argument
7906 struct bpf_program *prog; bpf_object__load_progs() local
7937 struct bpf_program *prog; bpf_object_prepare_progs() local
7954 struct bpf_program *prog; bpf_object_init_progs() local
8533 struct bpf_program *prog = st_ops->progs[i]; bpf_map_prepare_vdata() local
8739 bpf_program__pin(struct bpf_program * prog,const char * path) bpf_program__pin() argument
8766 bpf_program__unpin(struct bpf_program * prog,const char * path) bpf_program__unpin() argument
9005 struct bpf_program *prog; bpf_object__pin_programs() local
9042 struct bpf_program *prog; bpf_object__unpin_programs() local
9262 struct bpf_program *prog = prev; bpf_object__next_program() local
9274 struct bpf_program *prog = next; bpf_object__prev_program() local
9283 bpf_program__set_ifindex(struct bpf_program * prog,__u32 ifindex) bpf_program__set_ifindex() argument
9288 bpf_program__name(const struct bpf_program * prog) bpf_program__name() argument
9293 bpf_program__section_name(const struct bpf_program * prog) bpf_program__section_name() argument
9298 bpf_program__autoload(const struct bpf_program * prog) bpf_program__autoload() argument
9303 bpf_program__set_autoload(struct bpf_program * prog,bool autoload) bpf_program__set_autoload() argument
9312 bpf_program__autoattach(const struct bpf_program * prog) bpf_program__autoattach() argument
9317 bpf_program__set_autoattach(struct bpf_program * prog,bool autoattach) bpf_program__set_autoattach() argument
9322 bpf_program__insns(const struct bpf_program * prog) bpf_program__insns() argument
9327 bpf_program__insn_cnt(const struct bpf_program * prog) bpf_program__insn_cnt() argument
9332 bpf_program__set_insns(struct bpf_program * prog,struct bpf_insn * new_insns,size_t new_insn_cnt) bpf_program__set_insns() argument
9353 bpf_program__fd(const struct bpf_program * prog) bpf_program__fd() argument
9367 bpf_program__type(const struct bpf_program * prog) bpf_program__type() argument
9378 bpf_program__set_type(struct bpf_program * prog,enum bpf_prog_type type) bpf_program__set_type() argument
9403 bpf_program__expected_attach_type(const struct bpf_program * prog) bpf_program__expected_attach_type() argument
9408 bpf_program__set_expected_attach_type(struct bpf_program * prog,enum bpf_attach_type type) bpf_program__set_expected_attach_type() argument
9418 bpf_program__flags(const struct bpf_program * prog) bpf_program__flags() argument
9423 bpf_program__set_flags(struct bpf_program * prog,__u32 flags) bpf_program__set_flags() argument
9432 bpf_program__log_level(const struct bpf_program * prog) bpf_program__log_level() argument
9437 bpf_program__set_log_level(struct bpf_program * prog,__u32 log_level) bpf_program__set_log_level() argument
9446 bpf_program__log_buf(const struct bpf_program * prog,size_t * log_size) bpf_program__log_buf() argument
9452 bpf_program__set_log_buf(struct bpf_program * prog,char * log_buf,size_t log_size) bpf_program__set_log_buf() argument
9466 bpf_program__func_info(const struct bpf_program * prog) bpf_program__func_info() argument
9473 bpf_program__func_info_cnt(const struct bpf_program * prog) bpf_program__func_info_cnt() argument
9478 bpf_program__line_info(const struct bpf_program * prog) bpf_program__line_info() argument
9485 bpf_program__line_info_cnt(const struct bpf_program * prog) bpf_program__line_info_cnt() argument
9882 struct bpf_program *prog; bpf_object__collect_st_ops_relos() local
10149 libbpf_find_attach_btf_id(struct bpf_program * prog,const char * attach_name,int * btf_obj_fd,int * btf_type_id) libbpf_find_attach_btf_id() argument
10721 bpf_link__update_program(struct bpf_link * link,struct bpf_program * prog) bpf_link__update_program() argument
10908 bpf_program__attach_perf_event_opts(const struct bpf_program * prog,int pfd,const struct bpf_perf_event_opts * opts) bpf_program__attach_perf_event_opts() argument
10986 bpf_program__attach_perf_event(const struct bpf_program * prog,int pfd) bpf_program__attach_perf_event() argument
11305 bpf_program__attach_kprobe_opts(const struct bpf_program * prog,const char * func_name,const struct bpf_kprobe_opts * opts) bpf_program__attach_kprobe_opts() argument
11399 bpf_program__attach_kprobe(const struct bpf_program * prog,bool retprobe,const char * func_name) bpf_program__attach_kprobe() argument
11410 bpf_program__attach_ksyscall(const struct bpf_program * prog,const char * syscall_name,const struct bpf_ksyscall_opts * opts) bpf_program__attach_ksyscall() argument
11649 bpf_program__attach_kprobe_multi_opts(const struct bpf_program * prog,const char * pattern,const struct bpf_kprobe_multi_opts * opts) bpf_program__attach_kprobe_multi_opts() argument
11750 attach_kprobe(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe() argument
11787 attach_ksyscall(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_ksyscall() argument
11808 attach_kprobe_multi(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe_multi() argument
11839 attach_kprobe_session(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe_session() argument
11865 attach_uprobe_multi(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_uprobe_multi() argument
12109 bpf_program__attach_uprobe_multi(const struct bpf_program * prog,pid_t pid,const char * path,const char * func_pattern,const struct bpf_uprobe_multi_opts * opts) bpf_program__attach_uprobe_multi() argument
12237 bpf_program__attach_uprobe_opts(const struct bpf_program * prog,pid_t pid,const char * binary_path,size_t func_offset,const struct bpf_uprobe_opts * opts) bpf_program__attach_uprobe_opts() argument
12383 attach_uprobe(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_uprobe() argument
12438 bpf_program__attach_uprobe(const struct bpf_program * prog,bool retprobe,pid_t pid,const char * binary_path,size_t func_offset) bpf_program__attach_uprobe() argument
12448 bpf_program__attach_usdt(const struct bpf_program * prog,pid_t pid,const char * binary_path,const char * usdt_provider,const char * usdt_name,const struct bpf_usdt_opts * opts) bpf_program__attach_usdt() argument
12501 attach_usdt(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_usdt() argument
12580 bpf_program__attach_tracepoint_opts(const struct bpf_program * prog,const char * tp_category,const char * tp_name,const struct bpf_tracepoint_opts * opts) bpf_program__attach_tracepoint_opts() argument
12613 bpf_program__attach_tracepoint(const struct bpf_program * prog,const char * tp_category,const char * tp_name) bpf_program__attach_tracepoint() argument
12620 attach_tp(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_tp() argument
12653 bpf_program__attach_raw_tracepoint_opts(const struct bpf_program * prog,const char * tp_name,struct bpf_raw_tracepoint_opts * opts) bpf_program__attach_raw_tracepoint_opts() argument
12689 bpf_program__attach_raw_tracepoint(const struct bpf_program * prog,const char * tp_name) bpf_program__attach_raw_tracepoint() argument
12695 attach_raw_tp(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_raw_tp() argument
12737 bpf_program__attach_btf_id(const struct bpf_program * prog,const struct bpf_trace_opts * opts) bpf_program__attach_btf_id() argument
12772 bpf_program__attach_trace(const struct bpf_program * prog) bpf_program__attach_trace() argument
12777 bpf_program__attach_trace_opts(const struct bpf_program * prog,const struct bpf_trace_opts * opts) bpf_program__attach_trace_opts() argument
12783 bpf_program__attach_lsm(const struct bpf_program * prog) bpf_program__attach_lsm() argument
12788 attach_trace(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_trace() argument
12794 attach_lsm(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_lsm() argument
12801 bpf_program_attach_fd(const struct bpf_program * prog,int target_fd,const char * target_name,const struct bpf_link_create_opts * opts) bpf_program_attach_fd() argument
12835 bpf_program__attach_cgroup(const struct bpf_program * prog,int cgroup_fd) bpf_program__attach_cgroup() argument
12841 bpf_program__attach_netns(const struct bpf_program * prog,int netns_fd) bpf_program__attach_netns() argument
12847 bpf_program__attach_sockmap(const struct bpf_program * prog,int map_fd) bpf_program__attach_sockmap() argument
12852 bpf_program__attach_xdp(const struct bpf_program * prog,int ifindex) bpf_program__attach_xdp() argument
12859 bpf_program__attach_cgroup_opts(const struct bpf_program * prog,int cgroup_fd,const struct bpf_cgroup_opts * opts) bpf_program__attach_cgroup_opts() argument
12887 bpf_program__attach_tcx(const struct bpf_program * prog,int ifindex,const struct bpf_tcx_opts * opts) bpf_program__attach_tcx() argument
12922 bpf_program__attach_netkit(const struct bpf_program * prog,int ifindex,const struct bpf_netkit_opts * opts) bpf_program__attach_netkit() argument
12955 bpf_program__attach_freplace(const struct bpf_program * prog,int target_fd,const char * attach_func_name) bpf_program__attach_freplace() argument
12993 bpf_program__attach_iter(const struct bpf_program * prog,const struct bpf_iter_attach_opts * opts) bpf_program__attach_iter() argument
13031 attach_iter(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_iter() argument
13037 bpf_program__attach_netfilter(const struct bpf_program * prog,const struct bpf_netfilter_opts * opts) bpf_program__attach_netfilter() argument
13077 bpf_program__attach(const struct bpf_program * prog) bpf_program__attach() argument
13774 bpf_program__set_attach_target(struct bpf_program * prog,int attach_prog_fd,const char * attach_func_name) bpf_program__set_attach_target() argument
13956 struct bpf_program **prog = prog_skel->prog; populate_skeleton_progs() local
14097 struct bpf_program *prog = *prog_skel->prog; bpf_object__attach_skeleton() local
[all...]
/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/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()
132 struct bpf_program *prog, in test_check_mtu_run_tc()
/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/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/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/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()

12345678910>>...14