Home
last modified time | relevance | path

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

1234

/Linux-v5.15/tools/lib/bpf/
Dlibbpf.h160 LIBBPF_API struct bpf_program *
163 LIBBPF_API struct bpf_program *
188 struct bpf_program;
189 LIBBPF_API struct bpf_program *bpf_program__next(struct bpf_program *prog,
197 LIBBPF_API struct bpf_program *bpf_program__prev(struct bpf_program *prog,
200 typedef void (*bpf_program_clear_priv_t)(struct bpf_program *, void *);
202 LIBBPF_API int bpf_program__set_priv(struct bpf_program *prog, void *priv,
205 LIBBPF_API void *bpf_program__priv(const struct bpf_program *prog);
206 LIBBPF_API void bpf_program__set_ifindex(struct bpf_program *prog,
209 LIBBPF_API const char *bpf_program__name(const struct bpf_program *prog);
[all …]
Dlibbpf.c73 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog);
222 struct bpf_program *prog);
240 struct bpf_program { struct
316 struct bpf_program **progs; argument
440 struct bpf_program *programs;
530 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
556 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
579 static char *__bpf_program__pin_name(struct bpf_program *prog) in __bpf_program__pin_name()
611 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
665 struct bpf_program *prog, *progs; in bpf_object__add_programs()
[all …]
/Linux-v5.15/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-v5.15/samples/bpf/
Dtest_cgrp2_sock2.c38 struct bpf_program *progs[2]; in main()
39 struct bpf_program *prog; 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()
Dxdp_redirect_cpu_user.c69 struct bpf_program *pos; in print_avail_progs()
181 struct bpf_program *prog; in set_cpumap_prog()
318 struct bpf_program *prog; in main()
Dtracex5_user.c38 struct bpf_program *prog; in main()
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dtailcalls.c13 struct bpf_program *prog; in test_tailcall_1()
151 struct bpf_program *prog; in test_tailcall_2()
229 struct bpf_program *prog; in test_tailcall_3()
307 struct bpf_program *prog; in test_tailcall_4()
395 struct bpf_program *prog; in test_tailcall_5()
483 struct bpf_program *prog; in test_tailcall_bpf2bpf_1()
567 struct bpf_program *prog; in test_tailcall_bpf2bpf_2()
645 struct bpf_program *prog; in test_tailcall_bpf2bpf_3()
742 struct bpf_program *prog; in test_tailcall_bpf2bpf_4()
Dcheck_mtu.c44 struct bpf_program *prog; in test_check_mtu_xdp_attach()
79 struct bpf_program *prog, in test_check_mtu_run_xdp()
139 struct bpf_program *prog, in test_check_mtu_run_tc()
Dfexit_bpf2bpf.c63 struct bpf_program **prog = NULL; in test_fexit_bpf2bpf_common()
88 prog = calloc(sizeof(struct bpf_program *), prog_cnt); in test_fexit_bpf2bpf_common()
215 struct bpf_program *prog = NULL; in test_second_attach()
271 struct bpf_program *prog; in test_fmod_ret_freplace()
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()
Dsk_lookup.c71 struct bpf_program *lookup_prog;
72 struct bpf_program *reuseport_prog;
88 static int attach_reuseport(int sock_fd, struct bpf_program *reuseport_prog) in attach_reuseport()
147 struct bpf_program *reuseport_prog) in make_server()
471 static struct bpf_link *attach_lookup_prog(struct bpf_program *prog) in attach_lookup_prog()
1053 struct bpf_program *lookup_prog, in run_sk_assign()
1106 struct bpf_program *lookup_prog) in run_sk_assign_v4()
1112 struct bpf_program *lookup_prog) in run_sk_assign_v6()
1180 struct bpf_program *prog1;
1181 struct bpf_program *prog2;
Dtest_skb_pkt_end.c7 static int sanity_run(struct bpf_program *prog) in sanity_run()
Dreference_tracking.c13 struct bpf_program *prog; in test_reference_tracking()
Dsockopt_multi.c9 struct bpf_program *prog; in prog_attach()
38 struct bpf_program *prog; in prog_detach()
Dstacktrace_map_raw_tp.c11 struct bpf_program *prog; in test_stacktrace_map_raw_tp()
Dload_bytes_relative.c15 struct bpf_program *prog; in test_load_bytes_relative()
Dpe_preserve_elems.c9 static void test_one_map(struct bpf_map *map, struct bpf_program *prog, in test_one_map()
Dtest_profiler.c9 static int sanity_run(struct bpf_program *prog) in sanity_run()
/Linux-v5.15/kernel/bpf/preload/iterators/
Diterators.skel.h17 struct bpf_program *dump_bpf_map;
18 struct bpf_program *dump_bpf_prog;
/Linux-v5.15/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()
/Linux-v5.15/arch/um/drivers/
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()
/Linux-v5.15/tools/testing/selftests/bpf/
Dflow_dissector_load.h16 struct bpf_program *prog, *main_prog; in bpf_flow_load()

1234