/linux-6.1.9/tools/lib/bpf/ |
D | libbpf.h | 232 LIBBPF_API struct bpf_program * 245 struct bpf_program; 247 LIBBPF_API struct bpf_program * 248 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prog); 255 LIBBPF_API struct bpf_program * 256 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *prog); 258 LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog, 261 LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog); 262 LIBBPF_API const char *bpf_program__section_name(const struct bpf_program *prog); 263 LIBBPF_API bool bpf_program__autoload(const struct bpf_program *prog); [all …]
|
D | libbpf_legacy.h | 123 struct bpf_program; 130 LIBBPF_API enum bpf_prog_type bpf_program__get_type(const struct bpf_program *prog); 131 LIBBPF_API enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *pro…
|
D | libbpf.c | 72 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog); 373 struct bpf_program { struct 444 struct bpf_program **progs; argument 615 struct bpf_program *programs; 678 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload() 689 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit() 726 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog() 790 struct bpf_program *prog, *progs; in bpf_object__add_programs() 1085 struct bpf_program *prog; in bpf_map__init_kern_struct_ops() 2950 static bool prog_needs_vmlinux_btf(struct bpf_program *prog) in prog_needs_vmlinux_btf() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | trampoline_count.c | 12 static struct bpf_program *load_prog(char *file, char *name, struct inst *inst) in load_prog() 15 struct bpf_program *prog; in load_prog() 41 struct bpf_program *prog; in serial_test_trampoline_count()
|
D | reference_tracking.c | 13 struct bpf_program *prog; in test_reference_tracking() 27 struct bpf_program *p; in test_reference_tracking()
|
D | fexit_bpf2bpf.c | 64 struct bpf_program **prog = NULL, *p; in test_fexit_bpf2bpf_common() 91 prog = calloc(sizeof(struct bpf_program *), prog_cnt); in test_fexit_bpf2bpf_common() 110 struct bpf_program *pos; in test_fexit_bpf2bpf_common() 231 struct bpf_program *prog = NULL; in test_second_attach() 289 struct bpf_program *prog; in test_fmod_ret_freplace() 356 struct bpf_program *prog; in test_obj_load_failure_common()
|
D | custom_sec_handlers.c | 13 static int custom_setup_prog(struct bpf_program *prog, long cookie) in custom_setup_prog() 21 static int custom_prepare_load_prog(struct bpf_program *prog, in custom_prepare_load_prog() 32 static int custom_attach_prog(const struct bpf_program *prog, long cookie, in custom_attach_prog()
|
D | check_mtu.c | 44 struct bpf_program *prog; in test_check_mtu_xdp_attach() 79 struct bpf_program *prog, in test_check_mtu_run_xdp() 132 struct bpf_program *prog, in test_check_mtu_run_tc()
|
D | dynptr.c | 55 struct bpf_program *prog; in verify_fail() 91 struct bpf_program *prog; in verify_success()
|
D | tailcalls.c | 13 struct bpf_program *prog; in test_tailcall_1() 149 struct bpf_program *prog; in test_tailcall_2() 225 struct bpf_program *prog; in test_tailcall_count() 321 struct bpf_program *prog; in test_tailcall_4() 411 struct bpf_program *prog; in test_tailcall_5() 501 struct bpf_program *prog; in test_tailcall_bpf2bpf_1() 585 struct bpf_program *prog; in test_tailcall_bpf2bpf_2() 665 struct bpf_program *prog; in test_tailcall_bpf2bpf_3() 760 struct bpf_program *prog; in test_tailcall_bpf2bpf_4()
|
D | kfunc_dynptr_param.c | 49 struct bpf_program *prog; in verify_fail() 98 struct bpf_program *prog; in verify_success()
|
D | test_overhead.c | 65 struct bpf_program *kprobe_prog, *kretprobe_prog, *raw_tp_prog; in test_test_overhead() 66 struct bpf_program *fentry_prog, *fexit_prog; in test_test_overhead()
|
D | sk_lookup.c | 70 struct bpf_program *lookup_prog; 71 struct bpf_program *reuseport_prog; 87 static int attach_reuseport(int sock_fd, struct bpf_program *reuseport_prog) in attach_reuseport() 146 struct bpf_program *reuseport_prog) in make_server() 470 static struct bpf_link *attach_lookup_prog(struct bpf_program *prog) in attach_lookup_prog() 1083 struct bpf_program *lookup_prog, in run_sk_assign() 1136 struct bpf_program *lookup_prog) in run_sk_assign_v4() 1142 struct bpf_program *lookup_prog) in run_sk_assign_v6() 1210 struct bpf_program *prog1; 1211 struct bpf_program *prog2;
|
D | helper_restricted.c | 21 struct bpf_program *prog = *test->skeleton->progs[j].prog; in test_helper_restricted()
|
D | test_skb_pkt_end.c | 7 static int sanity_run(struct bpf_program *prog) in sanity_run()
|
D | cb_refs.c | 25 struct bpf_program *prog; in test_cb_refs()
|
/linux-6.1.9/include/uapi/linux/netfilter/ |
D | xt_bpf.h | 16 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; member 34 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; member
|
/linux-6.1.9/samples/bpf/ |
D | test_cgrp2_sock2.c | 38 struct bpf_program *progs[2]; in main() 39 struct bpf_program *prog; in main()
|
D | xdp_fwd_user.c | 122 struct bpf_program *prog = NULL; in main() 123 struct bpf_program *pos; in main()
|
D | sampleip_user.c | 36 static int sampling_start(int freq, struct bpf_program *prog, in sampling_start() 143 struct bpf_program *prog; in main()
|
D | tracex1_user.c | 10 struct bpf_program *prog; in main()
|
D | tracex7_user.c | 10 struct bpf_program *prog; in main()
|
/linux-6.1.9/net/netfilter/ |
D | xt_bpf.c | 68 return __bpf_mt_check_bytecode(info->bpf_program, in bpf_mt_check() 78 return __bpf_mt_check_bytecode(info->bpf_program, in bpf_mt_check_v1()
|
/linux-6.1.9/arch/um/drivers/ |
D | pcap_user.c | 51 pri->compiled = uml_kmalloc(sizeof(struct bpf_program), in pcap_user_open() 59 (struct bpf_program *) pri->compiled, in pcap_user_open()
|
/linux-6.1.9/tools/perf/util/ |
D | bpf-loader.c | 40 int bpf_program__set_insns(struct bpf_program *prog __maybe_unused, in bpf_program__set_insns() 128 static void *program_priv(const struct bpf_program *prog) in program_priv() 146 static int libbpf_prog_prepare_load_fn(struct bpf_program *prog, in libbpf_prog_prepare_load_fn() 297 clear_prog_priv(const struct bpf_program *prog __maybe_unused, in clear_prog_priv() 353 static int program_set_priv(struct bpf_program *prog, void *priv) in program_set_priv() 562 config_bpf_program(struct bpf_program *prog) in config_bpf_program() 656 preproc_gen_prologue(struct bpf_program *prog, int n, in preproc_gen_prologue() 808 static int hook_load_preprocessor(struct bpf_program *prog) in hook_load_preprocessor() 872 struct bpf_program *prog; in bpf__probe() 936 struct bpf_program *prog; in bpf__unprobe() [all …]
|