Home
last modified time | relevance | path

Searched refs:prog (Results 1 – 25 of 499) sorted by relevance

12345678910>>...20

/linux/net/sched/
H A Dcls_bpf.c87 struct cls_bpf_prog *prog; in cls_bpf_classify() local
90 list_for_each_entry_rcu(prog, &head->plist, link) { in cls_bpf_classify()
93 qdisc_skb_cb(skb)->tc_classid = prog->res.classid; in cls_bpf_classify()
95 if (tc_skip_sw(prog->gen_flags)) { in cls_bpf_classify()
96 filter_res = prog->exts_integrated ? TC_ACT_UNSPEC : 0; in cls_bpf_classify()
100 filter_res = bpf_prog_run_data_pointers(prog->filter, skb); in cls_bpf_classify()
103 filter_res = bpf_prog_run_data_pointers(prog->filter, skb); in cls_bpf_classify()
108 if (prog->exts_integrated) { in cls_bpf_classify()
110 res->classid = TC_H_MAJ(prog->res.classid) | in cls_bpf_classify()
125 *res = prog in cls_bpf_classify()
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
44 tcf_lastuse_update(&prog->tcf_tm); in tcf_bpf_act()
45 bstats_update(this_cpu_ptr(prog->common.cpu_bstats), skb); in tcf_bpf_act()
47 filter = rcu_dereference_bh(prog->filter); in tcf_bpf_act()
79 qstats_cpu_drop_inc(prog->common.cpu_qstats); in tcf_bpf_act()
82 action = prog->tcf_action; in tcf_bpf_act()
92 static bool tcf_bpf_is_ebpf(const struct tcf_bpf *prog) in tcf_bpf_is_ebpf() argument
94 return !prog->bpf_ops; in tcf_bpf_is_ebpf()
97 static int tcf_bpf_dump_bpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_bpf_info() argument
102 if (nla_put_u16(skb, TCA_ACT_BPF_OPS_LEN, prog->bpf_num_ops)) in tcf_bpf_dump_bpf_info()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dexceptions.c45 ASSERT_OK(ret, #_prog " prog run ret"); \ in test_exceptions_success()
46 ASSERT_EQ(ropts.retval, return_val, #_prog " prog run retval"); \ in test_exceptions_success()
104 struct bpf_program *prog = NULL; \ in test_exceptions_success()
109 ASSERT_OK_PTR(bpf_program__name(prog), bpf_program__name(prog)); \ in test_exceptions_success()
122 if (!ASSERT_ERR_PTR(link = bpf_program__attach(prog), "attach err")) \ in test_exceptions_success()
125 if (!ASSERT_OK_PTR(link = bpf_program__attach(prog), "attach ok")) \ in test_exceptions_success()
134 prog = eskel->progs.pfentry; in test_exceptions_success()
135 bpf_program__set_autoload(prog, true); in test_exceptions_success()
136 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success()
[all...]
H A Dtailcalls.c29 struct bpf_program *prog; in test_tailcall_1()
44 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_1()
45 if (CHECK_FAIL(!prog)) in test_tailcall_1()
48 main_fd = bpf_program__fd(prog); in test_tailcall_1()
63 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1()
64 if (CHECK_FAIL(!prog)) in test_tailcall_1()
67 prog_fd = bpf_program__fd(prog); in test_tailcall_1()
93 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1()
94 if (CHECK_FAIL(!prog)) in test_tailcall_1()
97 prog_fd = bpf_program__fd(prog); in test_tailcall_1()
27 struct bpf_program *prog; test_tailcall_1() local
163 struct bpf_program *prog; test_tailcall_2() local
242 struct bpf_program *prog; test_tailcall_count() local
423 struct bpf_program *prog; test_tailcall_4() local
513 struct bpf_program *prog; test_tailcall_5() local
603 struct bpf_program *prog; test_tailcall_bpf2bpf_1() local
687 struct bpf_program *prog; test_tailcall_bpf2bpf_2() local
767 struct bpf_program *prog; test_tailcall_bpf2bpf_3() local
862 struct bpf_program *prog; test_tailcall_bpf2bpf_4() local
1026 struct bpf_program *prog; test_tailcall_bpf2bpf_fentry_entry() local
1208 struct bpf_program *prog, *fentry_prog; test_tailcall_hierarchy_count() local
[all...]
H A Dtrampoline_count.c13 struct bpf_program *prog; in load_prog() local
26 prog = bpf_object__find_program_by_name(obj, name); in load_prog()
27 if (!ASSERT_OK_PTR(prog, "obj_find_prog")) in load_prog()
30 return prog; in load_prog()
38 struct bpf_program *prog; in serial_test_trampoline_count()
51 prog = load_prog(file, progs[i % ARRAY_SIZE(progs)], &inst[i]); in serial_test_trampoline_count()
52 if (!prog) in serial_test_trampoline_count()
55 link = bpf_program__attach(prog); in serial_test_trampoline_count()
63 prog = load_prog(file, "fmod_ret_test", &inst[i]); in serial_test_trampoline_count()
64 if (!prog) in serial_test_trampoline_count()
39 struct bpf_program *prog; serial_test_trampoline_count() local
[all...]
H A Dtrace_ext.c24 struct bpf_program *prog; in test_trace_ext() local
42 prog = skel_pkt->progs.test_pkt_md_access; in test_trace_ext()
43 pkt_fd = bpf_program__fd(prog); in test_trace_ext()
51 prog = skel_ext->progs.test_pkt_md_access_new; in test_trace_ext()
52 bpf_program__set_attach_target(prog, pkt_fd, "test_pkt_md_access"); in test_trace_ext()
66 prog = skel_ext->progs.test_pkt_md_access_new; in test_trace_ext()
67 ext_fd = bpf_program__fd(prog); in test_trace_ext()
75 prog = skel_trace->progs.fentry; in test_trace_ext()
76 bpf_program__set_attach_target(prog, ext_fd, "test_pkt_md_access_new"); in test_trace_ext()
79 prog = skel_trace->progs.fexit; in test_trace_ext()
[all …]
/linux/arch/x86/net/
H A Dbpf_jit_comp.c69 do { prog = emit_code(prog, bytes, len); } while (0) in is_imm8()
321 u8 *prog = *pprog;
324 *pprog = prog;
329 u8 *prog = *pprog;
332 *pprog = prog;
337 u8 *prog = *pprog; in push_r9()
340 *pprog = prog;
345 u8 *prog = *pprog; in pop_r9()
355 *pprog = prog; in push_r12()
335 u8 *prog = *pprog; push_r9() local
343 u8 *prog = *pprog; pop_r9() local
351 u8 *prog = *pprog; push_r12() local
359 u8 *prog = *pprog; push_callee_regs() local
374 u8 *prog = *pprog; pop_r12() local
382 u8 *prog = *pprog; pop_callee_regs() local
398 u8 *prog = *pprog; emit_add_rsp() local
412 u8 *prog = *pprog; emit_sub_rsp() local
425 u8 *prog = *pprog; emit_nops() local
450 u8 *prog = *pprog; emit_fineibt() local
467 u8 *prog = *pprog; emit_kcfi() local
481 u8 *prog = *pprog; emit_cfi() local
502 u8 *prog = *pprog; emit_prologue_tail_call() local
540 u8 *prog = *pprog; emit_prologue() local
591 u8 *prog = *pprog; emit_patch() local
628 u8 *prog; __bpf_arch_text_poke() local
688 u8 *prog = *pprog; __emit_indirect_jump() local
700 u8 *prog = *pprog; emit_indirect_jump() local
727 u8 *prog = *pprog; emit_return() local
762 u8 *prog = *pprog, *start = *pprog; emit_bpf_tail_call_indirect() local
851 u8 *prog = *pprog, *start = *pprog; emit_bpf_tail_call_direct() local
901 bpf_tail_call_direct_fixup(struct bpf_prog * prog) bpf_tail_call_direct_fixup() argument
942 u8 *prog = *pprog; emit_mov_imm32() local
983 u8 *prog = *pprog; emit_mov_imm64() local
1007 u8 *prog = *pprog; emit_mov_reg() local
1025 u8 *prog = *pprog; emit_movsx_reg() local
1057 u8 *prog = *pprog; emit_insn_suffix() local
1076 u8 *prog = *pprog; emit_insn_suffix_SIB() local
1091 u8 *prog = *pprog; maybe_emit_mod() local
1105 u8 *prog = *pprog; maybe_emit_1mod() local
1117 u8 *prog = *pprog; emit_ldx() local
1147 u8 *prog = *pprog; emit_ldsx() local
1169 u8 *prog = *pprog; emit_ldx_index() local
1195 u8 *prog = *pprog; emit_ldsx_index() local
1220 emit_ldsx_r12(u8 ** prog,u32 size,u32 dst_reg,u32 src_reg,int off) emit_ldsx_r12() argument
1228 u8 *prog = *pprog; emit_stx() local
1262 u8 *prog = *pprog; emit_stx_index() local
1294 u8 *prog = *pprog; emit_st_index() local
1337 u8 *prog = *pprog; emit_atomic_rmw() local
1380 u8 *prog = *pprog; emit_atomic_rmw_index() local
1569 u8 *prog = *pprog; emit_3vex() local
1605 u8 *prog = *pprog; emit_shiftx() local
1616 u8 *prog = *pprog; emit_priv_frame_ptr() local
1647 u8 *prog = *pprog; emit_spectre_bhb_barrier() local
1696 u8 *prog = *pprog; emit_kfunc_arena_args() local
1745 u8 *ip, *prog = temp; do_jit() local
3011 u8 *prog; clean_stack_garbage() local
3080 u8 *prog = *pprog; emit_arena_arg_conv() local
3097 save_args(const struct btf_func_model * m,u8 ** prog,int stack_size,bool for_call_origin,u32 flags,u64 arena_base) save_args() argument
3187 restore_regs(const struct btf_func_model * m,u8 ** prog,int stack_size) restore_regs() argument
3225 u8 *prog = *pprog; invoke_bpf_prog() local
3317 u8 *target, *prog = *pprog; emit_align() local
3328 u8 *prog = *pprog; emit_cond_near_jump() local
3349 u8 *prog = *pprog; invoke_bpf() local
3371 u8 *prog = *pprog; invoke_bpf_mod_ret() local
3484 u8 *prog; __arch_prepare_bpf_trampoline() local
3843 u8 *jg_reloc, *prog = *pprog; emit_bpf_dispatcher() local
3923 u8 *prog = buf; arch_prepare_bpf_dispatcher() local
3942 priv_stack_check_guard(void __percpu * priv_stack_ptr,int alloc_size,struct bpf_prog * prog) priv_stack_check_guard() argument
3970 bpf_int_jit_compile(struct bpf_verifier_env * env,struct bpf_prog * prog) bpf_int_jit_compile() argument
4195 bpf_jit_free(struct bpf_prog * prog) bpf_jit_free() argument
[all...]
/linux/arch/riscv/net/
H A Dbpf_jit_core.c21 const struct bpf_prog *prog = ctx->prog; in build_body() local
24 for (i = 0; i < prog->len; i++) { in build_body()
25 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body()
47 struct bpf_prog *bpf_int_jit_compile(struct bpf_verifier_env *env, struct bpf_prog *prog) in bpf_int_jit_compile()
56 if (!prog->jit_requested) in bpf_int_jit_compile()
57 return prog; in bpf_int_jit_compile()
59 jit_data = prog->aux->jit_data; in bpf_int_jit_compile()
63 return prog; in bpf_int_jit_compile()
65 prog in bpf_int_jit_compile()
44 bpf_int_jit_compile(struct bpf_verifier_env * env,struct bpf_prog * prog) bpf_int_jit_compile() argument
224 bpf_jit_free(struct bpf_prog * prog) bpf_jit_free() 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
36 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_recalc_rate()
40 regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr); in clk_programmable_recalc_rate()
53 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_determine_rate() local
54 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_determine_rate()
105 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_set_parent() local
106 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_parent()
113 if (prog->mux_table) in clk_programmable_set_parent()
114 pckr = clk_mux_index_to_val(prog->mux_table, 0, index); in clk_programmable_set_parent()
123 regmap_update_bits(prog->regmap, AT91_PMC_PCKR(prog->id), mask, pckr); in clk_programmable_set_parent()
[all …]
/linux/tools/workqueue/
H A Dwq_dump.py101 worker_pool_idr = prog['worker_pool_idr']
102 workqueues = prog['workqueues']
103 wq_unbound_cpumask = prog['wq_unbound_cpumask']
104 wq_pod_types = prog['wq_pod_types']
105 wq_affn_dfl = prog['wq_affn_dfl']
106 wq_affn_names = prog['wq_affn_names']
108 WQ_BH = prog['WQ_BH']
109 WQ_UNBOUND = prog['WQ_UNBOUND']
110 WQ_ORDERED = prog['__WQ_ORDERED']
111 WQ_MEM_RECLAIM = prog['WQ_MEM_RECLAIM']
[all …]
/linux/kernel/bpf/
H A Dmprog.c20 if (type && link->prog->type != type) { in bpf_mprog_link()
26 tuple->prog = link->prog; in bpf_mprog_link()
34 struct bpf_prog *prog = ERR_PTR(-EINVAL); in bpf_mprog_prog() local
38 prog = bpf_prog_by_id(id_or_fd); in bpf_mprog_prog()
40 prog = bpf_prog_get(id_or_fd); in bpf_mprog_prog()
41 if (IS_ERR(prog)) in bpf_mprog_prog()
42 return PTR_ERR(prog); in bpf_mprog_prog()
43 if (type && prog->type != type) { in bpf_mprog_prog()
44 bpf_prog_put(prog); in bpf_mprog_prog()
49 tuple->prog = prog; in bpf_mprog_prog()
[all …]
H A Dfixups.c28 static bool is_addr_space_cast32(struct bpf_prog *prog, const struct bpf_insn *insn)
30 struct bpf_map *arena = (struct bpf_map *)prog->aux->arena; in is_addr_space_cast32() argument
67 static bool bpf_is_reg64(struct bpf_prog *prog, struct bpf_insn *insn)
84 if (is_addr_space_cast32(prog, insn)) in bpf_is_reg64()
108 int bpf_insn_def32(struct bpf_prog *prog, struct bpf_insn *insn)
112 if (dst_reg < 0 || bpf_is_reg64(prog, insn)) in bpf_insn_def32()
119 bpf_jit_find_kfunc_model(const struct bpf_prog *prog,
125 tab = prog->aux->kfunc_tab; in kfunc_desc_cmp_by_imm_off()
173 /* single env->prog->insni[off] instruction was replaced with the range in sort_kfunc_descs_by_imm_off()
190 * original insn at old prog in add_kfunc_in_insns()
69 bpf_is_reg64(struct bpf_prog * prog,struct bpf_insn * insn) bpf_is_reg64() argument
110 bpf_insn_def32(struct bpf_prog * prog,struct bpf_insn * insn) bpf_insn_def32() argument
133 bpf_jit_find_kfunc_model(const struct bpf_prog * prog,const struct bpf_insn * insn) bpf_jit_find_kfunc_model() argument
296 adjust_poke_descs(struct bpf_prog * prog,u32 off,u32 len) adjust_poke_descs() argument
362 adjust_jmp_off(struct bpf_prog * prog,u32 tgt_idx,u32 delta) adjust_jmp_off() argument
459 struct bpf_prog *prog = env->prog; bpf_adj_linfo_after_remove() local
1093 struct bpf_prog *prog = env->prog, **func, *tmp; jit_subprogs() local
1364 struct bpf_prog *prog, *orig_prog; bpf_jit_subprogs() local
1433 struct bpf_prog *prog = env->prog; bpf_fixup_call_args() local
1508 struct bpf_prog *prog; add_hidden_subprog() local
1535 struct bpf_prog *prog = env->prog; bpf_do_misc_fixups() local
[all...]
H A Dsyscall.c2373 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog)
2384 if (!bpf_prog_is_offloaded(prog->aux)) in bpf_audit_prog() argument
2385 prog->aux->ops = ops; in bpf_audit_prog()
2387 prog->aux->ops = &bpf_offload_prog_ops; in bpf_audit_prog()
2388 prog->type = type; in bpf_audit_prog()
2403 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op) in bpf_prog_alloc_id() argument
2417 audit_log_format(ab, "prog-id=%u op=%s", in bpf_prog_alloc_id()
2418 prog->aux->id, bpf_audit_str[op]); in bpf_prog_alloc_id()
2422 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_free_id() argument
2428 id = idr_alloc_cyclic(&prog_idr, prog, in bpf_prog_free_id()
2354 find_prog_type(enum bpf_prog_type type,struct bpf_prog * prog) find_prog_type() argument
2458 struct bpf_prog *prog = container_of(rcu, struct bpf_prog_aux, rcu)->prog; __bpf_prog_put_rcu_tasks() local
2466 __bpf_prog_put_noref(struct bpf_prog * prog,bool deferred) __bpf_prog_put_noref() argument
2493 struct bpf_prog *prog; bpf_prog_put_deferred() local
2503 __bpf_prog_put(struct bpf_prog * prog) __bpf_prog_put() argument
2517 bpf_prog_put(struct bpf_prog * prog) bpf_prog_put() argument
2525 struct bpf_prog *prog = filp->private_data; bpf_prog_release() local
2537 bpf_prog_inc_misses_counter(struct bpf_prog * prog) bpf_prog_inc_misses_counter() argument
2551 bpf_prog_get_stats(const struct bpf_prog * prog,struct bpf_prog_kstats * stats) bpf_prog_get_stats() argument
2581 const struct bpf_prog *prog = filp->private_data; bpf_prog_show_fdinfo() local
2618 bpf_prog_new_fd(struct bpf_prog * prog) bpf_prog_new_fd() argument
2630 bpf_prog_add(struct bpf_prog * prog,int i) bpf_prog_add() argument
2636 bpf_prog_sub(struct bpf_prog * prog,int i) bpf_prog_sub() argument
2647 bpf_prog_inc(struct bpf_prog * prog) bpf_prog_inc() argument
2654 bpf_prog_inc_not_zero(struct bpf_prog * prog) bpf_prog_inc_not_zero() argument
2667 bpf_prog_get_ok(struct bpf_prog * prog,enum bpf_prog_type * attach_type,bool attach_drv) bpf_prog_get_ok() argument
2686 struct bpf_prog *prog; __bpf_prog_get() local
2909 bpf_prog_mark_insn_arrays_ready(struct bpf_prog * prog) bpf_prog_mark_insn_arrays_ready() argument
2937 struct bpf_prog *prog, *dst_prog = NULL; BTF_ID_LIST_GLOBAL_SINGLE() local
3247 bpf_link_init_sleepable(struct bpf_link * link,enum bpf_link_type type,const struct bpf_link_ops * ops,struct bpf_prog * prog,enum bpf_attach_type attach_type,bool sleepable) bpf_link_init_sleepable() argument
3261 bpf_link_init(struct bpf_link * link,enum bpf_link_type type,const struct bpf_link_ops * ops,struct bpf_prog * prog,enum bpf_attach_type attach_type) bpf_link_init() argument
3268 bpf_tramp_link_init(struct bpf_tramp_link * link,enum bpf_link_type type,const struct bpf_link_ops * ops,struct bpf_prog * prog,enum bpf_attach_type attach_type,u64 cookie) bpf_tramp_link_init() argument
3427 const struct bpf_prog *prog; bpf_link_show_fdinfo() local
3651 bpf_tracing_prog_attach(struct bpf_prog * prog,int tgt_prog_fd,u32 btf_id,u64 bpf_cookie,enum bpf_attach_type attach_type) bpf_tracing_prog_attach() argument
4262 bpf_perf_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) bpf_perf_link_attach() argument
4308 bpf_perf_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) bpf_perf_link_attach() argument
4314 bpf_raw_tp_link_attach(struct bpf_prog * prog,const char __user * user_tp_name,u64 cookie,enum bpf_attach_type attach_type) bpf_raw_tp_link_attach() argument
4394 struct bpf_prog *prog; bpf_raw_tracepoint_open() local
4491 bpf_prog_attach_check_attach_type(const struct bpf_prog * prog,enum bpf_attach_type attach_type) bpf_prog_attach_check_attach_type() argument
4599 struct bpf_prog *prog; bpf_prog_attach() local
4667 struct bpf_prog *prog = NULL; bpf_prog_detach() local
4802 struct bpf_prog *prog; bpf_prog_test_run() local
4876 struct bpf_prog *prog; bpf_prog_get_curr_or_next() local
4897 struct bpf_prog *prog; bpf_prog_by_id() local
4914 struct bpf_prog *prog; bpf_prog_get_fd_by_id() local
4973 bpf_map_from_imm(const struct bpf_prog * prog,unsigned long addr,u32 * off,u32 * type) bpf_map_from_imm() argument
5024 bpf_insn_prepare_dump(const struct bpf_prog * prog,const struct cred * f_cred) bpf_insn_prepare_dump() argument
5117 bpf_prog_get_info_by_fd(struct file * file,struct bpf_prog * prog,const union bpf_attr * attr,union bpf_attr __user * uattr) bpf_prog_get_info_by_fd() argument
5500 const struct bpf_prog *prog; bpf_link_get_info_by_fd() local
5812 struct bpf_prog *prog; link_create() local
6182 struct bpf_prog *prog; bpf_prog_bind_map() local
6264 struct bpf_prog *prog; prog_stream_read() local
6284 struct bpf_prog *prog; prog_assoc_struct_ops() local
6511 syscall_prog_is_valid_access(int off,int size,enum bpf_access_type type,const struct bpf_prog * prog,struct bpf_insn_access_aux * info) syscall_prog_is_valid_access() argument
6548 struct bpf_prog * __maybe_unused prog; kern_sys_bpf() local
6599 tracing_prog_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) tracing_prog_func_proto() argument
6650 syscall_prog_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) syscall_prog_func_proto() argument
[all...]
H A Dcore.c130 fp->aux->prog = fp; in bpf_prog_alloc_no_stats()
153 struct bpf_prog *prog; in bpf_prog_alloc()
156 prog = bpf_prog_alloc_no_stats(size, gfp_extra_flags); in bpf_prog_alloc()
157 if (!prog) in bpf_prog_alloc()
160 prog->stats = alloc_percpu_gfp(struct bpf_prog_stats, gfp_flags); in bpf_prog_alloc()
161 if (!prog->stats) { in bpf_prog_alloc()
162 free_percpu(prog->active); in bpf_prog_alloc()
163 kfree(prog->aux); in bpf_prog_alloc()
164 vfree(prog); in bpf_prog_alloc()
171 pstats = per_cpu_ptr(prog in bpf_prog_alloc()
155 struct bpf_prog *prog; bpf_prog_alloc() local
180 bpf_prog_alloc_jited_linfo(struct bpf_prog * prog) bpf_prog_alloc_jited_linfo() argument
194 bpf_prog_jit_attempt_done(struct bpf_prog * prog) bpf_prog_jit_attempt_done() argument
230 bpf_prog_fill_jited_linfo(struct bpf_prog * prog,const u32 * insn_to_jit_off) bpf_prog_fill_jited_linfo() argument
390 bpf_adj_branches(struct bpf_prog * prog,u32 pos,s32 end_old,s32 end_new,const bool probe_pass) bpf_adj_branches() argument
437 bpf_adj_linfo(struct bpf_prog * prog,u32 off,u32 delta) bpf_adj_linfo() argument
457 bpf_patch_insn_single(struct bpf_prog * prog,u32 off,const struct bpf_insn * patch,u32 len) bpf_patch_insn_single() argument
518 bpf_remove_insns(struct bpf_prog * prog,u32 off,u32 cnt) bpf_remove_insns() argument
557 bpf_prog_ksym_set_addr(struct bpf_prog * prog) bpf_prog_ksym_set_addr() argument
566 bpf_prog_ksym_set_name(struct bpf_prog * prog) bpf_prog_ksym_set_name() argument
788 struct bpf_prog *prog; search_bpf_extables() local
831 bpf_jit_add_poke_descriptor(struct bpf_prog * prog,struct bpf_jit_poke_descriptor * poke) bpf_jit_add_poke_descriptor() argument
1311 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
1351 bpf_jit_get_prog_name(struct bpf_prog * prog) bpf_jit_get_prog_name() argument
1567 bpf_jit_blind_constants(struct bpf_verifier_env * env,struct bpf_prog * prog) bpf_jit_blind_constants() argument
1650 bpf_insn_is_indirect_target(const struct bpf_verifier_env * env,const struct bpf_prog * prog,int insn_idx) bpf_insn_is_indirect_target() argument
1659 bpf_out_stack_arg_cnt(const struct bpf_verifier_env * env,const struct bpf_prog * prog) bpf_out_stack_arg_cnt() argument
2174 struct bpf_prog *prog; ___bpf_prog_run() local
2637 bpf_prog_jit_compile(struct bpf_verifier_env * env,struct bpf_prog * prog) bpf_prog_jit_compile() argument
2754 struct bpf_prog prog; global() member
2921 bpf_prog_array_update_at(struct bpf_prog_array * array,int index,struct bpf_prog * prog) bpf_prog_array_update_at() argument
3232 bpf_int_jit_compile(struct bpf_verifier_env * env,struct bpf_prog * prog) bpf_int_jit_compile() argument
3240 bpf_jit_compile(struct bpf_prog * prog) bpf_jit_compile() argument
3407 struct bpf_prog *prog; bpf_prog_report_may_goto_violation() local
3488 bpf_find_linfo(const struct bpf_prog * prog,u32 insn_off) bpf_find_linfo() argument
3525 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
3573 struct bpf_prog *prog; global() member
3579 struct bpf_prog *prog; find_from_stack_cb() local
[all...]
H A Ddispatcher.c26 struct bpf_dispatcher *d, struct bpf_prog *prog) in bpf_dispatcher_find_prog() argument
31 if (prog == d->progs[i].prog) in bpf_dispatcher_find_prog()
44 struct bpf_prog *prog) in bpf_dispatcher_add_prog() argument
48 if (!prog) in bpf_dispatcher_add_prog()
51 entry = bpf_dispatcher_find_prog(d, prog); in bpf_dispatcher_add_prog()
61 bpf_prog_inc(prog); in bpf_dispatcher_add_prog()
62 entry->prog = prog; in bpf_dispatcher_add_prog()
69 struct bpf_prog *prog) in bpf_dispatcher_remove_prog() argument
73 if (!prog) in bpf_dispatcher_remove_prog()
76 entry = bpf_dispatcher_find_prog(d, prog); in bpf_dispatcher_remove_prog()
[all …]
H A Doffload.c100 * @prog takes the place of a copy that the caller is about to free. Nothing in __bpf_prog_offload_destroy()
102 * unregistration is left that has got the old copy from offload->prog. in __bpf_prog_offload_destroy()
104 void bpf_prog_dev_bound_moved(struct bpf_prog *prog) in __bpf_prog_offload_destroy()
106 if (!bpf_prog_is_dev_bound(prog->aux)) in __bpf_prog_offload_destroy()
110 if (prog->aux->offload)
111 prog->aux->offload->prog = prog; in bpf_map_offload_ndo()
115 static void __bpf_prog_offload_destroy(struct bpf_prog *prog) in bpf_map_offload_ndo()
117 struct bpf_prog_offload *offload = prog in bpf_map_offload_ndo()
99 __bpf_prog_offload_destroy(struct bpf_prog * prog) __bpf_prog_offload_destroy() argument
179 __bpf_prog_dev_bound_init(struct bpf_prog * prog,struct net_device * netdev) __bpf_prog_dev_bound_init() argument
219 bpf_prog_dev_bound_init(struct bpf_prog * prog,union bpf_attr * attr) bpf_prog_dev_bound_init() argument
287 bpf_prog_offload_verifier_prep(struct bpf_prog * prog) bpf_prog_offload_verifier_prep() argument
372 bpf_prog_dev_bound_destroy(struct bpf_prog * prog) bpf_prog_dev_bound_destroy() argument
393 bpf_prog_offload_translate(struct bpf_prog * prog) bpf_prog_offload_translate() argument
414 bpf_prog_offload_compile(struct bpf_prog * prog) bpf_prog_offload_compile() argument
422 struct bpf_prog *prog; global() member
452 bpf_prog_offload_info_fill(struct bpf_prog_info * info,struct bpf_prog * prog) bpf_prog_offload_info_fill() argument
687 __bpf_offload_dev_match(struct bpf_prog * prog,struct net_device * netdev) __bpf_offload_dev_match() argument
710 bpf_offload_dev_match(struct bpf_prog * prog,struct net_device * netdev) bpf_offload_dev_match() argument
738 bpf_offload_prog_map_match(struct bpf_prog * prog,struct bpf_map * map) bpf_offload_prog_map_match() argument
834 bpf_dev_bound_resolve_kfunc(struct bpf_prog * prog,u32 func_id) bpf_dev_bound_resolve_kfunc() argument
[all...]
H A Dprog_iter.c16 struct bpf_prog *prog; in bpf_prog_seq_start() local
18 prog = bpf_prog_get_curr_or_next(&info->prog_id); in bpf_prog_seq_start()
19 if (!prog) in bpf_prog_seq_start()
24 return prog; in bpf_prog_seq_start()
39 __bpf_md_ptr(struct bpf_prog *, prog);
42 DEFINE_BPF_ITER_FUNC(bpf_prog, struct bpf_iter_meta *meta, struct bpf_prog *prog) in DEFINE_BPF_ITER_FUNC() argument
48 struct bpf_prog *prog; in DEFINE_BPF_ITER_FUNC() local
52 ctx.prog = v; in DEFINE_BPF_ITER_FUNC()
54 prog = bpf_iter_get_info(&meta, in_stop); in DEFINE_BPF_ITER_FUNC()
55 if (prog) in DEFINE_BPF_ITER_FUNC()
[all …]
H A Dtrampoline.c177 bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline() argument
179 enum bpf_attach_type eatype = prog->expected_attach_type; in bpf_prog_has_trampoline()
180 enum bpf_prog_type ptype = prog->type; in bpf_prog_has_trampoline()
519 *ip_arg |= node->link->prog->call_get_func_ip; in bpf_trampoline_get_progs()
529 * converts: it dispatches to a single prog whose arena is known at in bpf_trampoline_get_progs()
535 const struct bpf_prog *prog;
549 prog = tnodes[BPF_TRAMP_FENTRY].nodes[0]->link->prog; in bpf_tramp_arena_base()
550 if (WARN_ON_ONCE(!prog->aux->arena)) in bpf_tramp_arena_base()
553 return bpf_arena_get_kern_vm_start(prog in bpf_tramp_arena_base()
542 const struct bpf_prog *prog; bpf_tramp_arena_base() local
835 bpf_attach_type_to_tramp(struct bpf_prog * prog) bpf_attach_type_to_tramp() argument
956 bpf_trampoline_skip_prog(struct bpf_trampoline * tr,struct bpf_prog * prog) bpf_trampoline_skip_prog() argument
1122 cgroup_shim_alloc(const struct bpf_prog * prog,bpf_func_t bpf_func,int cgroup_atype,enum bpf_attach_type attach_type) cgroup_shim_alloc() argument
1176 bpf_trampoline_link_cgroup_shim(struct bpf_prog * prog,int cgroup_atype,enum bpf_attach_type attach_type) bpf_trampoline_link_cgroup_shim() argument
1241 bpf_trampoline_unlink_cgroup_shim(struct bpf_prog * prog) bpf_trampoline_unlink_cgroup_shim() argument
1339 __bpf_prog_enter_recur(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_recur() argument
1355 __update_prog_stats(struct bpf_prog * prog,u64 start) __update_prog_stats() argument
1376 update_prog_stats(struct bpf_prog * prog,u64 start) update_prog_stats() argument
1383 __bpf_prog_exit_recur(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_recur() argument
1394 __bpf_prog_enter_lsm_cgroup(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_lsm_cgroup() argument
1408 __bpf_prog_exit_lsm_cgroup(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_lsm_cgroup() argument
1417 __bpf_prog_enter_sleepable_recur(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_sleepable_recur() argument
1435 __bpf_prog_exit_sleepable_recur(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_sleepable_recur() argument
1446 __bpf_prog_enter_sleepable(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter_sleepable() argument
1458 __bpf_prog_exit_sleepable(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit_sleepable() argument
1468 __bpf_prog_enter(struct bpf_prog * prog,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_enter() argument
1479 __bpf_prog_exit(struct bpf_prog * prog,u64 start,struct bpf_tramp_run_ctx * run_ctx) __bpf_prog_exit() argument
1499 bpf_trampoline_enter(const struct bpf_prog * prog) bpf_trampoline_enter() argument
1514 bpf_trampoline_exit(const struct bpf_prog * prog) bpf_trampoline_exit() argument
1720 bpf_trampoline_multi_attach(struct bpf_prog * prog,u32 * ids,struct bpf_tracing_multi_link * link) bpf_trampoline_multi_attach() argument
1820 bpf_trampoline_multi_detach(struct bpf_prog * prog,struct bpf_tracing_multi_link * link) bpf_trampoline_multi_detach() argument
[all...]
H A Dcheck_btf.c39 struct bpf_prog *prog; in prepare_btf_func() local
60 prog = env->prog; in prepare_btf_func()
61 btf = prog->aux->btf; in prepare_btf_func()
124 prog->aux->func_info = krecord; in prepare_btf_func()
125 prog->aux->func_info_cnt = nfuncs; in prepare_btf_func()
141 struct bpf_prog *prog; in check_btf_func() local
160 prog = env->prog; in check_btf_func()
161 btf = prog->aux->btf; in check_btf_func()
165 krecord = prog->aux->func_info; in check_btf_func()
202 prog->aux->func_info_aux = info_aux; in check_btf_func()
[all …]
H A Dbpf_lsm.c94 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, in BTF_SET_END()
99 if (btf_type_vlen(prog->aux->attach_func_proto) < 1 || in BTF_SET_END()
101 prog->aux->attach_btf_id)) { in BTF_SET_END()
107 args = btf_params(prog->aux->attach_func_proto); in BTF_SET_END()
123 struct bpf_prog *prog) in bpf_lsm_verify_prog()
125 u32 btf_id = prog->aux->attach_btf_id; in bpf_lsm_verify_prog()
126 const char *func_name = prog->aux->attach_func_name; in bpf_lsm_verify_prog()
128 if (!prog->gpl_compatible) { in bpf_lsm_verify_prog()
160 return bpf_prog_ctx_arg_info_init(prog, &xattr_count_arg_info, 1);
194 static bool bpf_ima_inode_hash_allowed(const struct bpf_prog *prog) in BPF_CALL_3()
120 bpf_lsm_verify_prog(struct bpf_verifier_log * vlog,const struct bpf_prog * prog) bpf_lsm_verify_prog() argument
174 bpf_ima_inode_hash_allowed(const struct bpf_prog * prog) bpf_ima_inode_hash_allowed() argument
228 bpf_lsm_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) bpf_lsm_func_proto() argument
408 bpf_lsm_is_trusted(const struct bpf_prog * prog) bpf_lsm_is_trusted() argument
452 bpf_lsm_get_retval_range(const struct bpf_prog * prog,struct bpf_retval_range * retval_range) bpf_lsm_get_retval_range() argument
[all...]
/linux/drivers/net/hyperv/
H A Dnetvsc_bpf.c31 struct bpf_prog *prog; in netvsc_run_xdp() local
38 prog = rcu_dereference(nvchan->bpf_prog); in netvsc_run_xdp()
40 if (!prog) in netvsc_run_xdp()
61 act = bpf_prog_run_xdp(prog, xdp); in netvsc_run_xdp()
73 if (!xdp_do_redirect(ndev, xdp, prog)) { in netvsc_run_xdp()
95 trace_xdp_exception(ndev, prog, act); in netvsc_run_xdp()
99 bpf_warn_invalid_xdp_action(ndev, prog, act); in netvsc_run_xdp()
124 int netvsc_xdp_set(struct net_device *dev, struct bpf_prog *prog, in netvsc_xdp_set() argument
133 if (!old_prog && !prog) in netvsc_xdp_set()
137 if (prog && buf_max > PAGE_SIZE) { in netvsc_xdp_set()
[all …]
/linux/tools/lib/bpf/
H A Dlibbpf.c76 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog);
789 struct bpf_program *prog;
812 struct bpf_program *prog; in bpf_program__exit()
835 void bpf_program__unload(struct bpf_program *prog)
837 if (!prog) in is_call_insn()
840 zclose(prog->fd);
842 zfree(&prog->func_info); in insn_is_pseudo_func()
843 zfree(&prog->line_info); in insn_is_pseudo_func()
844 zfree(&prog->subprogs); in insn_is_pseudo_func()
847 static void bpf_program__exit(struct bpf_program *prog) in bpf_object__init_prog() argument
775 struct bpf_program *prog; global() member
798 bpf_program__unload(struct bpf_program * prog) bpf_program__unload() argument
810 bpf_program__exit(struct bpf_program * prog) bpf_program__exit() argument
912 struct bpf_program *prog, *progs; bpf_object__add_programs() local
996 struct bpf_program *prog = obj->programs; bpf_object_bswap_progs() local
1115 is_valid_st_ops_program(struct bpf_object * obj,const struct bpf_program * prog) is_valid_st_ops_program() argument
1134 struct bpf_program *prog, *slot_prog; bpf_object_adjust_struct_ops_autoload() local
1219 struct bpf_program *prog; bpf_map__init_kern_struct_ops() local
3561 prog_needs_vmlinux_btf(struct bpf_program * prog) prog_needs_vmlinux_btf() argument
3583 struct bpf_program *prog; obj_needs_vmlinux_btf() local
3665 struct bpf_program *prog = &obj->programs[i]; bpf_object__sanitize_and_load_btf() local
4549 prog_is_subprog(const struct bpf_object * obj,const struct bpf_program * prog) prog_is_subprog() argument
4558 struct bpf_program *prog; bpf_object__find_program_by_name() local
4609 bpf_prog_compute_hash(struct bpf_program * prog) bpf_prog_compute_hash() argument
4647 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
4829 prog_contains_insn(const struct bpf_program * prog,size_t insn_idx) prog_contains_insn() argument
4839 struct bpf_program *prog; find_prog_by_sec_insn() local
4868 struct bpf_program *prog; bpf_object__collect_prog_relos() local
6053 record_relo_core(struct bpf_program * prog,const struct bpf_core_relo * core_relo,int insn_idx) record_relo_core() argument
6071 find_relo_core(struct bpf_program * prog,int insn_idx) find_relo_core() argument
6087 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
6139 struct bpf_program *prog; bpf_object__relocate_core() local
6260 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
6290 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
6310 find_jt_map(struct bpf_object * obj,struct bpf_program * prog,unsigned int sym_off) find_jt_map() argument
6328 add_jt_map(struct bpf_object * obj,struct bpf_program * prog,unsigned int sym_off,int map_fd) add_jt_map() argument
6347 find_subprog_idx(struct bpf_program * prog,int insn_idx) find_subprog_idx() argument
6359 create_jt_map(struct bpf_object * obj,struct bpf_program * prog,struct reloc_desc * relo) create_jt_map() argument
6467 bpf_object__relocate_data(struct bpf_object * obj,struct bpf_program * prog) bpf_object__relocate_data() argument
6581 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
6651 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
6730 find_prog_insn_relo(const struct bpf_program * prog,size_t insn_idx) find_prog_insn_relo() argument
6827 bpf_object__reloc_code(struct bpf_object * obj,struct bpf_program * main_prog,struct bpf_program * prog) bpf_object__reloc_code() argument
7016 bpf_object__relocate_calls(struct bpf_object * obj,struct bpf_program * prog) bpf_object__relocate_calls() argument
7042 struct bpf_program *prog; bpf_object__free_relocs() local
7082 bpf_prog_assign_exc_cb(struct bpf_object * obj,struct bpf_program * prog) bpf_prog_assign_exc_cb() argument
7204 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
7275 clone_func_btf_info(struct btf * btf,int orig_fn_id,struct bpf_program * prog) clone_func_btf_info() argument
7344 bpf_program_fixup_func_info(struct bpf_object * obj,struct bpf_program * prog) bpf_program_fixup_func_info() argument
7485 struct bpf_program *prog; bpf_object__relocate() local
7788 bpf_object__sanitize_prog(struct bpf_object * obj,struct bpf_program * prog) bpf_object__sanitize_prog() argument
7863 tracing_multi_mod_fd(struct bpf_program * prog,int * btf_obj_fd) tracing_multi_mod_fd() argument
7890 libbpf_prepare_prog_load(struct bpf_program * prog,struct bpf_prog_load_opts * opts,long cookie) libbpf_prepare_prog_load() argument
7969 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
8199 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
8238 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
8271 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
8304 fixup_verifier_log(struct bpf_program * prog,char * buf,size_t buf_sz) fixup_verifier_log() argument
8354 bpf_program_record_relos(struct bpf_program * prog) bpf_program_record_relos() argument
8400 struct bpf_program *prog; bpf_object__load_progs() local
8431 struct bpf_program *prog; bpf_object_prepare_progs() local
8448 struct bpf_program *prog; bpf_object_init_progs() local
9027 struct bpf_program *prog = st_ops->progs[i]; bpf_map_prepare_vdata() local
9241 bpf_program__pin(struct bpf_program * prog,const char * path) bpf_program__pin() argument
9268 bpf_program__unpin(struct bpf_program * prog,const char * path) bpf_program__unpin() argument
9507 struct bpf_program *prog; bpf_object__pin_programs() local
9544 struct bpf_program *prog; bpf_object__unpin_programs() local
9771 struct bpf_program *prog = prev; bpf_object__next_program() local
9783 struct bpf_program *prog = next; bpf_object__prev_program() local
9792 bpf_program__set_ifindex(struct bpf_program * prog,__u32 ifindex) bpf_program__set_ifindex() argument
9797 bpf_program__name(const struct bpf_program * prog) bpf_program__name() argument
9802 bpf_program__section_name(const struct bpf_program * prog) bpf_program__section_name() argument
9807 bpf_program__autoload(const struct bpf_program * prog) bpf_program__autoload() argument
9812 bpf_program__set_autoload(struct bpf_program * prog,bool autoload) bpf_program__set_autoload() argument
9821 bpf_program__autoattach(const struct bpf_program * prog) bpf_program__autoattach() argument
9826 bpf_program__set_autoattach(struct bpf_program * prog,bool autoattach) bpf_program__set_autoattach() argument
9831 bpf_program__insns(const struct bpf_program * prog) bpf_program__insns() argument
9836 bpf_program__insn_cnt(const struct bpf_program * prog) bpf_program__insn_cnt() argument
9841 bpf_program__set_insns(struct bpf_program * prog,struct bpf_insn * new_insns,size_t new_insn_cnt) bpf_program__set_insns() argument
9862 bpf_program__fd(const struct bpf_program * prog) bpf_program__fd() argument
9876 bpf_program__type(const struct bpf_program * prog) bpf_program__type() argument
9887 bpf_program__set_type(struct bpf_program * prog,enum bpf_prog_type type) bpf_program__set_type() argument
9912 bpf_program__expected_attach_type(const struct bpf_program * prog) bpf_program__expected_attach_type() argument
9917 bpf_program__set_expected_attach_type(struct bpf_program * prog,enum bpf_attach_type type) bpf_program__set_expected_attach_type() argument
9927 bpf_program__flags(const struct bpf_program * prog) bpf_program__flags() argument
9932 bpf_program__set_flags(struct bpf_program * prog,__u32 flags) bpf_program__set_flags() argument
9941 bpf_program__log_level(const struct bpf_program * prog) bpf_program__log_level() argument
9946 bpf_program__set_log_level(struct bpf_program * prog,__u32 log_level) bpf_program__set_log_level() argument
9955 bpf_program__log_buf(const struct bpf_program * prog,size_t * log_size) bpf_program__log_buf() argument
9961 bpf_program__set_log_buf(struct bpf_program * prog,char * log_buf,size_t log_size) bpf_program__set_log_buf() argument
9975 bpf_program__func_info(const struct bpf_program * prog) bpf_program__func_info() argument
9982 bpf_program__func_info_cnt(const struct bpf_program * prog) bpf_program__func_info_cnt() argument
9987 bpf_program__line_info(const struct bpf_program * prog) bpf_program__line_info() argument
9994 bpf_program__line_info_cnt(const struct bpf_program * prog) bpf_program__line_info_cnt() argument
9999 bpf_program__clone(struct bpf_program * prog,const struct bpf_prog_load_opts * opts) bpf_program__clone() argument
10510 struct bpf_program *prog; bpf_object__collect_st_ops_relos() local
10777 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
11151 bpf_map__set_exclusive_program(struct bpf_map * map,struct bpf_program * prog) bpf_map__set_exclusive_program() argument
11390 bpf_link__update_program(struct bpf_link * link,struct bpf_program * prog) bpf_link__update_program() argument
11577 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
11655 bpf_program__attach_perf_event(const struct bpf_program * prog,int pfd) bpf_program__attach_perf_event() argument
11972 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
12068 bpf_program__attach_kprobe(const struct bpf_program * prog,bool retprobe,const char * func_name) bpf_program__attach_kprobe() argument
12079 bpf_program__attach_ksyscall(const struct bpf_program * prog,const char * syscall_name,const struct bpf_ksyscall_opts * opts) bpf_program__attach_ksyscall() argument
12319 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
12437 attach_kprobe(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe() argument
12481 attach_ksyscall(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_ksyscall() argument
12502 attach_kprobe_multi(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe_multi() argument
12533 attach_kprobe_session(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe_session() argument
12559 attach_uprobe_multi(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_uprobe_multi() argument
12707 collect_func_ids_by_glob(const struct bpf_program * prog,const char * pattern,__u32 ** ids) collect_func_ids_by_glob() argument
12746 bpf_program__attach_tracing_multi(const struct bpf_program * prog,const char * pattern,const struct bpf_tracing_multi_opts * opts) bpf_program__attach_tracing_multi() argument
12813 attach_tracing_multi(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_tracing_multi() argument
13075 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
13203 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
13349 attach_uprobe(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_uprobe() argument
13404 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
13414 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
13467 attach_usdt(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_usdt() argument
13546 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
13579 bpf_program__attach_tracepoint(const struct bpf_program * prog,const char * tp_category,const char * tp_name) bpf_program__attach_tracepoint() argument
13615 attach_tp(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_tp() argument
13655 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
13691 bpf_program__attach_raw_tracepoint(const struct bpf_program * prog,const char * tp_name) bpf_program__attach_raw_tracepoint() argument
13697 attach_raw_tp(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_raw_tp() argument
13724 bpf_program__attach_btf_id(const struct bpf_program * prog,const struct bpf_trace_opts * opts) bpf_program__attach_btf_id() argument
13759 bpf_program__attach_trace(const struct bpf_program * prog) bpf_program__attach_trace() argument
13764 bpf_program__attach_trace_opts(const struct bpf_program * prog,const struct bpf_trace_opts * opts) bpf_program__attach_trace_opts() argument
13770 bpf_program__attach_lsm(const struct bpf_program * prog) bpf_program__attach_lsm() argument
13775 attach_trace(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_trace() argument
13781 attach_lsm(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_lsm() argument
13788 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
13822 bpf_program__attach_cgroup(const struct bpf_program * prog,int cgroup_fd) bpf_program__attach_cgroup() argument
13828 bpf_program__attach_netns(const struct bpf_program * prog,int netns_fd) bpf_program__attach_netns() argument
13834 bpf_program__attach_sockmap(const struct bpf_program * prog,int map_fd) bpf_program__attach_sockmap() argument
13839 bpf_program__attach_xdp(const struct bpf_program * prog,int ifindex) bpf_program__attach_xdp() argument
13846 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
13874 bpf_program__attach_tcx(const struct bpf_program * prog,int ifindex,const struct bpf_tcx_opts * opts) bpf_program__attach_tcx() argument
13909 bpf_program__attach_netkit(const struct bpf_program * prog,int ifindex,const struct bpf_netkit_opts * opts) bpf_program__attach_netkit() argument
13942 bpf_program__attach_freplace(const struct bpf_program * prog,int target_fd,const char * attach_func_name) bpf_program__attach_freplace() argument
13980 bpf_program__attach_iter(const struct bpf_program * prog,const struct bpf_iter_attach_opts * opts) bpf_program__attach_iter() argument
14018 attach_iter(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_iter() argument
14024 bpf_program__attach_netfilter(const struct bpf_program * prog,const struct bpf_netfilter_opts * opts) bpf_program__attach_netfilter() argument
14064 bpf_program__attach(const struct bpf_program * prog) bpf_program__attach() argument
14761 bpf_program__set_attach_target(struct bpf_program * prog,int attach_prog_fd,const char * attach_func_name) bpf_program__set_attach_target() argument
14807 bpf_program__assoc_struct_ops(struct bpf_program * prog,struct bpf_map * map,struct bpf_prog_assoc_struct_ops_opts * opts) bpf_program__assoc_struct_ops() argument
14974 struct bpf_program **prog = prog_skel->prog; populate_skeleton_progs() local
15118 struct bpf_program *prog = *prog_skel->prog; bpf_object__attach_skeleton() local
[all...]
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_bpf.c85 struct bpf_prog *prog; in mana_run_xdp()
89 prog = rcu_dereference(rxq->bpf_prog); in mana_run_xdp()
91 if (!prog) in mana_run_xdp()
101 act = bpf_prog_run_xdp(prog, xdp); in mana_run_xdp()
112 rxq->xdp_rc = xdp_do_redirect(ndev, xdp, prog); in mana_run_xdp()
128 trace_xdp_exception(ndev, prog, act); in mana_run_xdp()
132 bpf_warn_invalid_xdp_action(ndev, prog, act); in mana_run_xdp()
154 void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog) in mana_chn_setxdp()
162 if (old_prog == prog) in mana_chn_setxdp()
165 if (prog) in mana_chn_setxdp()
84 struct bpf_prog *prog; mana_run_xdp() local
149 mana_chn_setxdp(struct mana_port_context * apc,struct bpf_prog * prog) mana_chn_setxdp() argument
171 mana_xdp_set(struct net_device * ndev,struct bpf_prog * prog,struct netlink_ext_ack * extack) mana_xdp_set() argument
[all...]
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Doffload.c112 struct bpf_prog *prog) in nfp_map_ptrs_record() argument
116 mutex_lock(&prog->aux->used_maps_mutex); in nfp_map_ptrs_record()
120 for (i = 0; i < prog->aux->used_map_cnt; i++) in nfp_map_ptrs_record()
121 if (bpf_map_offload_neutral(prog->aux->used_maps[i])) in nfp_map_ptrs_record()
132 for (i = 0; i < prog->aux->used_map_cnt; i++) in nfp_map_ptrs_record()
133 if (bpf_map_offload_neutral(prog->aux->used_maps[i])) { in nfp_map_ptrs_record()
135 prog->aux->used_maps[i]); in nfp_map_ptrs_record()
144 mutex_unlock(&prog->aux->used_maps_mutex); in nfp_map_ptrs_record()
149 nfp_prog_prepare(struct nfp_prog *nfp_prog, const struct bpf_insn *prog, in nfp_prog_prepare() argument
160 meta->insn = prog[i]; in nfp_prog_prepare()
[all …]
/linux/include/linux/
H A Dbpf.h294 * same prog type, JITed flag and xdp_has_frags flag.
678 struct bpf_map *bpf_prog_arena(struct bpf_prog *prog);
1076 bool (*allowed)(const struct bpf_prog *prog);
1154 /* The information passed from prog-specific *_is_valid_access
1190 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
1199 const struct bpf_prog *prog);
1205 const struct bpf_prog *prog,
1208 const struct bpf_prog *prog);
1209 int (*gen_epilogue)(struct bpf_insn *insn, const struct bpf_prog *prog,
1216 struct bpf_prog *prog, u3
1186 struct bpf_prog *prog; global() member
1357 bool prog; global() member
1377 struct bpf_prog *prog; global() member
1399 bpf_tramp_image_add_skip(struct bpf_tramp_image * im,struct bpf_prog * prog,void * nop,void * target) bpf_tramp_image_add_skip() argument
1459 struct bpf_prog *prog; global() member
1671 bpf_prog_has_trampoline(const struct bpf_prog * prog) bpf_prog_has_trampoline() argument
1675 bpf_trampoline_multi_attach(struct bpf_prog * prog,u32 * ids,struct bpf_tracing_multi_link * link) bpf_trampoline_multi_attach() argument
1680 bpf_trampoline_multi_detach(struct bpf_prog * prog,struct bpf_tracing_multi_link * link) bpf_trampoline_multi_detach() argument
1850 struct bpf_prog *prog; global() member
1956 struct bpf_prog *prog; global() member
2197 bpf_prog_get_recursion_context(struct bpf_prog * prog) bpf_prog_get_recursion_context() argument
2217 bpf_prog_put_recursion_context(struct bpf_prog * prog) bpf_prog_put_recursion_context() argument
2338 bpf_prog_assoc_struct_ops(struct bpf_prog * prog,struct bpf_map * map) bpf_prog_assoc_struct_ops() argument
2342 bpf_prog_disassoc_struct_ops(struct bpf_prog * prog) bpf_prog_disassoc_struct_ops() argument
2401 bpf_trampoline_link_cgroup_shim(struct bpf_prog * prog,int cgroup_atype,enum bpf_attach_type attach_type) bpf_trampoline_link_cgroup_shim() argument
2407 bpf_trampoline_unlink_cgroup_shim(struct bpf_prog * prog) bpf_trampoline_unlink_cgroup_shim() argument
2531 struct bpf_prog *prog; global() member
2624 const struct bpf_prog *prog; bpf_prog_run_array() local
2664 const struct bpf_prog *prog; bpf_prog_run_array_uprobe() local
3178 bpf_tracing_btf_ctx_access(int off,int size,enum bpf_access_type type,const struct bpf_prog * prog,struct bpf_insn_access_aux * info) bpf_tracing_btf_ctx_access() argument
3267 struct bpf_prog *prog; bpf_prog_run_array_sleepable() local
3325 bpf_prog_add(struct bpf_prog * prog,int i) bpf_prog_add() argument
3329 bpf_prog_sub(struct bpf_prog * prog,int i) bpf_prog_sub() argument
3333 bpf_prog_put(struct bpf_prog * prog) bpf_prog_put() argument
3337 bpf_prog_inc(struct bpf_prog * prog) bpf_prog_inc() argument
3342 bpf_prog_inc_not_zero(struct bpf_prog * prog) bpf_prog_inc_not_zero() argument
3349 bpf_link_init(struct bpf_link * link,enum bpf_link_type type,const struct bpf_link_ops * ops,struct bpf_prog * prog,enum bpf_attach_type attach_type) bpf_link_init() argument
3354 bpf_link_init_sleepable(struct bpf_link * link,enum bpf_link_type type,const struct bpf_link_ops * ops,struct bpf_prog * prog,enum bpf_attach_type attach_type,bool sleepable) bpf_link_init_sleepable() argument
3360 bpf_tramp_link_init(struct bpf_tramp_link * link,enum bpf_link_type type,const struct bpf_link_ops * ops,struct bpf_prog * prog,enum bpf_attach_type attach_type,u64 cookie) bpf_tramp_link_init() argument
3492 bpf_prog_test_run_xdp(struct bpf_prog * prog,const union bpf_attr * kattr,union bpf_attr __user * uattr) bpf_prog_test_run_xdp() argument
3499 bpf_prog_test_run_skb(struct bpf_prog * prog,const union bpf_attr * kattr,union bpf_attr __user * uattr) bpf_prog_test_run_skb() argument
3506 bpf_prog_test_run_tracing(struct bpf_prog * prog,const union bpf_attr * kattr,union bpf_attr __user * uattr) bpf_prog_test_run_tracing() argument
3513 bpf_prog_test_run_flow_dissector(struct bpf_prog * prog,const union bpf_attr * kattr,union bpf_attr __user * uattr) bpf_prog_test_run_flow_dissector() argument
3520 bpf_prog_test_run_sk_lookup(struct bpf_prog * prog,const union bpf_attr * kattr,union bpf_attr __user * uattr) bpf_prog_test_run_sk_lookup() argument
3546 bpf_base_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) bpf_base_func_proto() argument
3556 bpf_jit_find_kfunc_model(const struct bpf_prog * prog,const struct bpf_insn * insn) bpf_jit_find_kfunc_model() argument
3563 bpf_get_kfunc_addr(const struct bpf_prog * prog,u32 func_id,u16 btf_fd_idx,u8 ** func_addr) bpf_get_kfunc_addr() argument
3579 bpf_prog_inc_misses_counter(struct bpf_prog * prog) bpf_prog_inc_misses_counter() argument
3713 bpf_dev_bound_resolve_kfunc(struct bpf_prog * prog,u32 func_id) bpf_dev_bound_resolve_kfunc() argument
3719 bpf_prog_dev_bound_init(struct bpf_prog * prog,union bpf_attr * attr) bpf_prog_dev_bound_init() argument
3769 bpf_prog_test_run_syscall(struct bpf_prog * prog,const union bpf_attr * kattr,union bpf_attr __user * uattr) bpf_prog_test_run_syscall() argument
3778 sock_map_get_from_fd(const union bpf_attr * attr,struct bpf_prog * prog) sock_map_get_from_fd() argument
3801 sock_map_link_create(const union bpf_attr * attr,struct bpf_prog * prog) sock_map_link_create() argument
3812 struct bpf_prog *prog; bpf_prog_inc_misses_counters() local
4023 bpf_sock_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) bpf_sock_convert_ctx_access() argument
4074 bpf_tcp_sock_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) bpf_tcp_sock_convert_ctx_access() argument
4089 bpf_xdp_sock_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) bpf_xdp_sock_convert_ctx_access() argument
4155 bpf_stream_stage(ss,prog,stream_id,expr) global() argument
4183 bpf_is_subprog(const struct bpf_prog * prog) bpf_is_subprog() argument
4213 bpf_prog_update_insn_ptrs(struct bpf_prog * prog,u32 * offsets,void * image) bpf_prog_update_insn_ptrs() argument
[all...]

12345678910>>...20