Home
last modified time | relevance | path

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

12345678910>>...15

/linux/net/sched/
H A Dcls_bpf.c87 struct cls_bpf_prog *prog; in cls_bpf_classify() local
138 cls_bpf_is_ebpf(const struct cls_bpf_prog * prog) cls_bpf_is_ebpf() argument
143 cls_bpf_offload_cmd(struct tcf_proto * tp,struct cls_bpf_prog * prog,struct cls_bpf_prog * oldprog,struct netlink_ext_ack * extack,bool is_rollback) cls_bpf_offload_cmd() argument
197 cls_bpf_offload(struct tcf_proto * tp,struct cls_bpf_prog * prog,struct cls_bpf_prog * oldprog,struct netlink_ext_ack * extack) cls_bpf_offload() argument
217 cls_bpf_stop_offload(struct tcf_proto * tp,struct cls_bpf_prog * prog,struct netlink_ext_ack * extack) cls_bpf_stop_offload() argument
228 cls_bpf_offload_update_stats(struct tcf_proto * tp,struct cls_bpf_prog * prog) cls_bpf_offload_update_stats() argument
258 cls_bpf_free_parms(struct cls_bpf_prog * prog) cls_bpf_free_parms() argument
269 __cls_bpf_delete_prog(struct cls_bpf_prog * prog) __cls_bpf_delete_prog() argument
280 struct cls_bpf_prog *prog = container_of(to_rcu_work(work), cls_bpf_delete_prog_work() local
288 __cls_bpf_delete(struct tcf_proto * tp,struct cls_bpf_prog * prog,struct netlink_ext_ack * extack) __cls_bpf_delete() argument
317 struct cls_bpf_prog *prog, *tmp; cls_bpf_destroy() local
329 struct cls_bpf_prog *prog; cls_bpf_get() local
339 cls_bpf_prog_from_ops(struct nlattr ** tb,struct cls_bpf_prog * prog) cls_bpf_prog_from_ops() argument
376 cls_bpf_prog_from_efd(struct nlattr ** tb,struct cls_bpf_prog * prog,u32 gen_flags,const struct tcf_proto * tp,struct netlink_ext_ack * extack) cls_bpf_prog_from_efd() argument
434 struct cls_bpf_prog *prog; cls_bpf_change() local
554 cls_bpf_dump_bpf_info(const struct cls_bpf_prog * prog,struct sk_buff * skb) cls_bpf_dump_bpf_info() argument
572 cls_bpf_dump_ebpf_info(const struct cls_bpf_prog * prog,struct sk_buff * skb) cls_bpf_dump_ebpf_info() argument
596 struct cls_bpf_prog *prog = fh; cls_bpf_dump() local
649 struct cls_bpf_prog *prog = fh; cls_bpf_bind_class() local
658 struct cls_bpf_prog *prog; cls_bpf_walk() local
672 struct cls_bpf_prog *prog; cls_bpf_reoffload() local
[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() argument
97 static int tcf_bpf_dump_bpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_bpf_info() argument
115 tcf_bpf_dump_ebpf_info(const struct tcf_bpf * prog,struct sk_buff * skb) tcf_bpf_dump_ebpf_info() argument
140 struct tcf_bpf *prog = to_bpf(act); tcf_bpf_dump() local
264 tcf_bpf_prog_fill_cfg(const struct tcf_bpf * prog,struct tcf_bpf_cfg * cfg) tcf_bpf_prog_fill_cfg() argument
288 struct tcf_bpf *prog; tcf_bpf_init() local
[all...]
/linux/arch/x86/net/
H A Dbpf_jit_comp.c334 u8 *prog = *pprog; in push_r9() local
342 u8 *prog = *pprog; in pop_r9() local
350 u8 *prog = *pprog; in push_r12() local
358 u8 *prog = *pprog; in push_callee_regs() local
373 u8 *prog = *pprog; in pop_r12() local
381 u8 *prog = *pprog; in pop_callee_regs() local
397 u8 *prog = *pprog; in emit_add_rsp() local
411 u8 *prog = *pprog; in emit_sub_rsp() local
424 u8 *prog = *pprog; in emit_nops() local
449 u8 *prog = *pprog; in emit_fineibt() 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/include/linux/
H A Dbpf_lsm.h68 static inline bool bpf_lsm_is_trusted(const struct bpf_prog *prog) in bpf_lsm_is_trusted()
74 const struct bpf_prog *prog) in bpf_lsm_verify_prog()
89 static inline void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, in bpf_lsm_find_cgroup_shim()
94 static inline int bpf_lsm_get_retval_range(const struct bpf_prog *prog, in bpf_lsm_get_retval_range()
108 static inline bool bpf_lsm_has_d_inode_locked(const struct bpf_prog *prog) in bpf_lsm_has_d_inode_locked()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlibarena.c13 static void run_libarena_test(struct libarena *skel, struct bpf_program *prog, in run_libarena_test()
36 struct bpf_program *prog = arg; in run_libarena_parallel_prog() local
149 struct bpf_program *prog; in libarena_parallel_test_enabled() local
170 static void run_libarena_parallel_test(struct libarena *skel, struct bpf_program *prog, in run_libarena_parallel_test()
225 struct bpf_program *prog; in serial_test_libarena() local
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 Dtailcalls.c27 struct bpf_program *prog; in test_tailcall_1() local
163 struct bpf_program *prog; in test_tailcall_2() local
242 struct bpf_program *prog; in test_tailcall_count() local
423 struct bpf_program *prog; in test_tailcall_4() local
513 struct bpf_program *prog; in test_tailcall_5() local
603 struct bpf_program *prog; in test_tailcall_bpf2bpf_1() local
687 struct bpf_program *prog; in test_tailcall_bpf2bpf_2() local
767 struct bpf_program *prog; in test_tailcall_bpf2bpf_3() local
862 struct bpf_program *prog; in test_tailcall_bpf2bpf_4() local
1026 struct bpf_program *prog; in test_tailcall_bpf2bpf_fentry_entry() local
[all …]
H A Dtask_kfunc.c39 struct bpf_program *prog; in run_success_test() local
75 struct bpf_program *prog; in run_syscall_success_test() local
104 struct bpf_program *prog; in run_vpid_test() local
/linux/kernel/bpf/
H A Dtrampoline.c177 bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline()
541 const struct bpf_prog *prog; in bpf_tramp_arena_base() local
819 static enum bpf_tramp_prog_type bpf_attach_type_to_tramp(struct bpf_prog *prog) in bpf_attach_type_to_tramp()
1069 static struct bpf_shim_tramp_link *cgroup_shim_alloc(const struct bpf_prog *prog, in cgroup_shim_alloc()
1123 int bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog, in bpf_trampoline_link_cgroup_shim()
1188 void bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog) in bpf_trampoline_unlink_cgroup_shim()
1288 static u64 notrace __bpf_prog_enter_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) in __bpf_prog_enter_recur()
1304 static void notrace __update_prog_stats(struct bpf_prog *prog, u64 start) in __update_prog_stats()
1325 static __always_inline void notrace update_prog_stats(struct bpf_prog *prog, in update_prog_stats()
1332 static void notrace __bpf_prog_exit_recur(struct bpf_prog *prog, u64 start, in __bpf_prog_exit_recur()
[all …]
H A Dsyscall.c2354 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type()
2384 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op) in bpf_audit_prog()
2403 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_alloc_id()
2422 void bpf_prog_free_id(struct bpf_prog *prog) in bpf_prog_free_id()
2451 static void __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred) in __bpf_prog_put_noref()
2476 struct bpf_prog *prog; in bpf_prog_put_deferred() local
2486 static void __bpf_prog_put(struct bpf_prog *prog) in __bpf_prog_put()
2500 void bpf_prog_put(struct bpf_prog *prog) in bpf_prog_put()
2508 struct bpf_prog *prog = filp->private_data; in bpf_prog_release() local
2520 void notrace bpf_prog_inc_misses_counter(struct bpf_prog *prog) in bpf_prog_inc_misses_counter()
[all …]
H A Dcgroup.c90 const struct bpf_prog *prog; in bpf_prog_run_array_cg() local
259 struct bpf_prog *prog, in bpf_cgroup_storages_alloc()
644 struct bpf_prog *prog, in find_attach_entry()
694 struct bpf_prog *prog = ERR_PTR(-EINVAL); in bpf_get_anchor_prog() local
703 static struct bpf_prog_list *get_prog_list(struct hlist_head *progs, struct bpf_prog *prog, in get_prog_list()
772 struct bpf_prog *prog, struct bpf_cgroup_link *link, in insert_pl_to_hlist()
807 struct bpf_prog *prog, struct bpf_prog *replace_prog, in __cgroup_bpf_attach()
936 struct bpf_prog *prog, struct bpf_prog *replace_prog, in cgroup_bpf_attach()
1116 struct bpf_prog *prog, in find_detach_entry()
1197 static int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, in __cgroup_bpf_detach()
[all …]
H A Dbpf_lsm.c120 const struct bpf_prog *prog) in bpf_lsm_verify_prog()
174 static bool bpf_ima_inode_hash_allowed(const struct bpf_prog *prog) in bpf_ima_inode_hash_allowed()
228 bpf_lsm_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_lsm_func_proto()
408 bool bpf_lsm_is_trusted(const struct bpf_prog *prog) in bpf_lsm_is_trusted()
452 int bpf_lsm_get_retval_range(const struct bpf_prog *prog, in bpf_lsm_get_retval_range()
H A Dcore.c154 struct bpf_prog *prog; in bpf_prog_alloc() local
179 int bpf_prog_alloc_jited_linfo(struct bpf_prog *prog) in bpf_prog_alloc_jited_linfo()
193 void bpf_prog_jit_attempt_done(struct bpf_prog *prog) in bpf_prog_jit_attempt_done()
229 void bpf_prog_fill_jited_linfo(struct bpf_prog *prog, in bpf_prog_fill_jited_linfo()
389 static int bpf_adj_branches(struct bpf_prog *prog, u32 pos, s32 end_old, in bpf_adj_branches()
436 static void bpf_adj_linfo(struct bpf_prog *prog, u32 off, u32 delta) in bpf_adj_linfo()
456 struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, in bpf_patch_insn_single()
517 int bpf_remove_insns(struct bpf_prog *prog, u32 off, u32 cnt) in bpf_remove_insns()
556 bpf_prog_ksym_set_addr(struct bpf_prog *prog) in bpf_prog_ksym_set_addr()
565 bpf_prog_ksym_set_name(struct bpf_prog *prog) in bpf_prog_ksym_set_name()
[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 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()
H A Dbpf_iter.c25 struct bpf_prog *prog; member
332 struct bpf_prog *prog) in cache_btf_id()
337 int bpf_iter_prog_supported(struct bpf_prog *prog) in bpf_iter_prog_supported()
370 bpf_iter_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_iter_get_func_proto()
505 struct bpf_prog *prog) in bpf_iter_link_attach()
579 struct bpf_prog *prog) in init_seq_meta()
594 struct bpf_prog *prog; in prepare_seq_file() local
680 int bpf_iter_run_prog(struct bpf_prog *prog, void *ctx) in bpf_iter_run_prog()
H A Dfixups.c24 static bool is_addr_space_cast32(struct bpf_prog *prog, const struct bpf_insn *insn) in is_addr_space_cast32()
63 static bool bpf_is_reg64(struct bpf_prog *prog, struct bpf_insn *insn) in bpf_is_reg64()
104 int bpf_insn_def32(struct bpf_prog *prog, struct bpf_insn *insn) in bpf_insn_def32()
127 bpf_jit_find_kfunc_model(const struct bpf_prog *prog, in bpf_jit_find_kfunc_model()
290 static void adjust_poke_descs(struct bpf_prog *prog, u32 off, u32 len) in adjust_poke_descs()
340 static int adjust_jmp_off(struct bpf_prog *prog, u32 tgt_idx, u32 delta) in adjust_jmp_off()
437 struct bpf_prog *prog = env->prog; in bpf_adj_linfo_after_remove() local
1068 struct bpf_prog *prog = env->prog, **func, *tmp; in jit_subprogs() local
1339 struct bpf_prog *prog, *orig_prog; in bpf_jit_subprogs() local
1408 struct bpf_prog *prog = env->prog; in bpf_fixup_call_args() local
[all …]
/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()
149 nfp_prog_prepare(struct nfp_prog *nfp_prog, const struct bpf_insn *prog, in nfp_prog_prepare()
189 static int nfp_bpf_verifier_prep(struct bpf_prog *prog) in nfp_bpf_verifier_prep()
217 static int nfp_bpf_translate(struct bpf_prog *prog) in nfp_bpf_translate()
245 static void nfp_bpf_destroy(struct bpf_prog *prog) in nfp_bpf_destroy()
483 bool nfp_bpf_offload_check_mtu(struct nfp_net *nn, struct bpf_prog *prog, in nfp_bpf_offload_check_mtu()
495 nfp_net_bpf_load(struct nfp_net *nn, struct bpf_prog *prog, in nfp_net_bpf_load()
574 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/tools/lib/bpf/
H A Dlibbpf.c775 struct bpf_program *prog; member
798 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
810 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
847 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
912 struct bpf_program *prog, *progs; in bpf_object__add_programs() local
996 struct bpf_program *prog = obj->programs; in bpf_object_bswap_progs() local
1115 const struct bpf_program *prog) in is_valid_st_ops_program()
1134 struct bpf_program *prog, *slot_prog; in bpf_object_adjust_struct_ops_autoload() local
1219 struct bpf_program *prog; in bpf_map__init_kern_struct_ops() local
3561 static bool prog_needs_vmlinux_btf(struct bpf_program *prog) in prog_needs_vmlinux_btf()
[all …]
/linux/arch/riscv/net/
H A Dbpf_jit_core.c21 const struct bpf_prog *prog = ctx->prog; in build_body() local
44 struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog) in bpf_int_jit_compile()
224 void bpf_jit_free(struct bpf_prog *prog) in bpf_jit_free()
/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()

12345678910>>...15