Home
last modified time | relevance | path

Searched refs:bpf_program (Results 1 – 25 of 136) sorted by relevance

123456

/linux-6.12.1/tools/lib/bpf/
Dlibbpf.h309 LIBBPF_API struct bpf_program *
322 struct bpf_program;
324 LIBBPF_API struct bpf_program *
325 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prog);
332 LIBBPF_API struct bpf_program *
333 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *prog);
335 LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog,
338 LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog);
339 LIBBPF_API const char *bpf_program__section_name(const struct bpf_program *prog);
340 LIBBPF_API bool bpf_program__autoload(const struct bpf_program *prog);
[all …]
Dlibbpf_legacy.h123 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…
Dlibbpf.c75 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog);
428 struct bpf_program { struct
499 struct bpf_program **progs; argument
677 struct bpf_program *programs;
748 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
759 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
796 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
861 struct bpf_program *prog, *progs; in bpf_object__add_programs()
1052 const struct bpf_program *prog) in is_valid_st_ops_program()
1071 struct bpf_program *prog, *slot_prog; in bpf_object_adjust_struct_ops_autoload()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dtrampoline_count.c10 static struct bpf_program *load_prog(char *file, char *name, struct inst *inst) in load_prog()
13 struct bpf_program *prog; in load_prog()
39 struct bpf_program *prog; in serial_test_trampoline_count()
Dreference_tracking.c13 struct bpf_program *prog; in test_reference_tracking()
27 struct bpf_program *p; in test_reference_tracking()
Dcustom_sec_handlers.c13 static int custom_setup_prog(struct bpf_program *prog, long cookie) in custom_setup_prog()
21 static int custom_prepare_load_prog(struct bpf_program *prog, in custom_prepare_load_prog()
32 static int custom_attach_prog(const struct bpf_program *prog, long cookie, in custom_attach_prog()
Dfexit_bpf2bpf.c66 struct bpf_program **prog = NULL, *p; in test_fexit_bpf2bpf_common()
93 prog = calloc(sizeof(struct bpf_program *), prog_cnt); in test_fexit_bpf2bpf_common()
112 struct bpf_program *pos; in test_fexit_bpf2bpf_common()
233 struct bpf_program *prog = NULL; in test_second_attach()
291 struct bpf_program *prog; in test_fmod_ret_freplace()
359 struct bpf_program *prog; in test_obj_load_failure_common()
Dcheck_mtu.c44 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()
Dparse_tcp_hdr_opt.c31 struct bpf_program *prog; in test_parse_opt()
61 struct bpf_program *prog; in test_parse_opt_dynptr()
Drecursive_attach.c40 struct bpf_program *prog; in test_recursive_fentry_chain()
117 struct bpf_program *prog; in test_fentry_attach_btf_presence()
Dtailcalls.c19 struct bpf_program *prog; in test_tailcall_1()
155 struct bpf_program *prog; in test_tailcall_2()
234 struct bpf_program *prog; in test_tailcall_count()
415 struct bpf_program *prog; in test_tailcall_4()
505 struct bpf_program *prog; in test_tailcall_5()
595 struct bpf_program *prog; in test_tailcall_bpf2bpf_1()
679 struct bpf_program *prog; in test_tailcall_bpf2bpf_2()
759 struct bpf_program *prog; in test_tailcall_bpf2bpf_3()
854 struct bpf_program *prog; in test_tailcall_bpf2bpf_4()
1018 struct bpf_program *prog; in test_tailcall_bpf2bpf_fentry_entry()
[all …]
Dtest_overhead.c65 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()
Drcu_read_lock.c89 struct bpf_program *prog; in test_inproper_region()
116 struct bpf_program *prog; in test_rcuptr_misuse()
Dsk_lookup.c67 struct bpf_program *lookup_prog;
68 struct bpf_program *reuseport_prog;
90 static int attach_reuseport(int sock_fd, struct bpf_program *reuseport_prog) in attach_reuseport()
156 struct bpf_program *reuseport_prog) in make_server()
410 static struct bpf_link *attach_lookup_prog(struct bpf_program *prog) in attach_lookup_prog()
1026 struct bpf_program *lookup_prog, in run_sk_assign()
1079 struct bpf_program *lookup_prog) in run_sk_assign_v4()
1085 struct bpf_program *lookup_prog) in run_sk_assign_v6()
1153 struct bpf_program *prog1;
1154 struct bpf_program *prog2;
Dhelper_restricted.c21 struct bpf_program *prog = *test->skeleton->progs[j].prog; in test_helper_restricted()
Dtest_skb_pkt_end.c7 static int sanity_run(struct bpf_program *prog) in sanity_run()
Dcb_refs.c25 struct bpf_program *prog; in test_cb_refs()
/linux-6.12.1/include/uapi/linux/netfilter/
Dxt_bpf.h16 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.12.1/tools/testing/selftests/bpf/
Dxskxceiver.h138 struct bpf_program *xdp_prog;
165 struct bpf_program *xdp_prog_rx;
166 struct bpf_program *xdp_prog_tx;
/linux-6.12.1/samples/bpf/
Dtest_cgrp2_sock2.c38 struct bpf_program *progs[2]; in main()
39 struct bpf_program *prog; in main()
Dxdp_fwd_user.c122 struct bpf_program *prog = NULL; in main()
123 struct bpf_program *pos; in main()
Dsampleip_user.c36 static int sampling_start(int freq, struct bpf_program *prog, in sampling_start()
143 struct bpf_program *prog; in main()
Dtracex1_user.c10 struct bpf_program *prog; in main()
Dtracex7_user.c10 struct bpf_program *prog; in main()
/linux-6.12.1/net/netfilter/
Dxt_bpf.c68 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()

123456