| /kernel/linux/linux-5.10/net/sched/ |
| H A D | cls_bpf.c | 85 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() 101 filter_res = BPF_PROG_RUN(prog->filter, skb); in cls_bpf_classify() 105 filter_res = BPF_PROG_RUN(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() 139 cls_bpf_is_ebpf(const struct cls_bpf_prog *prog) cls_bpf_is_ebpf() argument 144 cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog, struct cls_bpf_prog *oldprog, struct netlink_ext_ack *extack) cls_bpf_offload_cmd() argument 196 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 215 cls_bpf_stop_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog, struct netlink_ext_ack *extack) cls_bpf_stop_offload() argument 226 cls_bpf_offload_update_stats(struct tcf_proto *tp, struct cls_bpf_prog *prog) cls_bpf_offload_update_stats() argument 257 cls_bpf_free_parms(struct cls_bpf_prog *prog) cls_bpf_free_parms() argument 268 __cls_bpf_delete_prog(struct cls_bpf_prog *prog) __cls_bpf_delete_prog() argument 279 struct cls_bpf_prog *prog = container_of(to_rcu_work(work), cls_bpf_delete_prog_work() local 287 __cls_bpf_delete(struct tcf_proto *tp, struct cls_bpf_prog *prog, struct netlink_ext_ack *extack) __cls_bpf_delete() argument 316 struct cls_bpf_prog *prog, *tmp; cls_bpf_destroy() local 328 struct cls_bpf_prog *prog; cls_bpf_get() local 338 cls_bpf_prog_from_ops(struct nlattr **tb, struct cls_bpf_prog *prog) cls_bpf_prog_from_ops() argument 375 cls_bpf_prog_from_efd(struct nlattr **tb, struct cls_bpf_prog *prog, u32 gen_flags, const struct tcf_proto *tp) cls_bpf_prog_from_efd() argument 408 cls_bpf_set_parms(struct net *net, struct tcf_proto *tp, struct cls_bpf_prog *prog, unsigned long base, struct nlattr **tb, struct nlattr *est, bool ovr, struct netlink_ext_ack *extack) cls_bpf_set_parms() argument 467 struct cls_bpf_prog *prog; cls_bpf_change() local 542 cls_bpf_dump_bpf_info(const struct cls_bpf_prog *prog, struct sk_buff *skb) cls_bpf_dump_bpf_info() argument 560 cls_bpf_dump_ebpf_info(const struct cls_bpf_prog *prog, struct sk_buff *skb) cls_bpf_dump_ebpf_info() argument 584 struct cls_bpf_prog *prog = fh; cls_bpf_dump() local 637 struct cls_bpf_prog *prog = fh; cls_bpf_bind_class() local 651 struct cls_bpf_prog *prog; cls_bpf_walk() local 671 struct cls_bpf_prog *prog; cls_bpf_reoffload() local [all...] |
| H A D | act_bpf.c | 39 struct tcf_bpf *prog = to_bpf(act); in tcf_bpf_act() local 43 tcf_lastuse_update(&prog->tcf_tm); in tcf_bpf_act() 44 bstats_cpu_update(this_cpu_ptr(prog->common.cpu_bstats), skb); in tcf_bpf_act() 47 filter = rcu_dereference(prog->filter); in tcf_bpf_act() 80 qstats_drop_inc(this_cpu_ptr(prog->common.cpu_qstats)); in tcf_bpf_act() 83 action = prog->tcf_action; in tcf_bpf_act() 93 static bool tcf_bpf_is_ebpf(const struct tcf_bpf *prog) in tcf_bpf_is_ebpf() argument 95 return !prog->bpf_ops; in tcf_bpf_is_ebpf() 98 static int tcf_bpf_dump_bpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_bpf_info() argument 103 if (nla_put_u16(skb, TCA_ACT_BPF_OPS_LEN, prog in tcf_bpf_dump_bpf_info() 116 tcf_bpf_dump_ebpf_info(const struct tcf_bpf *prog, struct sk_buff *skb) tcf_bpf_dump_ebpf_info() argument 141 struct tcf_bpf *prog = to_bpf(act); tcf_bpf_dump() local 265 tcf_bpf_prog_fill_cfg(const struct tcf_bpf *prog, struct tcf_bpf_cfg *cfg) tcf_bpf_prog_fill_cfg() argument 289 struct tcf_bpf *prog; tcf_bpf_init() local [all...] |
| /kernel/linux/linux-6.6/net/sched/ |
| H A D | cls_bpf.c | 87 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() 101 filter_res = bpf_prog_run(prog->filter, skb); in cls_bpf_classify() 105 filter_res = bpf_prog_run(prog->filter, skb); in cls_bpf_classify() 110 if (prog->exts_integrated) { in cls_bpf_classify() 112 res->classid = TC_H_MAJ(prog->res.classid) | in cls_bpf_classify() 127 *res = prog in cls_bpf_classify() 140 cls_bpf_is_ebpf(const struct cls_bpf_prog *prog) cls_bpf_is_ebpf() argument 145 cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog, struct cls_bpf_prog *oldprog, struct netlink_ext_ack *extack) 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 216 cls_bpf_stop_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog, struct netlink_ext_ack *extack) cls_bpf_stop_offload() argument 227 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) cls_bpf_prog_from_efd() argument 420 struct cls_bpf_prog *prog; cls_bpf_change() local 538 cls_bpf_dump_bpf_info(const struct cls_bpf_prog *prog, struct sk_buff *skb) cls_bpf_dump_bpf_info() argument 556 cls_bpf_dump_ebpf_info(const struct cls_bpf_prog *prog, struct sk_buff *skb) cls_bpf_dump_ebpf_info() argument 580 struct cls_bpf_prog *prog = fh; cls_bpf_dump() local 633 struct cls_bpf_prog *prog = fh; cls_bpf_bind_class() local 642 struct cls_bpf_prog *prog; cls_bpf_walk() local 656 struct cls_bpf_prog *prog; cls_bpf_reoffload() local [all...] |
| H A D | act_bpf.c | 40 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(prog->filter); in tcf_bpf_act() 81 qstats_drop_inc(this_cpu_ptr(prog->common.cpu_qstats)); in tcf_bpf_act() 84 action = prog->tcf_action; in tcf_bpf_act() 94 static bool tcf_bpf_is_ebpf(const struct tcf_bpf *prog) in tcf_bpf_is_ebpf() argument 96 return !prog->bpf_ops; in tcf_bpf_is_ebpf() 99 static int tcf_bpf_dump_bpf_info(const struct tcf_bpf *prog, in tcf_bpf_dump_bpf_info() argument 104 if (nla_put_u16(skb, TCA_ACT_BPF_OPS_LEN, prog in tcf_bpf_dump_bpf_info() 117 tcf_bpf_dump_ebpf_info(const struct tcf_bpf *prog, struct sk_buff *skb) tcf_bpf_dump_ebpf_info() argument 142 struct tcf_bpf *prog = to_bpf(act); tcf_bpf_dump() local 266 tcf_bpf_prog_fill_cfg(const struct tcf_bpf *prog, struct tcf_bpf_cfg *cfg) tcf_bpf_prog_fill_cfg() argument 290 struct tcf_bpf *prog; tcf_bpf_init() local [all...] |
| /kernel/linux/linux-6.6/arch/riscv/net/ |
| H A D | bpf_jit_core.c | 20 const struct bpf_prog *prog = ctx->prog; in build_body() local 23 for (i = 0; i < prog->len; i++) { in build_body() 24 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body() 44 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() argument 48 struct bpf_prog *tmp, *orig_prog = prog; in bpf_int_jit_compile() 53 if (!prog->jit_requested) in bpf_int_jit_compile() 56 tmp = bpf_jit_blind_constants(prog); in bpf_int_jit_compile() 59 if (tmp != prog) { in bpf_int_jit_compile() 61 prog in bpf_int_jit_compile() 259 bpf_jit_free(struct bpf_prog *prog) bpf_jit_free() argument [all...] |
| /kernel/linux/linux-5.10/arch/riscv/net/ |
| H A D | bpf_jit_core.c | 18 const struct bpf_prog *prog = ctx->prog; in build_body() local 21 for (i = 0; i < prog->len; i++) { in build_body() 22 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body() 42 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() argument 45 struct bpf_prog *tmp, *orig_prog = prog; in bpf_int_jit_compile() 51 if (!prog->jit_requested) in bpf_int_jit_compile() 54 tmp = bpf_jit_blind_constants(prog); in bpf_int_jit_compile() 57 if (tmp != prog) { in bpf_int_jit_compile() 59 prog in bpf_int_jit_compile() [all...] |
| /kernel/linux/linux-6.6/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 34 do { prog = emit_code(prog, bytes, len); } while (0) 260 u8 *prog = *pprog; in push_callee_regs() local 270 *pprog = prog; in push_callee_regs() 275 u8 *prog = *pprog; in pop_callee_regs() local 285 *pprog = prog; in pop_callee_regs() 296 u8 *prog = *pprog; in emit_prologue() local 302 memcpy(prog, x86_nops[5], X86_PATCH_SIZE); in emit_prologue() 303 prog += X86_PATCH_SIZE; in emit_prologue() 321 *pprog = prog; in emit_prologue() 326 u8 *prog = *pprog; emit_patch() local 362 u8 *prog; __bpf_arch_text_poke() local 421 u8 *prog = *pprog; emit_indirect_jump() local 443 u8 *prog = *pprog; emit_return() local 475 u8 *prog = *pprog, *start = *pprog; emit_bpf_tail_call_indirect() local 550 u8 *prog = *pprog, *start = *pprog; emit_bpf_tail_call_direct() local 587 bpf_tail_call_direct_fixup(struct bpf_prog *prog) bpf_tail_call_direct_fixup() argument 627 u8 *prog = *pprog; emit_mov_imm32() local 667 u8 *prog = *pprog; emit_mov_imm64() local 689 u8 *prog = *pprog; emit_mov_reg() local 707 u8 *prog = *pprog; emit_movsx_reg() local 739 u8 *prog = *pprog; emit_insn_suffix() local 761 u8 *prog = *pprog; maybe_emit_mod() local 775 u8 *prog = *pprog; maybe_emit_1mod() local 787 u8 *prog = *pprog; emit_ldx() local 817 u8 *prog = *pprog; emit_ldsx() local 840 u8 *prog = *pprog; emit_stx() local 874 u8 *prog = *pprog; emit_atomic() local 943 u8 *prog = *pprog; emit_nops() local 974 u8 *prog = *pprog; emit_3vex() local 1010 u8 *prog = *pprog; emit_shiftx() local 1037 u8 *prog = temp; do_jit() local 1960 u8 *prog; clean_stack_garbage() local 2020 save_args(const struct btf_func_model *m, u8 **prog, int stack_size, bool for_call_origin) save_args() argument 2097 restore_regs(const struct btf_func_model *m, u8 **prog, int stack_size) restore_regs() argument 2133 u8 *prog = *pprog; invoke_bpf_prog() local 2219 u8 *target, *prog = *pprog; emit_align() local 2230 u8 *prog = *pprog; emit_cond_near_jump() local 2248 u8 *prog = *pprog; invoke_bpf() local 2263 u8 *prog = *pprog; invoke_bpf_mod_ret() local 2367 u8 *prog; arch_prepare_bpf_trampoline() local 2613 u8 *jg_reloc, *prog = *pprog; emit_bpf_dispatcher() local 2693 u8 *prog = buf; arch_prepare_bpf_dispatcher() local 2711 bpf_int_jit_compile(struct bpf_prog *prog) bpf_int_jit_compile() argument 2908 bpf_jit_free(struct bpf_prog *prog) bpf_jit_free() argument [all...] |
| /kernel/linux/linux-5.10/drivers/clk/at91/ |
| H A D | clk-programmable.c | 34 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_recalc_rate() local 35 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_recalc_rate() 39 regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr); in clk_programmable_recalc_rate() 52 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_determine_rate() local 53 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_determine_rate() 104 struct clk_programmable *prog = to_clk_programmable(hw); in clk_programmable_set_parent() local 105 const struct clk_programmable_layout *layout = prog->layout; in clk_programmable_set_parent() 112 if (prog->mux_table) in clk_programmable_set_parent() 113 pckr = clk_mux_index_to_val(prog in clk_programmable_set_parent() 129 struct clk_programmable *prog = to_clk_programmable(hw); clk_programmable_get_parent() local 150 struct clk_programmable *prog = to_clk_programmable(hw); clk_programmable_set_rate() local 195 struct clk_programmable *prog; at91_clk_register_programmable() local [all...] |
| /kernel/linux/linux-6.6/arch/parisc/net/ |
| H A D | bpf_jit_core.c | 18 const struct bpf_prog *prog = ctx->prog; in build_body() local 22 for (i = 0; i < prog->len; i++) { in build_body() 23 const struct bpf_insn *insn = &prog->insnsi[i]; in build_body() 44 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) in bpf_int_jit_compile() argument 48 struct bpf_prog *tmp, *orig_prog = prog; in bpf_int_jit_compile() 53 if (!prog->jit_requested) in bpf_int_jit_compile() 56 tmp = bpf_jit_blind_constants(prog); in bpf_int_jit_compile() 59 if (tmp != prog) { in bpf_int_jit_compile() 61 prog in bpf_int_jit_compile() [all...] |
| /kernel/linux/linux-6.6/drivers/clk/at91/ |
| H A D | clk-programmable.c | 35 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 in clk_programmable_set_parent() 130 struct clk_programmable *prog = to_clk_programmable(hw); clk_programmable_get_parent() local 151 struct clk_programmable *prog = to_clk_programmable(hw); clk_programmable_set_rate() local 183 struct clk_programmable *prog = to_clk_programmable(hw); clk_programmable_save_context() local 195 struct clk_programmable *prog = to_clk_programmable(hw); clk_programmable_restore_context() local 222 struct clk_programmable *prog; at91_clk_register_programmable() local [all...] |
| /kernel/linux/linux-5.10/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 33 do { prog = emit_code(prog, bytes, len); cnt += len; } while (0) 236 u8 *prog = *pprog; in push_callee_regs() local 247 *pprog = prog; in push_callee_regs() 252 u8 *prog = *pprog; in pop_callee_regs() local 263 *pprog = prog; in pop_callee_regs() 274 u8 *prog = *pprog; in emit_prologue() local 280 memcpy(prog, ideal_nops[NOP_ATOMIC5], cnt); in emit_prologue() 281 prog += cnt; in emit_prologue() 295 *pprog = prog; in emit_prologue() 300 u8 *prog = *pprog; emit_patch() local 331 u8 *prog; __bpf_arch_text_poke() local 386 u8 *prog = *pprog; emit_indirect_jump() local 404 u8 *prog = *pprog; emit_return() local 437 u8 *prog = *pprog, *start = *pprog; emit_bpf_tail_call_indirect() local 512 u8 *prog = *pprog, *start = *pprog; emit_bpf_tail_call_direct() local 549 bpf_tail_call_direct_fixup(struct bpf_prog *prog) bpf_tail_call_direct_fixup() argument 598 u8 *prog = *pprog; emit_mov_imm32() local 639 u8 *prog = *pprog; emit_mov_imm64() local 662 u8 *prog = *pprog; emit_mov_reg() local 681 u8 *prog = *pprog; emit_ldx() local 720 u8 *prog = *pprog; emit_stx() local 798 u8 *prog = temp; do_jit() local 1510 save_regs(const struct btf_func_model *m, u8 **prog, int nr_args, int stack_size) save_regs() argument 1526 restore_regs(const struct btf_func_model *m, u8 **prog, int nr_args, int stack_size) restore_regs() argument 1546 u8 *prog = *pprog; invoke_bpf_prog() local 1601 u8 *prog = *pprog; emit_nops() local 1620 u8 *target, *prog = *pprog; emit_align() local 1631 u8 *prog = *pprog; emit_cond_near_jump() local 1650 u8 *prog = *pprog; invoke_bpf() local 1665 u8 *prog = *pprog; invoke_bpf_mod_ret() local 1785 u8 *prog; arch_prepare_bpf_trampoline() local 1918 u8 *jg_reloc, *prog = *pprog; emit_bpf_dispatcher() local 1998 u8 *prog = image; arch_prepare_bpf_dispatcher() local 2012 bpf_int_jit_compile(struct bpf_prog *prog) bpf_int_jit_compile() argument [all...] |
| /kernel/linux/linux-5.10/tools/lib/bpf/ |
| H A D | libbpf.h | 168 LIBBPF_API void *bpf_object__priv(const struct bpf_object *prog); 180 LIBBPF_API struct bpf_program *bpf_program__next(struct bpf_program *prog, 188 LIBBPF_API struct bpf_program *bpf_program__prev(struct bpf_program *prog, 193 LIBBPF_API int bpf_program__set_priv(struct bpf_program *prog, void *priv, 196 LIBBPF_API void *bpf_program__priv(const struct bpf_program *prog); 197 LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog, 200 LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog); 201 LIBBPF_API const char *bpf_program__section_name(const struct bpf_program *prog); 203 const char *bpf_program__title(const struct bpf_program *prog, bool needs_copy); 204 LIBBPF_API bool bpf_program__autoload(const struct bpf_program *prog); 726 struct bpf_program **prog; global() member [all...] |
| /kernel/linux/linux-5.10/kernel/bpf/ |
| H A D | syscall.c | 1609 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type() argument 1620 if (!bpf_prog_is_dev_bound(prog->aux)) in find_prog_type() 1621 prog->aux->ops = ops; in find_prog_type() 1623 prog->aux->ops = &bpf_offload_prog_ops; in find_prog_type() 1624 prog->type = type; in find_prog_type() 1639 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op) in bpf_audit_prog() argument 1653 audit_log_format(ab, "prog-id=%u op=%s", in bpf_audit_prog() 1654 prog->aux->id, bpf_audit_str[op]); in bpf_audit_prog() 1680 static int bpf_prog_charge_memlock(struct bpf_prog *prog) in bpf_prog_charge_memlock() argument 1685 ret = __bpf_prog_charge(user, prog in bpf_prog_charge_memlock() 1695 bpf_prog_uncharge_memlock(struct bpf_prog *prog) bpf_prog_uncharge_memlock() argument 1703 bpf_prog_alloc_id(struct bpf_prog *prog) bpf_prog_alloc_id() argument 1722 bpf_prog_free_id(struct bpf_prog *prog, bool do_idr_lock) bpf_prog_free_id() argument 1757 __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred) __bpf_prog_put_noref() argument 1773 __bpf_prog_put(struct bpf_prog *prog, bool do_idr_lock) __bpf_prog_put() argument 1784 bpf_prog_put(struct bpf_prog *prog) bpf_prog_put() argument 1792 struct bpf_prog *prog = filp->private_data; bpf_prog_release() local 1798 bpf_prog_get_stats(const struct bpf_prog *prog, struct bpf_prog_stats *stats) bpf_prog_get_stats() argument 1825 const struct bpf_prog *prog = filp->private_data; bpf_prog_show_fdinfo() local 1858 bpf_prog_new_fd(struct bpf_prog *prog) bpf_prog_new_fd() argument 1882 bpf_prog_add(struct bpf_prog *prog, int i) bpf_prog_add() argument 1888 bpf_prog_sub(struct bpf_prog *prog, int i) bpf_prog_sub() argument 1899 bpf_prog_inc(struct bpf_prog *prog) bpf_prog_inc() argument 1906 bpf_prog_inc_not_zero(struct bpf_prog *prog) bpf_prog_inc_not_zero() argument 1919 bpf_prog_get_ok(struct bpf_prog *prog, enum bpf_prog_type *attach_type, bool attach_drv) bpf_prog_get_ok() argument 1938 struct bpf_prog *prog; __bpf_prog_get() local 2129 struct bpf_prog *prog; bpf_prog_load() local 2308 bpf_link_init(struct bpf_link *link, enum bpf_link_type type, const struct bpf_link_ops *ops, struct bpf_prog *prog) bpf_link_init() argument 2407 const struct bpf_prog *prog = link->prog; bpf_link_show_fdinfo() local 2585 bpf_tracing_prog_attach(struct bpf_prog *prog, int tgt_prog_fd, u32 btf_id) bpf_tracing_prog_attach() argument 2831 struct bpf_prog *prog; bpf_raw_tracepoint_open() local 2969 bpf_prog_attach_check_attach_type(const struct bpf_prog *prog, enum bpf_attach_type attach_type) bpf_prog_attach_check_attach_type() argument 3007 struct bpf_prog *prog; bpf_prog_attach() local 3142 struct bpf_prog *prog; bpf_prog_test_run() local 3216 struct bpf_prog *prog; bpf_prog_get_curr_or_next() local 3237 struct bpf_prog *prog; bpf_prog_by_id() local 3254 struct bpf_prog *prog; bpf_prog_get_fd_by_id() local 3313 bpf_map_from_imm(const struct bpf_prog *prog, unsigned long addr, u32 *off, u32 *type) bpf_map_from_imm() argument 3341 bpf_insn_prepare_dump(const struct bpf_prog *prog, const struct cred *f_cred) bpf_insn_prepare_dump() argument 3424 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 4053 tracing_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) tracing_bpf_link_attach() argument 4071 struct bpf_prog *prog; link_create() local 4338 struct bpf_prog *prog; bpf_prog_bind_map() local [all...] |
| H A D | dispatcher.c | 25 struct bpf_dispatcher *d, struct bpf_prog *prog) in bpf_dispatcher_find_prog() 30 if (prog == d->progs[i].prog) in bpf_dispatcher_find_prog() 43 struct bpf_prog *prog) in bpf_dispatcher_add_prog() 47 if (!prog) in bpf_dispatcher_add_prog() 50 entry = bpf_dispatcher_find_prog(d, prog); in bpf_dispatcher_add_prog() 60 bpf_prog_inc(prog); in bpf_dispatcher_add_prog() 61 entry->prog = prog; in bpf_dispatcher_add_prog() 68 struct bpf_prog *prog) in bpf_dispatcher_remove_prog() 24 bpf_dispatcher_find_prog( struct bpf_dispatcher *d, struct bpf_prog *prog) bpf_dispatcher_find_prog() argument 42 bpf_dispatcher_add_prog(struct bpf_dispatcher *d, struct bpf_prog *prog) bpf_dispatcher_add_prog() argument 67 bpf_dispatcher_remove_prog(struct bpf_dispatcher *d, struct bpf_prog *prog) bpf_dispatcher_remove_prog() argument [all...] |
| /kernel/linux/linux-6.6/tools/workqueue/ |
| H A D | wq_dump.py | 78 worker_pool_idr = prog['worker_pool_idr'] 79 workqueues = prog['workqueues'] 80 wq_unbound_cpumask = prog['wq_unbound_cpumask'] 81 wq_pod_types = prog['wq_pod_types'] 82 wq_affn_dfl = prog['wq_affn_dfl'] 83 wq_affn_names = prog['wq_affn_names'] 85 WQ_UNBOUND = prog['WQ_UNBOUND'] 86 WQ_ORDERED = prog['__WQ_ORDERED'] 87 WQ_MEM_RECLAIM = prog['WQ_MEM_RECLAIM'] 89 WQ_AFFN_CPU = prog['WQ_AFFN_CP [all...] |
| /kernel/linux/linux-6.6/kernel/bpf/ |
| H A D | mprog.c | 20 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() 303 struct bpf_prog *prog; bpf_mprog_fetch() local 328 bpf_mprog_detach(struct bpf_mprog_entry *entry, struct bpf_mprog_entry **entry_new, struct bpf_prog *prog, struct bpf_link *link, u32 flags, u32 id_or_fd, u64 revision) bpf_mprog_detach() argument 402 struct bpf_prog *prog; bpf_mprog_query() local [all...] |
| H A D | syscall.c | 2047 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type() argument 2058 if (!bpf_prog_is_offloaded(prog->aux)) in find_prog_type() 2059 prog->aux->ops = ops; in find_prog_type() 2061 prog->aux->ops = &bpf_offload_prog_ops; in find_prog_type() 2062 prog->type = type; in find_prog_type() 2077 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op) in bpf_audit_prog() argument 2091 audit_log_format(ab, "prog-id=%u op=%s", in bpf_audit_prog() 2092 prog->aux->id, bpf_audit_str[op]); in bpf_audit_prog() 2096 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_alloc_id() argument 2102 id = idr_alloc_cyclic(&prog_idr, prog, in bpf_prog_alloc_id() 2115 bpf_prog_free_id(struct bpf_prog *prog) bpf_prog_free_id() argument 2144 __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred) __bpf_prog_put_noref() argument 2168 struct bpf_prog *prog; bpf_prog_put_deferred() local 2178 __bpf_prog_put(struct bpf_prog *prog) __bpf_prog_put() argument 2192 bpf_prog_put(struct bpf_prog *prog) bpf_prog_put() argument 2200 struct bpf_prog *prog = filp->private_data; bpf_prog_release() local 2212 bpf_prog_inc_misses_counter(struct bpf_prog *prog) bpf_prog_inc_misses_counter() argument 2223 bpf_prog_get_stats(const struct bpf_prog *prog, struct bpf_prog_kstats *stats) bpf_prog_get_stats() argument 2253 const struct bpf_prog *prog = filp->private_data; bpf_prog_show_fdinfo() local 2290 bpf_prog_new_fd(struct bpf_prog *prog) bpf_prog_new_fd() argument 2314 bpf_prog_add(struct bpf_prog *prog, int i) bpf_prog_add() argument 2320 bpf_prog_sub(struct bpf_prog *prog, int i) bpf_prog_sub() argument 2331 bpf_prog_inc(struct bpf_prog *prog) bpf_prog_inc() argument 2338 bpf_prog_inc_not_zero(struct bpf_prog *prog) bpf_prog_inc_not_zero() argument 2351 bpf_prog_get_ok(struct bpf_prog *prog, enum bpf_prog_type *attach_type, bool attach_drv) bpf_prog_get_ok() argument 2370 struct bpf_prog *prog; __bpf_prog_get() local 2586 struct bpf_prog *prog, *dst_prog = NULL; bpf_prog_load() local 2827 bpf_link_init(struct bpf_link *link, enum bpf_link_type type, const struct bpf_link_ops *ops, struct bpf_prog *prog) bpf_link_init() argument 2932 const struct bpf_prog *prog = link->prog; bpf_link_show_fdinfo() local 3117 bpf_tracing_prog_attach(struct bpf_prog *prog, int tgt_prog_fd, u32 btf_id, u64 bpf_cookie) bpf_tracing_prog_attach() argument 3561 bpf_perf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) bpf_perf_link_attach() argument 3606 bpf_perf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) bpf_perf_link_attach() argument 3612 bpf_raw_tp_link_attach(struct bpf_prog *prog, const char __user *user_tp_name) bpf_raw_tp_link_attach() argument 3684 struct bpf_prog *prog; bpf_raw_tracepoint_open() local 3766 bpf_prog_attach_check_attach_type(const struct bpf_prog *prog, enum bpf_attach_type attach_type) bpf_prog_attach_check_attach_type() argument 3839 struct bpf_prog *prog; bpf_prog_attach() local 3909 struct bpf_prog *prog = NULL; bpf_prog_detach() local 4027 struct bpf_prog *prog; bpf_prog_test_run() local 4101 struct bpf_prog *prog; bpf_prog_get_curr_or_next() local 4122 struct bpf_prog *prog; bpf_prog_by_id() local 4139 struct bpf_prog *prog; bpf_prog_get_fd_by_id() local 4198 bpf_map_from_imm(const struct bpf_prog *prog, unsigned long addr, u32 *off, u32 *type) bpf_map_from_imm() argument 4226 bpf_insn_prepare_dump(const struct bpf_prog *prog, const struct cred *f_cred) bpf_insn_prepare_dump() argument 4309 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 4937 struct bpf_prog *prog; link_create() local 5288 struct bpf_prog *prog; bpf_prog_bind_map() local 5492 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 5533 struct bpf_prog * __maybe_unused prog; kern_sys_bpf() local 5583 tracing_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) tracing_prog_func_proto() argument 5631 syscall_prog_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) syscall_prog_func_proto() argument [all...] |
| H A D | dispatcher.c | 26 struct bpf_dispatcher *d, struct bpf_prog *prog) in bpf_dispatcher_find_prog() 31 if (prog == d->progs[i].prog) in bpf_dispatcher_find_prog() 44 struct bpf_prog *prog) in bpf_dispatcher_add_prog() 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() 25 bpf_dispatcher_find_prog( struct bpf_dispatcher *d, struct bpf_prog *prog) bpf_dispatcher_find_prog() argument 43 bpf_dispatcher_add_prog(struct bpf_dispatcher *d, struct bpf_prog *prog) bpf_dispatcher_add_prog() argument 68 bpf_dispatcher_remove_prog(struct bpf_dispatcher *d, struct bpf_prog *prog) bpf_dispatcher_remove_prog() argument [all...] |
| H A D | trampoline.c | 107 bool bpf_prog_has_trampoline(const struct bpf_prog *prog) in bpf_prog_has_trampoline() argument 109 enum bpf_attach_type eatype = prog->expected_attach_type; in bpf_prog_has_trampoline() 110 enum bpf_prog_type ptype = prog->type; in bpf_prog_has_trampoline() 247 *ip_arg |= link->link.prog->call_get_func_ip; in bpf_trampoline_get_progs() 491 static enum bpf_tramp_prog_type bpf_attach_type_to_tramp(struct bpf_prog *prog) in bpf_attach_type_to_tramp() argument 493 switch (prog->expected_attach_type) { in bpf_attach_type_to_tramp() 501 if (!prog->aux->attach_func_proto->type) in bpf_attach_type_to_tramp() 520 kind = bpf_attach_type_to_tramp(link->link.prog); in __bpf_trampoline_link_prog() 522 /* cannot attach fentry/fexit if extension prog is attached. in __bpf_trampoline_link_prog() 523 * cannot overwrite extension prog eithe in __bpf_trampoline_link_prog() 626 cgroup_shim_alloc(const struct bpf_prog *prog, bpf_func_t bpf_func, int cgroup_atype) cgroup_shim_alloc() argument 679 bpf_trampoline_link_cgroup_shim(struct bpf_prog *prog, int cgroup_atype) bpf_trampoline_link_cgroup_shim() argument 745 bpf_trampoline_unlink_cgroup_shim(struct bpf_prog *prog) bpf_trampoline_unlink_cgroup_shim() argument 863 update_prog_stats(struct bpf_prog *prog, u64 start) update_prog_stats() argument 922 __bpf_prog_enter_sleepable_recur(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) __bpf_prog_enter_sleepable_recur() argument 938 __bpf_prog_exit_sleepable_recur(struct bpf_prog *prog, u64 start, struct bpf_tramp_run_ctx *run_ctx) __bpf_prog_exit_sleepable_recur() argument 949 __bpf_prog_enter_sleepable(struct bpf_prog *prog, struct bpf_tramp_run_ctx *run_ctx) __bpf_prog_enter_sleepable() argument 961 __bpf_prog_exit_sleepable(struct bpf_prog *prog, u64 start, struct bpf_tramp_run_ctx *run_ctx) __bpf_prog_exit_sleepable() argument 1004 bpf_trampoline_enter(const struct bpf_prog *prog) bpf_trampoline_enter() argument 1019 bpf_trampoline_exit(const struct bpf_prog *prog) bpf_trampoline_exit() argument [all...] |
| /kernel/linux/linux-5.10/drivers/net/hyperv/ |
| H A D | netvsc_bpf.c | 29 struct bpf_prog *prog; in netvsc_run_xdp() local 35 prog = rcu_dereference(nvchan->bpf_prog); in netvsc_run_xdp() 37 if (!prog) in netvsc_run_xdp() 56 act = bpf_prog_run_xdp(prog, xdp); in netvsc_run_xdp() 65 trace_xdp_exception(ndev, prog, act); in netvsc_run_xdp() 94 int netvsc_xdp_set(struct net_device *dev, struct bpf_prog *prog, in netvsc_xdp_set() argument 103 if (!old_prog && !prog) in netvsc_xdp_set() 107 if (prog && buf_max > PAGE_SIZE) { in netvsc_xdp_set() 115 if (prog && (dev->features & NETIF_F_LRO)) { in netvsc_xdp_set() 122 if (prog) in netvsc_xdp_set() 135 netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog) netvsc_vf_setxdp() argument [all...] |
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
| H A D | tailcalls.c | 13 struct bpf_program *prog; in test_tailcall_1() local 24 prog = bpf_object__find_program_by_title(obj, "classifier"); in test_tailcall_1() 25 if (CHECK_FAIL(!prog)) in test_tailcall_1() 28 main_fd = bpf_program__fd(prog); in test_tailcall_1() 43 prog = bpf_object__find_program_by_title(obj, prog_name); in test_tailcall_1() 44 if (CHECK_FAIL(!prog)) in test_tailcall_1() 47 prog_fd = bpf_program__fd(prog); in test_tailcall_1() 75 prog = bpf_object__find_program_by_title(obj, prog_name); in test_tailcall_1() 76 if (CHECK_FAIL(!prog)) in test_tailcall_1() 79 prog_fd = bpf_program__fd(prog); in test_tailcall_1() 151 struct bpf_program *prog; test_tailcall_2() local 229 struct bpf_program *prog; test_tailcall_3() local 307 struct bpf_program *prog; test_tailcall_4() local 395 struct bpf_program *prog; test_tailcall_5() local 483 struct bpf_program *prog; test_tailcall_bpf2bpf_1() local 567 struct bpf_program *prog; test_tailcall_bpf2bpf_2() local 645 struct bpf_program *prog; test_tailcall_bpf2bpf_3() local 735 struct bpf_program *prog; test_tailcall_bpf2bpf_4() local [all...] |
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
| H A D | tailcalls.c | 13 struct bpf_program *prog; in test_tailcall_1() local 28 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_1() 29 if (CHECK_FAIL(!prog)) in test_tailcall_1() 32 main_fd = bpf_program__fd(prog); in test_tailcall_1() 47 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1() 48 if (CHECK_FAIL(!prog)) in test_tailcall_1() 51 prog_fd = bpf_program__fd(prog); in test_tailcall_1() 77 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1() 78 if (CHECK_FAIL(!prog)) in test_tailcall_1() 81 prog_fd = bpf_program__fd(prog); in test_tailcall_1() 149 struct bpf_program *prog; test_tailcall_2() local 225 struct bpf_program *prog; test_tailcall_count() local 321 struct bpf_program *prog; test_tailcall_4() local 411 struct bpf_program *prog; test_tailcall_5() local 501 struct bpf_program *prog; test_tailcall_bpf2bpf_1() local 585 struct bpf_program *prog; test_tailcall_bpf2bpf_2() local 665 struct bpf_program *prog; test_tailcall_bpf2bpf_3() local 760 struct bpf_program *prog; test_tailcall_bpf2bpf_4() local [all...] |
| H A D | trampoline_count.c | 13 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() 39 struct bpf_program *prog; in serial_test_trampoline_count() local 53 prog = load_prog(file, progs[i % ARRAY_SIZE(progs)], &inst[i]); in serial_test_trampoline_count() 54 if (!prog) in serial_test_trampoline_count() 57 link = bpf_program__attach(prog); in serial_test_trampoline_count() 65 prog = load_prog(file, "fmod_ret_test", &inst[i]); in serial_test_trampoline_count() 66 if (!prog) in serial_test_trampoline_count() [all...] |
| /kernel/linux/linux-6.6/drivers/net/hyperv/ |
| H A D | netvsc_bpf.c | 31 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 in netvsc_xdp_set() 165 netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog) netvsc_vf_setxdp() argument [all...] |
| /kernel/linux/linux-6.6/tools/lib/bpf/ |
| H A D | libbpf.c | 72 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog); 700 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload() argument 702 if (!prog) in bpf_program__unload() 705 zclose(prog->fd); in bpf_program__unload() 707 zfree(&prog->func_info); in bpf_program__unload() 708 zfree(&prog->line_info); in bpf_program__unload() 711 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit() argument 713 if (!prog) in bpf_program__exit() 716 bpf_program__unload(prog); in bpf_program__exit() 717 zfree(&prog in bpf_program__exit() 748 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 812 struct bpf_program *prog, *progs; bpf_object__add_programs() local 1070 struct bpf_program *prog; bpf_map__init_kern_struct_ops() local 3030 prog_needs_vmlinux_btf(struct bpf_program *prog) prog_needs_vmlinux_btf() argument 3047 struct bpf_program *prog; obj_needs_vmlinux_btf() local 3123 struct bpf_program *prog = &obj->programs[i]; bpf_object__sanitize_and_load_btf() local 3991 prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog) prog_is_subprog() argument 4000 struct bpf_program *prog; bpf_object__find_program_by_name() local 4048 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 4201 prog_contains_insn(const struct bpf_program *prog, size_t insn_idx) prog_contains_insn() argument 4211 struct bpf_program *prog; find_prog_by_sec_insn() local 4240 struct bpf_program *prog; bpf_object__collect_prog_relos() local 4757 int ret, map, prog, insn_cnt = ARRAY_SIZE(insns); probe_prog_bind_map() local 5705 record_relo_core(struct bpf_program *prog, const struct bpf_core_relo *core_relo, int insn_idx) record_relo_core() argument 5723 find_relo_core(struct bpf_program *prog, int insn_idx) find_relo_core() argument 5739 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 5791 struct bpf_program *prog; bpf_object__relocate_core() local 5905 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 5935 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 5961 bpf_object__relocate_data(struct bpf_object *obj, struct bpf_program *prog) bpf_object__relocate_data() argument 6056 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 6125 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 6206 find_prog_insn_relo(const struct bpf_program *prog, size_t insn_idx) find_prog_insn_relo() argument 6244 bpf_object__reloc_code(struct bpf_object *obj, struct bpf_program *main_prog, struct bpf_program *prog) bpf_object__reloc_code() argument 6452 bpf_object__relocate_calls(struct bpf_object *obj, struct bpf_program *prog) bpf_object__relocate_calls() argument 6478 struct bpf_program *prog; bpf_object__free_relocs() local 6521 struct bpf_program *prog; bpf_object__relocate() local 6785 bpf_object__sanitize_prog(struct bpf_object *obj, struct bpf_program *prog) bpf_object__sanitize_prog() argument 6824 libbpf_prepare_prog_load(struct bpf_program *prog, struct bpf_prog_load_opts *opts, long cookie) libbpf_prepare_prog_load() argument 6885 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 7104 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 7143 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 7176 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 7209 fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz) fixup_verifier_log() argument 7259 bpf_program_record_relos(struct bpf_program *prog) bpf_program_record_relos() argument 7305 struct bpf_program *prog; bpf_object__load_progs() local 7345 struct bpf_program *prog; bpf_object_init_progs() local 7895 struct bpf_program *prog = st_ops->progs[i]; bpf_map_prepare_vdata() local 8045 bpf_program__pin(struct bpf_program *prog, const char *path) bpf_program__pin() argument 8074 bpf_program__unpin(struct bpf_program *prog, const char *path) bpf_program__unpin() argument 8310 struct bpf_program *prog; bpf_object__pin_programs() local 8347 struct bpf_program *prog; bpf_object__unpin_programs() local 8549 struct bpf_program *prog = prev; bpf_object__next_program() local 8561 struct bpf_program *prog = next; bpf_object__prev_program() local 8570 bpf_program__set_ifindex(struct bpf_program *prog, __u32 ifindex) bpf_program__set_ifindex() argument 8575 bpf_program__name(const struct bpf_program *prog) bpf_program__name() argument 8580 bpf_program__section_name(const struct bpf_program *prog) bpf_program__section_name() argument 8585 bpf_program__autoload(const struct bpf_program *prog) bpf_program__autoload() argument 8590 bpf_program__set_autoload(struct bpf_program *prog, bool autoload) bpf_program__set_autoload() argument 8599 bpf_program__autoattach(const struct bpf_program *prog) bpf_program__autoattach() argument 8604 bpf_program__set_autoattach(struct bpf_program *prog, bool autoattach) bpf_program__set_autoattach() argument 8609 bpf_program__insns(const struct bpf_program *prog) bpf_program__insns() argument 8614 bpf_program__insn_cnt(const struct bpf_program *prog) bpf_program__insn_cnt() argument 8619 bpf_program__set_insns(struct bpf_program *prog, struct bpf_insn *new_insns, size_t new_insn_cnt) bpf_program__set_insns() argument 8640 bpf_program__fd(const struct bpf_program *prog) bpf_program__fd() argument 8665 bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type) bpf_program__set_type() argument 8705 bpf_program__flags(const struct bpf_program *prog) bpf_program__flags() argument 8710 bpf_program__set_flags(struct bpf_program *prog, __u32 flags) bpf_program__set_flags() argument 8719 bpf_program__log_level(const struct bpf_program *prog) bpf_program__log_level() argument 8724 bpf_program__set_log_level(struct bpf_program *prog, __u32 log_level) bpf_program__set_log_level() argument 8733 bpf_program__log_buf(const struct bpf_program *prog, size_t *log_size) bpf_program__log_buf() argument 8739 bpf_program__set_log_buf(struct bpf_program *prog, char *log_buf, size_t log_size) bpf_program__set_log_buf() argument 9130 struct bpf_program *prog; bpf_object__collect_st_ops_relos() local 9392 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 9928 bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) bpf_link__update_program() argument 10108 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 10185 bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd) bpf_program__attach_perf_event() argument 10509 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 10604 bpf_program__attach_kprobe(const struct bpf_program *prog, bool retprobe, const char *func_name) bpf_program__attach_kprobe() argument 10615 bpf_program__attach_ksyscall(const struct bpf_program *prog, const char *syscall_name, const struct bpf_ksyscall_opts *opts) bpf_program__attach_ksyscall() argument 10830 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 10908 attach_kprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_kprobe() argument 10945 attach_ksyscall(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_ksyscall() argument 10966 attach_kprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_kprobe_multi() argument 10997 attach_uprobe_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_uprobe_multi() argument 11253 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 11367 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 11512 attach_uprobe(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_uprobe() argument 11557 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 11567 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 11620 attach_usdt(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_usdt() argument 11700 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 11734 bpf_program__attach_tracepoint(const struct bpf_program *prog, const char *tp_category, const char *tp_name) bpf_program__attach_tracepoint() argument 11741 attach_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_tp() argument 11773 bpf_program__attach_raw_tracepoint(const struct bpf_program *prog, const char *tp_name) bpf_program__attach_raw_tracepoint() argument 11803 attach_raw_tp(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_raw_tp() argument 11845 bpf_program__attach_btf_id(const struct bpf_program *prog, const struct bpf_trace_opts *opts) bpf_program__attach_btf_id() argument 11881 bpf_program__attach_trace(const struct bpf_program *prog) bpf_program__attach_trace() argument 11886 bpf_program__attach_trace_opts(const struct bpf_program *prog, const struct bpf_trace_opts *opts) bpf_program__attach_trace_opts() argument 11892 bpf_program__attach_lsm(const struct bpf_program *prog) bpf_program__attach_lsm() argument 11897 attach_trace(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_trace() argument 11903 attach_lsm(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_lsm() argument 11910 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 11945 bpf_program__attach_cgroup(const struct bpf_program *prog, int cgroup_fd) bpf_program__attach_cgroup() argument 11951 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd) bpf_program__attach_netns() argument 11956 bpf_program__attach_xdp(const struct bpf_program *prog, int ifindex) bpf_program__attach_xdp() argument 11963 bpf_program__attach_tcx(const struct bpf_program *prog, int ifindex, const struct bpf_tcx_opts *opts) bpf_program__attach_tcx() argument 11997 bpf_program__attach_freplace(const struct bpf_program *prog, int target_fd, const char *attach_func_name) bpf_program__attach_freplace() argument 12035 bpf_program__attach_iter(const struct bpf_program *prog, const struct bpf_iter_attach_opts *opts) bpf_program__attach_iter() argument 12074 attach_iter(const struct bpf_program *prog, long cookie, struct bpf_link **link) attach_iter() argument 12080 bpf_program__attach_netfilter(const struct bpf_program *prog, const struct bpf_netfilter_opts *opts) bpf_program__attach_netfilter() argument 12122 bpf_program__attach(const struct bpf_program *prog) bpf_program__attach() argument 12803 bpf_program__set_attach_target(struct bpf_program *prog, int attach_prog_fd, const char *attach_func_name) bpf_program__set_attach_target() argument 12983 struct bpf_program **prog = progs[i].prog; populate_skeleton_progs() local 13167 struct bpf_program *prog = *s->progs[i].prog; bpf_object__attach_skeleton() local [all...] |