Home
last modified time | relevance | path

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

12345678910>>...15

/linux-6.8/net/sched/
Dcls_bpf.c87 struct cls_bpf_prog *prog; in cls_bpf_classify() local
140 static bool cls_bpf_is_ebpf(const struct cls_bpf_prog *prog) in cls_bpf_is_ebpf()
145 static int cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload_cmd()
197 static int cls_bpf_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload()
217 struct cls_bpf_prog *prog, in cls_bpf_stop_offload()
228 struct cls_bpf_prog *prog) in cls_bpf_offload_update_stats()
258 static void cls_bpf_free_parms(struct cls_bpf_prog *prog) in cls_bpf_free_parms()
269 static void __cls_bpf_delete_prog(struct cls_bpf_prog *prog) in __cls_bpf_delete_prog()
280 struct cls_bpf_prog *prog = container_of(to_rcu_work(work), in cls_bpf_delete_prog_work() local
288 static void __cls_bpf_delete(struct tcf_proto *tp, struct cls_bpf_prog *prog, in __cls_bpf_delete()
[all …]
Dact_bpf.c40 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-6.8/kernel/bpf/
Dtrampoline.c107 bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline()
502 static enum bpf_tramp_prog_type bpf_attach_type_to_tramp(struct bpf_prog *prog) in bpf_attach_type_to_tramp()
637 static struct bpf_shim_tramp_link *cgroup_shim_alloc(const struct bpf_prog *prog, in cgroup_shim_alloc()
690 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog, in bpf_trampoline_link_cgroup_shim()
756 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog) in bpf_trampoline_unlink_cgroup_shim()
859 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_recur()
874 static void notrace update_prog_stats(struct bpf_prog *prog, in update_prog_stats()
896 static void notrace __bpf_prog_exit_recur(struct bpf_prog *prog, u64 start, in __bpf_prog_exit_recur()
908 static u64 notrace __bpf_prog_enter_lsm_cgroup(struct bpf_prog *prog, in __bpf_prog_enter_lsm_cgroup()
923 static void notrace __bpf_prog_exit_lsm_cgroup(struct bpf_prog *prog, u64 start, in __bpf_prog_exit_lsm_cgroup()
[all …]
Doffload.c108 static void __bpf_prog_offload_destroy(struct bpf_prog *prog) in __bpf_prog_offload_destroy()
188 static int __bpf_prog_dev_bound_init(struct bpf_prog *prog, struct net_device *netdev) in __bpf_prog_dev_bound_init()
228 int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr) in bpf_prog_dev_bound_init()
296 int bpf_prog_offload_verifier_prep(struct bpf_prog *prog) in bpf_prog_offload_verifier_prep()
381 void bpf_prog_dev_bound_destroy(struct bpf_prog *prog) in bpf_prog_dev_bound_destroy()
402 static int bpf_prog_offload_translate(struct bpf_prog *prog) in bpf_prog_offload_translate()
423 int bpf_prog_offload_compile(struct bpf_prog *prog) in bpf_prog_offload_compile()
431 struct bpf_prog *prog; member
462 struct bpf_prog *prog) in bpf_prog_offload_info_fill()
694 static bool __bpf_offload_dev_match(struct bpf_prog *prog, in __bpf_offload_dev_match()
[all …]
Dcgroup.c37 const struct bpf_prog *prog; in bpf_prog_run_array_cg() local
209 struct bpf_prog *prog, in bpf_cgroup_storages_alloc()
557 struct bpf_prog *prog, in find_attach_entry()
608 struct bpf_prog *prog, struct bpf_prog *replace_prog, in __cgroup_bpf_attach()
725 struct bpf_prog *prog, struct bpf_prog *replace_prog, in cgroup_bpf_attach()
852 struct bpf_prog *prog, in find_detach_entry()
893 static void purge_effective_progs(struct cgroup *cgrp, struct bpf_prog *prog, in purge_effective_progs()
950 static int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, in __cgroup_bpf_detach()
1008 static int cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, in cgroup_bpf_detach()
1087 struct bpf_prog *prog; in __cgroup_bpf_query() local
[all …]
Dsyscall.c2054 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type()
2084 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op) in bpf_audit_prog()
2103 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_alloc_id()
2122 void bpf_prog_free_id(struct bpf_prog *prog) in bpf_prog_free_id()
2151 static void __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred) in __bpf_prog_put_noref()
2175 struct bpf_prog *prog; in bpf_prog_put_deferred() local
2185 static void __bpf_prog_put(struct bpf_prog *prog) in __bpf_prog_put()
2199 void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
2207 struct bpf_prog *prog = filp->private_data; in bpf_prog_release() local
2219 void notrace bpf_prog_inc_misses_counter(struct bpf_prog *prog) in bpf_prog_inc_misses_counter()
[all …]
Dbpf_lsm.c98 const struct bpf_prog *prog) in bpf_lsm_verify_prog()
143 static bool bpf_ima_inode_hash_allowed(const struct bpf_prog *prog) in bpf_ima_inode_hash_allowed()
197 bpf_lsm_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_lsm_func_proto()
377 bool bpf_lsm_is_trusted(const struct bpf_prog *prog) in bpf_lsm_is_trusted()
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
Ddispatcher.c26 struct bpf_dispatcher *d, struct bpf_prog *prog) in bpf_dispatcher_find_prog()
44 struct bpf_prog *prog) in bpf_dispatcher_add_prog()
69 struct bpf_prog *prog) in bpf_dispatcher_remove_prog()
Dbpf_iter.c25 struct bpf_prog *prog; member
334 struct bpf_prog *prog) in cache_btf_id()
339 bool bpf_iter_prog_supported(struct bpf_prog *prog) in bpf_iter_prog_supported()
373 bpf_iter_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_iter_get_func_proto()
508 struct bpf_prog *prog) in bpf_iter_link_attach()
581 struct bpf_prog *prog) in init_seq_meta()
596 struct bpf_prog *prog; in prepare_seq_file() local
695 int bpf_iter_run_prog(struct bpf_prog *prog, void *ctx) in bpf_iter_run_prog()
Dcore.c136 struct bpf_prog *prog; in bpf_prog_alloc() local
161 int bpf_prog_alloc_jited_linfo(struct bpf_prog *prog) in bpf_prog_alloc_jited_linfo()
175 void bpf_prog_jit_attempt_done(struct bpf_prog *prog) in bpf_prog_jit_attempt_done()
211 void bpf_prog_fill_jited_linfo(struct bpf_prog *prog, in bpf_prog_fill_jited_linfo()
405 static int bpf_adj_branches(struct bpf_prog *prog, u32 pos, s32 end_old, in bpf_adj_branches()
452 static void bpf_adj_linfo(struct bpf_prog *prog, u32 off, u32 delta) in bpf_adj_linfo()
472 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, in bpf_patch_insn_single()
533 int bpf_remove_insns(struct bpf_prog *prog, u32 off, u32 cnt) in bpf_remove_insns()
568 bpf_prog_ksym_set_addr(struct bpf_prog *prog) in bpf_prog_ksym_set_addr()
577 bpf_prog_ksym_set_name(struct bpf_prog *prog) in bpf_prog_ksym_set_name()
[all …]
/linux-6.8/arch/x86/net/
Dbpf_jit_comp.c266 u8 *prog = *pprog; in push_r12() local
274 u8 *prog = *pprog; in push_callee_regs() local
289 u8 *prog = *pprog; in pop_r12() local
297 u8 *prog = *pprog; in pop_callee_regs() local
312 u8 *prog = *pprog; in emit_nops() local
336 u8 *prog = *pprog; in emit_fineibt() local
350 u8 *prog = *pprog; in emit_kcfi() local
373 u8 *prog = *pprog; in emit_cfi() local
401 u8 *prog = *pprog; in emit_prologue() local
448 u8 *prog = *pprog; in emit_patch() local
[all …]
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-6.8/drivers/clk/at91/
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-6.8/tools/testing/selftests/bpf/prog_tests/
Dtailcalls.c16 struct bpf_program *prog; in test_tailcall_1() local
152 struct bpf_program *prog; in test_tailcall_2() local
231 struct bpf_program *prog; in test_tailcall_count() local
412 struct bpf_program *prog; in test_tailcall_4() local
502 struct bpf_program *prog; in test_tailcall_5() local
592 struct bpf_program *prog; in test_tailcall_bpf2bpf_1() local
676 struct bpf_program *prog; in test_tailcall_bpf2bpf_2() local
756 struct bpf_program *prog; in test_tailcall_bpf2bpf_3() local
851 struct bpf_program *prog; in test_tailcall_bpf2bpf_4() local
1015 struct bpf_program *prog; in test_tailcall_bpf2bpf_fentry_entry() local
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()
/linux-6.8/drivers/media/rc/
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-6.8/drivers/net/ethernet/netronome/nfp/bpf/
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()
484 bool nfp_bpf_offload_check_mtu(struct nfp_net *nn, struct bpf_prog *prog, in nfp_bpf_offload_check_mtu()
496 nfp_net_bpf_load(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_load()
575 int nfp_net_bpf_offload(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_offload()
/linux-6.8/include/net/
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-6.8/drivers/net/netdevsim/
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-6.8/include/linux/
Dbpf_lsm.h55 static inline bool bpf_lsm_is_trusted(const struct bpf_prog *prog) in bpf_lsm_is_trusted()
61 const struct bpf_prog *prog) in bpf_lsm_verify_prog()
76 static inline void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, in bpf_lsm_find_cgroup_shim()
/linux-6.8/tools/lib/bpf/
Dlibbpf.c709 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
720 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
757 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
822 struct bpf_program *prog, *progs; in bpf_object__add_programs() local
1082 struct bpf_program *prog; in bpf_map__init_kern_struct_ops() local
3068 static bool prog_needs_vmlinux_btf(struct bpf_program *prog) in prog_needs_vmlinux_btf()
3090 struct bpf_program *prog; in obj_needs_vmlinux_btf() local
3172 struct bpf_program *prog = &obj->programs[i]; in bpf_object__sanitize_and_load_btf() local
4040 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog) in prog_is_subprog()
4049 struct bpf_program *prog; in bpf_object__find_program_by_name() local
[all …]
/linux-6.8/samples/hid/
Dhid_surface_dial.c49 static void usage(const char *prog) in usage()
89 static int attach_prog(struct hid_surface_dial *skel, struct bpf_program *prog, int hid_id) in attach_prog()
147 struct bpf_program *prog; in main() local
/linux-6.8/arch/riscv/net/
Dbpf_jit_core.c20 const struct bpf_prog *prog = ctx->prog; in build_body() local
44 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile()
259 void bpf_jit_free(struct bpf_prog *prog) in bpf_jit_free()
/linux-6.8/net/netfilter/
Dnf_bpf_link.c14 const struct bpf_prog *prog = bpf_prog; in nf_hook_run_bpf() local
207 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_nf_link_attach()
287 const struct bpf_prog *prog, in nf_is_valid_access()
315 bpf_nf_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_nf_func_proto()

12345678910>>...15