Home
last modified time | relevance | path

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

123456

/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.h279 LIBBPF_API struct bpf_program *
292 struct bpf_program;
294 LIBBPF_API struct bpf_program *
295 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prog);
302 LIBBPF_API struct bpf_program *
303 bpf_object__prev_program(const struct bpf_object *obj, struct bpf_program *prog);
305 LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog,
308 LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog);
309 LIBBPF_API const char *bpf_program__section_name(const struct bpf_program *prog);
310 LIBBPF_API bool bpf_program__autoload(const struct bpf_program *prog);
[all …]
H A 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…
H A Dlibbpf.c72 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog);
391 struct bpf_program { struct
462 struct bpf_program **progs; argument
637 struct bpf_program *programs;
700 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
711 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
748 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
812 struct bpf_program *prog, *progs; in bpf_object__add_programs()
1070 struct bpf_program *prog; in bpf_map__init_kern_struct_ops()
3030 static bool prog_needs_vmlinux_btf(struct bpf_program *prog) in prog_needs_vmlinux_btf()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A Dreference_tracking.c13 struct bpf_program *prog; in test_reference_tracking()
27 struct bpf_program *p; in test_reference_tracking()
H A 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()
H A 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()
358 struct bpf_program *prog; in test_obj_load_failure_common()
H A 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()
H A Dtailcalls.c13 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()
H A Dparse_tcp_hdr_opt.c31 struct bpf_program *prog; in test_parse_opt()
61 struct bpf_program *prog; in test_parse_opt_dynptr()
H A Drcu_read_lock.c83 struct bpf_program *prog; in test_inproper_region()
110 struct bpf_program *prog; in test_rcuptr_misuse()
H A 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()
H A Dsk_lookup.c69 struct bpf_program *lookup_prog;
70 struct bpf_program *reuseport_prog;
86 static int attach_reuseport(int sock_fd, struct bpf_program *reuseport_prog) in attach_reuseport()
145 struct bpf_program *reuseport_prog) in make_server()
469 static struct bpf_link *attach_lookup_prog(struct bpf_program *prog) in attach_lookup_prog()
1082 struct bpf_program *lookup_prog, in run_sk_assign()
1135 struct bpf_program *lookup_prog) in run_sk_assign_v4()
1141 struct bpf_program *lookup_prog) in run_sk_assign_v6()
1209 struct bpf_program *prog1;
1210 struct bpf_program *prog2;
H A Dhelper_restricted.c21 struct bpf_program *prog = *test->skeleton->progs[j].prog; in test_helper_restricted()
H A Dtest_skb_pkt_end.c7 static int sanity_run(struct bpf_program *prog) in sanity_run()
/openbmc/linux/include/uapi/linux/netfilter/
H A 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
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxskxceiver.h155 struct bpf_program *xdp_prog;
181 struct bpf_program *xdp_prog_rx;
182 struct bpf_program *xdp_prog_tx;
H A Dtest_loader.c162 struct bpf_program *prog, in parse_test_spec()
344 struct bpf_program *prog) in prepare_case()
381 struct bpf_program *prog, in validate_case()
541 struct bpf_program *tprog, *tprog_iter; in run_subtest()
649 struct bpf_program *prog; in process_subtest()
/openbmc/linux/samples/bpf/
H A Dtest_cgrp2_sock2.c38 struct bpf_program *progs[2]; in main()
39 struct bpf_program *prog; in main()
H A Dxdp_fwd_user.c122 struct bpf_program *prog = NULL; in main()
123 struct bpf_program *pos; in main()
H A Dsampleip_user.c36 static int sampling_start(int freq, struct bpf_program *prog, in sampling_start()
143 struct bpf_program *prog; in main()
H A Dtracex1_user.c10 struct bpf_program *prog; in main()
/openbmc/linux/arch/um/drivers/
H A Dpcap_user.c51 pri->compiled = uml_kmalloc(sizeof(struct bpf_program), in pcap_user_open()
59 (struct bpf_program *) pri->compiled, in pcap_user_open()
/openbmc/linux/net/netfilter/
H A 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()
/openbmc/linux/samples/hid/
H A Dhid_surface_dial.c89 static int attach_prog(struct hid_surface_dial *skel, struct bpf_program *prog, int hid_id) in attach_prog()
147 struct bpf_program *prog; in main()

123456