/linux/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 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) cls_bpf_prog_from_efd() argument 420 struct cls_bpf_prog *prog; cls_bpf_change() local 540 cls_bpf_dump_bpf_info(const struct cls_bpf_prog * prog,struct sk_buff * skb) cls_bpf_dump_bpf_info() argument 558 cls_bpf_dump_ebpf_info(const struct cls_bpf_prog * prog,struct sk_buff * skb) cls_bpf_dump_ebpf_info() argument 582 struct cls_bpf_prog *prog = fh; cls_bpf_dump() local 635 struct cls_bpf_prog *prog = fh; cls_bpf_bind_class() local 644 struct cls_bpf_prog *prog; cls_bpf_walk() local 658 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...] |
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | exceptions.c | 44 ASSERT_OK(ret, #_prog " prog run ret"); \ in test_exceptions_success() 45 ASSERT_EQ(ropts.retval, return_val, #_prog " prog run retval"); \ in test_exceptions_success() 94 struct bpf_program *prog = NULL; \ in test_exceptions_success() 99 ASSERT_OK_PTR(bpf_program__name(prog), bpf_program__name(prog)); \ in test_exceptions_success() 112 if (!ASSERT_ERR_PTR(link = bpf_program__attach(prog), "attach err")) \ in test_exceptions_success() 115 if (!ASSERT_OK_PTR(link = bpf_program__attach(prog), "attach ok")) \ in test_exceptions_success() 124 prog = eskel->progs.pfentry; in test_exceptions_success() 125 bpf_program__set_autoload(prog, true); in test_exceptions_success() 126 if (!ASSERT_OK(bpf_program__set_attach_target(prog, in test_exceptions_success() [all...] |
H A D | tailcalls.c | 20 struct bpf_program *prog; in test_tailcall_1() local 35 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_1() 36 if (CHECK_FAIL(!prog)) in test_tailcall_1() 39 main_fd = bpf_program__fd(prog); in test_tailcall_1() 54 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1() 55 if (CHECK_FAIL(!prog)) in test_tailcall_1() 58 prog_fd = bpf_program__fd(prog); in test_tailcall_1() 84 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1() 85 if (CHECK_FAIL(!prog)) in test_tailcall_1() 88 prog_fd = bpf_program__fd(prog); in test_tailcall_1() 156 struct bpf_program *prog; test_tailcall_2() local 235 struct bpf_program *prog; test_tailcall_count() local 416 struct bpf_program *prog; test_tailcall_4() local 506 struct bpf_program *prog; test_tailcall_5() local 596 struct bpf_program *prog; test_tailcall_bpf2bpf_1() local 680 struct bpf_program *prog; test_tailcall_bpf2bpf_2() local 760 struct bpf_program *prog; test_tailcall_bpf2bpf_3() local 855 struct bpf_program *prog; test_tailcall_bpf2bpf_4() local 1019 struct bpf_program *prog; test_tailcall_bpf2bpf_fentry_entry() local 1201 struct bpf_program *prog, *fentry_prog; test_tailcall_hierarchy_count() 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...] |
H A D | trace_ext.c | 24 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 in test_trace_ext() [all...] |
/linux/arch/riscv/net/ |
H A D | bpf_jit_core.c | 21 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() 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() 247 bpf_jit_free(struct bpf_prog * prog) bpf_jit_free() argument [all...] |
/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 38 do { prog = emit_code(prog, bytes, len); } while (0) 332 u8 *prog = *pprog; in push_r9() local 335 *pprog = prog; in push_r9() 340 u8 *prog = *pprog; in pop_r9() local 343 *pprog = prog; in pop_r9() 348 u8 *prog = *pprog; in push_r12() local 351 *pprog = prog; in push_r12() 356 u8 *prog = *pprog; in push_callee_regs() local 366 *pprog = prog; in push_callee_regs() 371 u8 *prog = *pprog; pop_r12() local 379 u8 *prog = *pprog; pop_callee_regs() local 394 u8 *prog = *pprog; emit_nops() local 419 u8 *prog = *pprog; emit_fineibt() local 436 u8 *prog = *pprog; emit_kcfi() local 459 u8 *prog = *pprog; emit_cfi() local 480 u8 *prog = *pprog; emit_prologue_tail_call() local 518 u8 *prog = *pprog; emit_prologue() local 569 u8 *prog = *pprog; emit_patch() local 605 u8 *prog; __bpf_arch_text_poke() local 664 u8 *prog = *pprog; emit_indirect_jump() local 689 u8 *prog = *pprog; emit_return() local 724 u8 *prog = *pprog, *start = *pprog; emit_bpf_tail_call_indirect() local 813 u8 *prog = *pprog, *start = *pprog; emit_bpf_tail_call_direct() local 863 bpf_tail_call_direct_fixup(struct bpf_prog * prog) bpf_tail_call_direct_fixup() argument 903 u8 *prog = *pprog; emit_mov_imm32() local 944 u8 *prog = *pprog; emit_mov_imm64() local 968 u8 *prog = *pprog; emit_mov_reg() local 986 u8 *prog = *pprog; emit_movsx_reg() local 1018 u8 *prog = *pprog; emit_insn_suffix() local 1037 u8 *prog = *pprog; emit_insn_suffix_SIB() local 1052 u8 *prog = *pprog; maybe_emit_mod() local 1066 u8 *prog = *pprog; maybe_emit_1mod() local 1078 u8 *prog = *pprog; emit_ldx() local 1108 u8 *prog = *pprog; emit_ldsx() local 1130 u8 *prog = *pprog; emit_ldx_index() local 1162 u8 *prog = *pprog; emit_stx() local 1196 u8 *prog = *pprog; emit_stx_index() local 1228 u8 *prog = *pprog; emit_st_index() local 1261 u8 *prog = *pprog; emit_atomic_rmw() local 1303 u8 *prog = *pprog; emit_atomic_rmw_index() local 1435 u8 *prog = *pprog; emit_3vex() local 1471 u8 *prog = *pprog; emit_shiftx() local 1482 u8 *prog = *pprog; emit_priv_frame_ptr() local 1513 u8 *prog = *pprog; emit_spectre_bhb_barrier() local 1566 u8 *prog = temp; do_jit() local 2663 u8 *prog; clean_stack_garbage() local 2723 save_args(const struct btf_func_model * m,u8 ** prog,int stack_size,bool for_call_origin) save_args() argument 2800 restore_regs(const struct btf_func_model * m,u8 ** prog,int stack_size) restore_regs() argument 2837 u8 *prog = *pprog; invoke_bpf_prog() local 2923 u8 *target, *prog = *pprog; emit_align() local 2934 u8 *prog = *pprog; emit_cond_near_jump() local 2953 u8 *prog = *pprog; invoke_bpf() local 2969 u8 *prog = *pprog; invoke_bpf_mod_ret() local 3079 u8 *prog; __arch_prepare_bpf_trampoline() local 3418 u8 *jg_reloc, *prog = *pprog; emit_bpf_dispatcher() local 3498 u8 *prog = buf; arch_prepare_bpf_dispatcher() local 3517 priv_stack_check_guard(void __percpu * priv_stack_ptr,int alloc_size,struct bpf_prog * prog) priv_stack_check_guard() argument 3545 bpf_int_jit_compile(struct bpf_prog * prog) bpf_int_jit_compile() argument 3778 bpf_jit_free(struct bpf_prog * prog) bpf_jit_free() argument [all...] |
H A D | bpf_jit_comp32.c | 22 * eBPF prog stack layout: 30 * | ... | eBPF prog stack 65 do { prog = emit_code(prog, bytes, len); cnt += len; } while (0) 209 u8 *prog = *pprog; in emit_ia32_mov_i() local 230 *pprog = prog; in emit_ia32_mov_i() 237 u8 *prog = *pprog; in emit_ia32_mov_r() local 251 *pprog = prog; in emit_ia32_mov_r() 288 u8 *prog = *pprog; in emit_ia32_mul_r() local 314 *pprog = prog; in emit_ia32_mul_r() 321 u8 *prog = *pprog; emit_ia32_to_le_r64() local 369 u8 *prog = *pprog; emit_ia32_to_be_r64() local 438 u8 *prog = *pprog; emit_ia32_div_mod_r() local 485 u8 *prog = *pprog; emit_ia32_shift_r() local 527 u8 *prog = *pprog; emit_ia32_alu_r() local 582 u8 *prog = *pprog; emit_ia32_alu_r64() local 601 u8 *prog = *pprog; emit_ia32_alu_i() local 682 u8 *prog = *pprog; emit_ia32_alu_i64() local 700 u8 *prog = *pprog; emit_ia32_neg64() local 734 u8 *prog = *pprog; emit_ia32_lsh_r64() local 787 u8 *prog = *pprog; emit_ia32_arsh_r64() local 840 u8 *prog = *pprog; emit_ia32_rsh_r64() local 893 u8 *prog = *pprog; emit_ia32_lsh_i64() local 941 u8 *prog = *pprog; emit_ia32_rsh_i64() local 990 u8 *prog = *pprog; emit_ia32_arsh_i64() local 1038 u8 *prog = *pprog; emit_ia32_mul_r64() local 1115 u8 *prog = *pprog; emit_ia32_mul_i64() local 1202 u8 *prog = *pprog; emit_prologue() local 1247 u8 *prog = *pprog; emit_epilogue() local 1273 u8 *prog = *pprog; emit_jmp_edx() local 1301 u8 *prog = *pprog; emit_bpf_tail_call() local 1393 u8 *prog = *pprog; emit_push_r64() local 1411 u8 *prog = *pprog; emit_push_r32() local 1578 u8 *prog = *pprog; emit_kfunc_call() local 1668 u8 *prog = temp; do_jit() local 2521 bpf_int_jit_compile(struct bpf_prog * prog) bpf_int_jit_compile() argument [all...] |
/linux/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...] |
/linux/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...] |
/linux/tools/workqueue/ |
H A D | wq_dump.py | 95 worker_pool_idr = prog['worker_pool_idr'] 96 workqueues = prog['workqueues'] 97 wq_unbound_cpumask = prog['wq_unbound_cpumask'] 98 wq_pod_types = prog['wq_pod_types'] 99 wq_affn_dfl = prog['wq_affn_dfl'] 100 wq_affn_names = prog['wq_affn_names'] 102 WQ_BH = prog['WQ_BH'] 103 WQ_UNBOUND = prog['WQ_UNBOUND'] 104 WQ_ORDERED = prog['__WQ_ORDERED'] 105 WQ_MEM_RECLAIM = prog['WQ_MEM_RECLAI [all...] |
/linux/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 330 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 | 2238 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type() argument 2249 if (!bpf_prog_is_offloaded(prog->aux)) in find_prog_type() 2250 prog->aux->ops = ops; in find_prog_type() 2252 prog->aux->ops = &bpf_offload_prog_ops; in find_prog_type() 2253 prog->type = type; in find_prog_type() 2268 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op) in bpf_audit_prog() argument 2282 audit_log_format(ab, "prog-id=%u op=%s", in bpf_audit_prog() 2283 prog->aux->id, bpf_audit_str[op]); in bpf_audit_prog() 2287 static int bpf_prog_alloc_id(struct bpf_prog *prog) in bpf_prog_alloc_id() argument 2293 id = idr_alloc_cyclic(&prog_idr, prog, in bpf_prog_alloc_id() 2306 bpf_prog_free_id(struct bpf_prog * prog) bpf_prog_free_id() argument 2335 __bpf_prog_put_noref(struct bpf_prog * prog,bool deferred) __bpf_prog_put_noref() argument 2360 struct bpf_prog *prog; bpf_prog_put_deferred() local 2370 __bpf_prog_put(struct bpf_prog * prog) __bpf_prog_put() argument 2384 bpf_prog_put(struct bpf_prog * prog) bpf_prog_put() argument 2392 struct bpf_prog *prog = filp->private_data; bpf_prog_release() local 2404 bpf_prog_inc_misses_counter(struct bpf_prog * prog) bpf_prog_inc_misses_counter() argument 2415 bpf_prog_get_stats(const struct bpf_prog * prog,struct bpf_prog_kstats * stats) bpf_prog_get_stats() argument 2445 const struct bpf_prog *prog = filp->private_data; bpf_prog_show_fdinfo() local 2482 bpf_prog_new_fd(struct bpf_prog * prog) bpf_prog_new_fd() argument 2494 bpf_prog_add(struct bpf_prog * prog,int i) bpf_prog_add() argument 2500 bpf_prog_sub(struct bpf_prog * prog,int i) bpf_prog_sub() argument 2511 bpf_prog_inc(struct bpf_prog * prog) bpf_prog_inc() argument 2518 bpf_prog_inc_not_zero(struct bpf_prog * prog) bpf_prog_inc_not_zero() argument 2531 bpf_prog_get_ok(struct bpf_prog * prog,enum bpf_prog_type * attach_type,bool attach_drv) bpf_prog_get_ok() argument 2550 struct bpf_prog *prog; __bpf_prog_get() local 2770 struct bpf_prog *prog, *dst_prog = NULL; bpf_prog_load() local 3078 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 3092 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 3235 const struct bpf_prog *prog = link->prog; bpf_link_show_fdinfo() local 3452 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 4042 bpf_perf_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) bpf_perf_link_attach() argument 4088 bpf_perf_link_attach(const union bpf_attr * attr,struct bpf_prog * prog) bpf_perf_link_attach() argument 4094 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 4169 struct bpf_prog *prog; bpf_raw_tracepoint_open() local 4262 bpf_prog_attach_check_attach_type(const struct bpf_prog * prog,enum bpf_attach_type attach_type) bpf_prog_attach_check_attach_type() argument 4370 struct bpf_prog *prog; bpf_prog_attach() local 4438 struct bpf_prog *prog = NULL; bpf_prog_detach() local 4571 struct bpf_prog *prog; bpf_prog_test_run() local 4645 struct bpf_prog *prog; bpf_prog_get_curr_or_next() local 4666 struct bpf_prog *prog; bpf_prog_by_id() local 4683 struct bpf_prog *prog; bpf_prog_get_fd_by_id() local 4742 bpf_map_from_imm(const struct bpf_prog * prog,unsigned long addr,u32 * off,u32 * type) bpf_map_from_imm() argument 4770 bpf_insn_prepare_dump(const struct bpf_prog * prog,const struct cred * f_cred) bpf_insn_prepare_dump() argument 4860 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 5526 struct bpf_prog *prog; link_create() local 5891 struct bpf_prog *prog; bpf_prog_bind_map() local 5974 struct bpf_prog *prog; prog_stream_read() local 6144 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 6183 struct bpf_prog * __maybe_unused prog; kern_sys_bpf() local 6233 tracing_prog_func_proto(enum bpf_func_id func_id,const struct bpf_prog * prog) tracing_prog_func_proto() argument 6283 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() 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 [all...] |
H A D | core.c | 122 fp->aux->prog = fp; in bpf_prog_alloc_no_stats() 147 struct bpf_prog *prog; in bpf_prog_alloc() local 150 prog = bpf_prog_alloc_no_stats(size, gfp_extra_flags); in bpf_prog_alloc() 151 if (!prog) in bpf_prog_alloc() 154 prog->stats = alloc_percpu_gfp(struct bpf_prog_stats, gfp_flags); in bpf_prog_alloc() 155 if (!prog->stats) { in bpf_prog_alloc() 156 free_percpu(prog->active); in bpf_prog_alloc() 157 kfree(prog->aux); in bpf_prog_alloc() 158 vfree(prog); in bpf_prog_alloc() 165 pstats = per_cpu_ptr(prog in bpf_prog_alloc() 172 bpf_prog_alloc_jited_linfo(struct bpf_prog * prog) bpf_prog_alloc_jited_linfo() argument 186 bpf_prog_jit_attempt_done(struct bpf_prog * prog) bpf_prog_jit_attempt_done() argument 222 bpf_prog_fill_jited_linfo(struct bpf_prog * prog,const u32 * insn_to_jit_off) bpf_prog_fill_jited_linfo() argument 416 bpf_adj_branches(struct bpf_prog * prog,u32 pos,s32 end_old,s32 end_new,const bool probe_pass) bpf_adj_branches() argument 463 bpf_adj_linfo(struct bpf_prog * prog,u32 off,u32 delta) bpf_adj_linfo() argument 483 bpf_patch_insn_single(struct bpf_prog * prog,u32 off,const struct bpf_insn * patch,u32 len) bpf_patch_insn_single() argument 544 bpf_remove_insns(struct bpf_prog * prog,u32 off,u32 cnt) bpf_remove_insns() argument 583 bpf_prog_ksym_set_addr(struct bpf_prog * prog) bpf_prog_ksym_set_addr() argument 592 bpf_prog_ksym_set_name(struct bpf_prog * prog) bpf_prog_ksym_set_name() argument 798 struct bpf_prog *prog; search_bpf_extables() local 841 bpf_jit_add_poke_descriptor(struct bpf_prog * prog,struct bpf_jit_poke_descriptor * poke) bpf_jit_add_poke_descriptor() argument 1260 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 1300 bpf_jit_get_prog_name(struct bpf_prog * prog) bpf_jit_get_prog_name() argument 1485 bpf_jit_blind_constants(struct bpf_prog * prog) bpf_jit_blind_constants() argument 2046 struct bpf_prog *prog; ___bpf_prog_run() local 2565 struct bpf_prog prog; global() member 2732 bpf_prog_array_update_at(struct bpf_prog_array * array,int index,struct bpf_prog * prog) bpf_prog_array_update_at() argument 3039 bpf_int_jit_compile(struct bpf_prog * prog) bpf_int_jit_compile() argument 3047 bpf_jit_compile(struct bpf_prog * prog) bpf_jit_compile() argument 3198 struct bpf_prog *prog; bpf_prog_report_may_goto_violation() local 3263 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 3309 struct bpf_prog *prog; global() member 3315 struct bpf_prog *prog; find_from_stack_cb() local [all...] |
H A D | prog_iter.c | 16 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 D | offload.c | 109 static void __bpf_prog_offload_destroy(struct bpf_prog *prog) in __bpf_prog_offload_destroy() argument 111 struct bpf_prog_offload *offload = prog->aux->offload; in __bpf_prog_offload_destroy() 114 offload->offdev->ops->destroy(prog); in __bpf_prog_offload_destroy() 118 prog->aux->offload = NULL; in __bpf_prog_offload_destroy() 179 __bpf_prog_offload_destroy(offload->prog); in __bpf_offload_dev_netdev_unregister() 189 static int __bpf_prog_dev_bound_init(struct bpf_prog *prog, struct net_device *netdev) in __bpf_prog_dev_bound_init() argument 199 offload->prog = prog; in __bpf_prog_dev_bound_init() 206 if (bpf_prog_is_offloaded(prog->aux) && (!ondev || !ondev->offdev)) { in __bpf_prog_dev_bound_init() 220 prog in __bpf_prog_dev_bound_init() 229 bpf_prog_dev_bound_init(struct bpf_prog * prog,union bpf_attr * attr) bpf_prog_dev_bound_init() argument 297 bpf_prog_offload_verifier_prep(struct bpf_prog * prog) bpf_prog_offload_verifier_prep() argument 382 bpf_prog_dev_bound_destroy(struct bpf_prog * prog) bpf_prog_dev_bound_destroy() argument 403 bpf_prog_offload_translate(struct bpf_prog * prog) bpf_prog_offload_translate() argument 424 bpf_prog_offload_compile(struct bpf_prog * prog) bpf_prog_offload_compile() argument 432 struct bpf_prog *prog; global() member 463 bpf_prog_offload_info_fill(struct bpf_prog_info * info,struct bpf_prog * prog) bpf_prog_offload_info_fill() argument 699 __bpf_offload_dev_match(struct bpf_prog * prog,struct net_device * netdev) __bpf_offload_dev_match() argument 720 bpf_offload_dev_match(struct bpf_prog * prog,struct net_device * netdev) bpf_offload_dev_match() argument 748 bpf_offload_prog_map_match(struct bpf_prog * prog,struct bpf_map * map) bpf_offload_prog_map_match() argument 844 bpf_dev_bound_resolve_kfunc(struct bpf_prog * prog,u32 func_id) bpf_dev_bound_resolve_kfunc() argument [all...] |
/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | mana_bpf.c | 84 struct bpf_prog *prog; in mana_run_xdp() local 88 prog = rcu_dereference(rxq->bpf_prog); in mana_run_xdp() 90 if (!prog) in mana_run_xdp() 96 act = bpf_prog_run_xdp(prog, xdp); in mana_run_xdp() 107 rxq->xdp_rc = xdp_do_redirect(ndev, xdp, prog); in mana_run_xdp() 123 trace_xdp_exception(ndev, prog, act); in mana_run_xdp() 127 bpf_warn_invalid_xdp_action(ndev, prog, act); in mana_run_xdp() 149 void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog) in mana_chn_setxdp() argument 157 if (old_prog == prog) in mana_chn_setxdp() 160 if (prog) in mana_chn_setxdp() 171 mana_xdp_set(struct net_device * ndev,struct bpf_prog * prog,struct netlink_ext_ack * extack) mana_xdp_set() argument [all...] |
/linux/arch/arc/net/ |
H A D | bpf_jit_core.c | 71 * "prog->bpf_func" and "prog->jited_len". 81 * prog: The current eBPF program being handled. 92 * frame_size: Derived from "prog->aux->stack_depth". 97 * blinded: True if "constant blinding" step returned a new "prog". 101 struct bpf_prog *prog; member 125 static void vm_dump(const struct bpf_prog *prog) in vm_dump() argument 129 dump_bytes((u8 *)prog->insns, 8 * prog->len, " VM "); in vm_dump() 147 if (bpf_jit_enable <= 1 || !ctx->prog in jit_dump() 160 jit_ctx_init(struct jit_context * ctx,struct bpf_prog * prog) jit_ctx_init() argument 381 is_last_insn(const struct bpf_prog * prog,u32 idx) is_last_insn() argument 1056 const struct bpf_prog *prog = ctx->prog; handle_body() local 1223 struct bpf_prog *prog = ctx->prog; jit_finalize() local 1262 check_jit_context(const struct bpf_prog * prog) check_jit_context() argument 1309 const struct bpf_prog *prog = ctx->prog; jit_patch_relocations() local 1338 do_normal_pass(struct bpf_prog * prog) do_normal_pass() argument 1377 do_extra_pass(struct bpf_prog * prog) do_extra_pass() argument 1414 bpf_int_jit_compile(struct bpf_prog * prog) bpf_int_jit_compile() argument [all...] |
/linux/drivers/net/netdevsim/ |
H A D | bpf.c | 31 struct bpf_prog *prog; member 68 state = env->prog->aux->offload->dev_priv; in nsim_bpf_verify_insn() 72 if (insn_idx == env->prog->len - 1) { in nsim_bpf_verify_insn() 89 return ns->xdp_hw.prog; in nsim_xdp_offload_active() 92 static void nsim_prog_set_loaded(struct bpf_prog *prog, bool loaded) in nsim_prog_set_loaded() argument 96 if (!prog || !bpf_prog_is_offloaded(prog->aux)) in nsim_prog_set_loaded() 99 state = prog->aux->offload->dev_priv; in nsim_prog_set_loaded() 104 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog) in nsim_bpf_offload() argument 111 ns->bpf_offloaded = prog; in nsim_bpf_offload() 122 struct bpf_prog *prog = cls_bpf->prog; nsim_bpf_setup_tc_block_cb() local 219 nsim_bpf_create_prog(struct nsim_dev * nsim_dev,struct bpf_prog * prog) nsim_bpf_create_prog() argument 254 nsim_bpf_verifier_prep(struct bpf_prog * prog) nsim_bpf_verifier_prep() argument 265 nsim_bpf_translate(struct bpf_prog * prog) nsim_bpf_translate() argument 273 nsim_bpf_destroy_prog(struct bpf_prog * prog) nsim_bpf_destroy_prog() argument [all...] |
/linux/tools/lib/bpf/ |
H A D | libbpf.h | 174 * And vice versa, setting log_level>0 will request BTF or prog 338 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prog); 346 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *prog); 348 LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog, 351 LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog); 352 LIBBPF_API const char *bpf_program__section_name(const struct bpf_program *prog); 353 LIBBPF_API bool bpf_program__autoload(const struct bpf_program *prog); 354 LIBBPF_API int bpf_program__set_autoload(struct bpf_program *prog, bool autoload); 355 LIBBPF_API bool bpf_program__autoattach(const struct bpf_program *prog); 356 LIBBPF_API void bpf_program__set_autoattach(struct bpf_program *prog, boo 1748 struct bpf_program **prog; global() member [all...] |
H A D | libbpf.c | 77 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog); 759 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload() argument 761 if (!prog) in bpf_program__unload() 764 zclose(prog->fd); in bpf_program__unload() 766 zfree(&prog->func_info); in bpf_program__unload() 767 zfree(&prog->line_info); in bpf_program__unload() 770 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit() argument 772 if (!prog) in bpf_program__exit() 775 bpf_program__unload(prog); in bpf_program__exit() 776 zfree(&prog in bpf_program__exit() 807 bpf_object__init_prog(struct bpf_object * obj,struct bpf_program * prog,const char * name,size_t sec_idx,const char * sec_name,size_t sec_off,void * insn_data,size_t insn_data_sz) bpf_object__init_prog() argument 872 struct bpf_program *prog, *progs; bpf_object__add_programs() local 956 struct bpf_program *prog = obj->programs; bpf_object_bswap_progs() local 1077 is_valid_st_ops_program(struct bpf_object * obj,const struct bpf_program * prog) is_valid_st_ops_program() argument 1096 struct bpf_program *prog, *slot_prog; bpf_object_adjust_struct_ops_autoload() local 1181 struct bpf_program *prog; bpf_map__init_kern_struct_ops() local 3443 prog_needs_vmlinux_btf(struct bpf_program * prog) prog_needs_vmlinux_btf() argument 3465 struct bpf_program *prog; obj_needs_vmlinux_btf() local 3547 struct bpf_program *prog = &obj->programs[i]; bpf_object__sanitize_and_load_btf() local 4431 prog_is_subprog(const struct bpf_object * obj,const struct bpf_program * prog) prog_is_subprog() argument 4440 struct bpf_program *prog; bpf_object__find_program_by_name() local 4488 bpf_program__record_reloc(struct bpf_program * prog,struct reloc_desc * reloc_desc,__u32 insn_idx,const char * sym_name,const Elf64_Sym * sym,const Elf64_Rel * rel) bpf_program__record_reloc() argument 4660 prog_contains_insn(const struct bpf_program * prog,size_t insn_idx) prog_contains_insn() argument 4670 struct bpf_program *prog; find_prog_by_sec_insn() local 4699 struct bpf_program *prog; bpf_object__collect_prog_relos() local 5844 record_relo_core(struct bpf_program * prog,const struct bpf_core_relo * core_relo,int insn_idx) record_relo_core() argument 5862 find_relo_core(struct bpf_program * prog,int insn_idx) find_relo_core() argument 5878 bpf_core_resolve_relo(struct bpf_program * prog,const struct bpf_core_relo * relo,int relo_idx,const struct btf * local_btf,struct hashmap * cand_cache,struct bpf_core_relo_res * targ_res) bpf_core_resolve_relo() argument 5930 struct bpf_program *prog; bpf_object__relocate_core() local 6044 poison_map_ldimm64(struct bpf_program * prog,int relo_idx,int insn_idx,struct bpf_insn * insn,int map_idx,const struct bpf_map * map) poison_map_ldimm64() argument 6074 poison_kfunc_call(struct bpf_program * prog,int relo_idx,int insn_idx,struct bpf_insn * insn,int ext_idx,const struct extern_desc * ext) poison_kfunc_call() argument 6100 bpf_object__relocate_data(struct bpf_object * obj,struct bpf_program * prog) bpf_object__relocate_data() argument 6196 adjust_prog_btf_ext_info(const struct bpf_object * obj,const struct bpf_program * prog,const struct btf_ext_info * ext_info,void ** prog_info,__u32 * prog_rec_cnt,__u32 * prog_rec_sz) adjust_prog_btf_ext_info() argument 6266 reloc_prog_func_and_line_info(const struct bpf_object * obj,struct bpf_program * main_prog,const struct bpf_program * prog) reloc_prog_func_and_line_info() argument 6345 find_prog_insn_relo(const struct bpf_program * prog,size_t insn_idx) find_prog_insn_relo() argument 6416 bpf_object__reloc_code(struct bpf_object * obj,struct bpf_program * main_prog,struct bpf_program * prog) bpf_object__reloc_code() argument 6605 bpf_object__relocate_calls(struct bpf_object * obj,struct bpf_program * prog) bpf_object__relocate_calls() argument 6631 struct bpf_program *prog; bpf_object__free_relocs() local 6671 bpf_prog_assign_exc_cb(struct bpf_object * obj,struct bpf_program * prog) bpf_prog_assign_exc_cb() argument 6793 need_func_arg_type_fixup(const struct btf * btf,const struct bpf_program * prog,const char * subprog_name,int arg_idx,int arg_type_id,const char * ctx_name) need_func_arg_type_fixup() argument 6864 clone_func_btf_info(struct btf * btf,int orig_fn_id,struct bpf_program * prog) clone_func_btf_info() argument 6933 bpf_program_fixup_func_info(struct bpf_object * obj,struct bpf_program * prog) bpf_program_fixup_func_info() argument 7074 struct bpf_program *prog; bpf_object__relocate() local 7369 bpf_object__sanitize_prog(struct bpf_object * obj,struct bpf_program * prog) bpf_object__sanitize_prog() argument 7408 libbpf_prepare_prog_load(struct bpf_program * prog,struct bpf_prog_load_opts * opts,long cookie) libbpf_prepare_prog_load() argument 7475 bpf_object_load_prog(struct bpf_object * obj,struct bpf_program * prog,struct bpf_insn * insns,int insns_cnt,const char * license,__u32 kern_version,int * prog_fd) bpf_object_load_prog() argument 7705 fixup_log_failed_core_relo(struct bpf_program * prog,char * buf,size_t buf_sz,size_t log_sz,char * line1,char * line2,char * line3) fixup_log_failed_core_relo() argument 7744 fixup_log_missing_map_load(struct bpf_program * prog,char * buf,size_t buf_sz,size_t log_sz,char * line1,char * line2,char * line3) fixup_log_missing_map_load() argument 7777 fixup_log_missing_kfunc_call(struct bpf_program * prog,char * buf,size_t buf_sz,size_t log_sz,char * line1,char * line2,char * line3) fixup_log_missing_kfunc_call() argument 7810 fixup_verifier_log(struct bpf_program * prog,char * buf,size_t buf_sz) fixup_verifier_log() argument 7860 bpf_program_record_relos(struct bpf_program * prog) bpf_program_record_relos() argument 7906 struct bpf_program *prog; bpf_object__load_progs() local 7937 struct bpf_program *prog; bpf_object_prepare_progs() local 7954 struct bpf_program *prog; bpf_object_init_progs() local 8533 struct bpf_program *prog = st_ops->progs[i]; bpf_map_prepare_vdata() local 8739 bpf_program__pin(struct bpf_program * prog,const char * path) bpf_program__pin() argument 8766 bpf_program__unpin(struct bpf_program * prog,const char * path) bpf_program__unpin() argument 9005 struct bpf_program *prog; bpf_object__pin_programs() local 9042 struct bpf_program *prog; bpf_object__unpin_programs() local 9262 struct bpf_program *prog = prev; bpf_object__next_program() local 9274 struct bpf_program *prog = next; bpf_object__prev_program() local 9283 bpf_program__set_ifindex(struct bpf_program * prog,__u32 ifindex) bpf_program__set_ifindex() argument 9288 bpf_program__name(const struct bpf_program * prog) bpf_program__name() argument 9293 bpf_program__section_name(const struct bpf_program * prog) bpf_program__section_name() argument 9298 bpf_program__autoload(const struct bpf_program * prog) bpf_program__autoload() argument 9303 bpf_program__set_autoload(struct bpf_program * prog,bool autoload) bpf_program__set_autoload() argument 9312 bpf_program__autoattach(const struct bpf_program * prog) bpf_program__autoattach() argument 9317 bpf_program__set_autoattach(struct bpf_program * prog,bool autoattach) bpf_program__set_autoattach() argument 9322 bpf_program__insns(const struct bpf_program * prog) bpf_program__insns() argument 9327 bpf_program__insn_cnt(const struct bpf_program * prog) bpf_program__insn_cnt() argument 9332 bpf_program__set_insns(struct bpf_program * prog,struct bpf_insn * new_insns,size_t new_insn_cnt) bpf_program__set_insns() argument 9353 bpf_program__fd(const struct bpf_program * prog) bpf_program__fd() argument 9367 bpf_program__type(const struct bpf_program * prog) bpf_program__type() argument 9378 bpf_program__set_type(struct bpf_program * prog,enum bpf_prog_type type) bpf_program__set_type() argument 9403 bpf_program__expected_attach_type(const struct bpf_program * prog) bpf_program__expected_attach_type() argument 9408 bpf_program__set_expected_attach_type(struct bpf_program * prog,enum bpf_attach_type type) bpf_program__set_expected_attach_type() argument 9418 bpf_program__flags(const struct bpf_program * prog) bpf_program__flags() argument 9423 bpf_program__set_flags(struct bpf_program * prog,__u32 flags) bpf_program__set_flags() argument 9432 bpf_program__log_level(const struct bpf_program * prog) bpf_program__log_level() argument 9437 bpf_program__set_log_level(struct bpf_program * prog,__u32 log_level) bpf_program__set_log_level() argument 9446 bpf_program__log_buf(const struct bpf_program * prog,size_t * log_size) bpf_program__log_buf() argument 9452 bpf_program__set_log_buf(struct bpf_program * prog,char * log_buf,size_t log_size) bpf_program__set_log_buf() argument 9466 bpf_program__func_info(const struct bpf_program * prog) bpf_program__func_info() argument 9473 bpf_program__func_info_cnt(const struct bpf_program * prog) bpf_program__func_info_cnt() argument 9478 bpf_program__line_info(const struct bpf_program * prog) bpf_program__line_info() argument 9485 bpf_program__line_info_cnt(const struct bpf_program * prog) bpf_program__line_info_cnt() argument 9882 struct bpf_program *prog; bpf_object__collect_st_ops_relos() local 10149 libbpf_find_attach_btf_id(struct bpf_program * prog,const char * attach_name,int * btf_obj_fd,int * btf_type_id) libbpf_find_attach_btf_id() argument 10721 bpf_link__update_program(struct bpf_link * link,struct bpf_program * prog) bpf_link__update_program() argument 10908 bpf_program__attach_perf_event_opts(const struct bpf_program * prog,int pfd,const struct bpf_perf_event_opts * opts) bpf_program__attach_perf_event_opts() argument 10986 bpf_program__attach_perf_event(const struct bpf_program * prog,int pfd) bpf_program__attach_perf_event() argument 11305 bpf_program__attach_kprobe_opts(const struct bpf_program * prog,const char * func_name,const struct bpf_kprobe_opts * opts) bpf_program__attach_kprobe_opts() argument 11399 bpf_program__attach_kprobe(const struct bpf_program * prog,bool retprobe,const char * func_name) bpf_program__attach_kprobe() argument 11410 bpf_program__attach_ksyscall(const struct bpf_program * prog,const char * syscall_name,const struct bpf_ksyscall_opts * opts) bpf_program__attach_ksyscall() argument 11649 bpf_program__attach_kprobe_multi_opts(const struct bpf_program * prog,const char * pattern,const struct bpf_kprobe_multi_opts * opts) bpf_program__attach_kprobe_multi_opts() argument 11750 attach_kprobe(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe() argument 11787 attach_ksyscall(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_ksyscall() argument 11808 attach_kprobe_multi(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe_multi() argument 11839 attach_kprobe_session(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_kprobe_session() argument 11865 attach_uprobe_multi(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_uprobe_multi() argument 12109 bpf_program__attach_uprobe_multi(const struct bpf_program * prog,pid_t pid,const char * path,const char * func_pattern,const struct bpf_uprobe_multi_opts * opts) bpf_program__attach_uprobe_multi() argument 12237 bpf_program__attach_uprobe_opts(const struct bpf_program * prog,pid_t pid,const char * binary_path,size_t func_offset,const struct bpf_uprobe_opts * opts) bpf_program__attach_uprobe_opts() argument 12383 attach_uprobe(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_uprobe() argument 12438 bpf_program__attach_uprobe(const struct bpf_program * prog,bool retprobe,pid_t pid,const char * binary_path,size_t func_offset) bpf_program__attach_uprobe() argument 12448 bpf_program__attach_usdt(const struct bpf_program * prog,pid_t pid,const char * binary_path,const char * usdt_provider,const char * usdt_name,const struct bpf_usdt_opts * opts) bpf_program__attach_usdt() argument 12501 attach_usdt(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_usdt() argument 12580 bpf_program__attach_tracepoint_opts(const struct bpf_program * prog,const char * tp_category,const char * tp_name,const struct bpf_tracepoint_opts * opts) bpf_program__attach_tracepoint_opts() argument 12613 bpf_program__attach_tracepoint(const struct bpf_program * prog,const char * tp_category,const char * tp_name) bpf_program__attach_tracepoint() argument 12620 attach_tp(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_tp() argument 12653 bpf_program__attach_raw_tracepoint_opts(const struct bpf_program * prog,const char * tp_name,struct bpf_raw_tracepoint_opts * opts) bpf_program__attach_raw_tracepoint_opts() argument 12689 bpf_program__attach_raw_tracepoint(const struct bpf_program * prog,const char * tp_name) bpf_program__attach_raw_tracepoint() argument 12695 attach_raw_tp(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_raw_tp() argument 12737 bpf_program__attach_btf_id(const struct bpf_program * prog,const struct bpf_trace_opts * opts) bpf_program__attach_btf_id() argument 12772 bpf_program__attach_trace(const struct bpf_program * prog) bpf_program__attach_trace() argument 12777 bpf_program__attach_trace_opts(const struct bpf_program * prog,const struct bpf_trace_opts * opts) bpf_program__attach_trace_opts() argument 12783 bpf_program__attach_lsm(const struct bpf_program * prog) bpf_program__attach_lsm() argument 12788 attach_trace(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_trace() argument 12794 attach_lsm(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_lsm() argument 12801 bpf_program_attach_fd(const struct bpf_program * prog,int target_fd,const char * target_name,const struct bpf_link_create_opts * opts) bpf_program_attach_fd() argument 12835 bpf_program__attach_cgroup(const struct bpf_program * prog,int cgroup_fd) bpf_program__attach_cgroup() argument 12841 bpf_program__attach_netns(const struct bpf_program * prog,int netns_fd) bpf_program__attach_netns() argument 12847 bpf_program__attach_sockmap(const struct bpf_program * prog,int map_fd) bpf_program__attach_sockmap() argument 12852 bpf_program__attach_xdp(const struct bpf_program * prog,int ifindex) bpf_program__attach_xdp() argument 12859 bpf_program__attach_cgroup_opts(const struct bpf_program * prog,int cgroup_fd,const struct bpf_cgroup_opts * opts) bpf_program__attach_cgroup_opts() argument 12887 bpf_program__attach_tcx(const struct bpf_program * prog,int ifindex,const struct bpf_tcx_opts * opts) bpf_program__attach_tcx() argument 12922 bpf_program__attach_netkit(const struct bpf_program * prog,int ifindex,const struct bpf_netkit_opts * opts) bpf_program__attach_netkit() argument 12955 bpf_program__attach_freplace(const struct bpf_program * prog,int target_fd,const char * attach_func_name) bpf_program__attach_freplace() argument 12993 bpf_program__attach_iter(const struct bpf_program * prog,const struct bpf_iter_attach_opts * opts) bpf_program__attach_iter() argument 13031 attach_iter(const struct bpf_program * prog,long cookie,struct bpf_link ** link) attach_iter() argument 13037 bpf_program__attach_netfilter(const struct bpf_program * prog,const struct bpf_netfilter_opts * opts) bpf_program__attach_netfilter() argument 13077 bpf_program__attach(const struct bpf_program * prog) bpf_program__attach() argument 13774 bpf_program__set_attach_target(struct bpf_program * prog,int attach_prog_fd,const char * attach_func_name) bpf_program__set_attach_target() argument 13956 struct bpf_program **prog = prog_skel->prog; populate_skeleton_progs() local 14097 struct bpf_program *prog = *prog_skel->prog; bpf_object__attach_skeleton() local [all...] |
/linux/scripts/ |
H A D | sphinx-pre-install | 92 foreach my $prog (sort keys %missing) { 93 my $is_optional = $missing{$prog}; 108 print "Warning: better to also install \"$prog\".\n"; 110 print "ERROR: please install \"$prog\", otherwise, build won't work.\n"; 113 if (defined($map{$prog})) { 114 $install .= " " . $map{$prog}; 116 $install .= " " . $prog; 158 my $prog = shift; 176 my $prog = shift; 179 return $prog i [all...] |
/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | offload.c | 46 /* Grab a single ref to the map for our record. The prog destroy ndo in nfp_map_ptr_record() 112 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() 134 for (i = 0; i < prog->aux->used_map_cnt; i++) in nfp_map_ptrs_record() 135 if (bpf_map_offload_neutral(prog->aux->used_maps[i])) { in nfp_map_ptrs_record() 137 prog->aux->used_maps[i]); in nfp_map_ptrs_record() 146 mutex_unlock(&prog->aux->used_maps_mutex); in nfp_map_ptrs_record() 151 nfp_prog_prepare(struct nfp_prog *nfp_prog, const struct bpf_insn *prog, in nfp_prog_prepare() argument 191 nfp_bpf_verifier_prep(struct bpf_prog * prog) nfp_bpf_verifier_prep() argument 219 nfp_bpf_translate(struct bpf_prog * prog) nfp_bpf_translate() argument 247 nfp_bpf_destroy(struct bpf_prog * prog) nfp_bpf_destroy() argument 485 nfp_bpf_offload_check_mtu(struct nfp_net * nn,struct bpf_prog * prog,unsigned int mtu) nfp_bpf_offload_check_mtu() argument 497 nfp_net_bpf_load(struct nfp_net * nn,struct bpf_prog * prog,struct netlink_ext_ack * extack) nfp_net_bpf_load() argument 576 nfp_net_bpf_offload(struct nfp_net * nn,struct bpf_prog * prog,bool old_prog,struct netlink_ext_ack * extack) nfp_net_bpf_offload() argument [all...] |