Home
last modified time | relevance | path

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

123456

/linux/tools/lib/bpf/
H A Dlibbpf.h322 LIBBPF_API struct bpf_program *
334 /* Accessors of bpf_program */
335 struct bpf_program;
337 LIBBPF_API struct bpf_program *
338 bpf_object__next_program(const struct bpf_object *obj, struct bpf_program *prog);
345 LIBBPF_API struct bpf_program *
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 *pro
[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 *prog);
H A Dlibbpf.c77 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog);
431 struct bpf_program { struct
502 struct bpf_program **progs; argument
687 struct bpf_program *programs;
759 void bpf_program__unload(struct bpf_program *prog) in bpf_program__unload()
770 static void bpf_program__exit(struct bpf_program *prog) in bpf_program__exit()
807 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
831 * SEC("abc...") but the corresponding bpf_program starts out with in bpf_object__init_prog()
872 struct bpf_program *prog, *progs; in bpf_object__add_programs()
956 struct bpf_program *pro in bpf_object_bswap_progs()
432 namebpf_program global() argument
433 sec_namebpf_program global() argument
434 sec_idxbpf_program global() argument
435 sec_defbpf_program global() argument
439 sec_insn_offbpf_program global() argument
444 sec_insn_cntbpf_program global() argument
453 sub_insn_offbpf_program global() argument
460 insnsbpf_program global() argument
465 insns_cntbpf_program global() argument
467 reloc_descbpf_program global() argument
468 nr_relocbpf_program global() argument
471 log_bufbpf_program global() argument
472 log_sizebpf_program global() argument
473 log_levelbpf_program global() argument
475 objbpf_program global() argument
477 fdbpf_program global() argument
478 autoloadbpf_program global() argument
[all...]
/linux/tools/perf/util/
H A Dtrace_augment.h6 struct bpf_program;
16 struct bpf_program *augmented_syscalls__find_by_title(const char *name);
17 struct bpf_program *augmented_syscalls__unaugmented(void);
49 static inline struct bpf_program *
55 static inline struct bpf_program *augmented_syscalls__unaugmented(void) in augmented_syscalls__unaugmented()
H A Dbpf_trace_augment.c15 struct bpf_program *prog; in augmented_syscalls__prepare()
118 struct bpf_program *augmented_syscalls__unaugmented(void) in augmented_syscalls__unaugmented()
123 struct bpf_program *augmented_syscalls__find_by_title(const char *name) in augmented_syscalls__find_by_title()
125 struct bpf_program *pos; in augmented_syscalls__find_by_title()
/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 Dfree_timer.c11 struct bpf_program *start_prog;
12 struct bpf_program *overwrite_prog;
120 struct bpf_program *prog; in test_free_timer()
H A Dreference_tracking.c13 struct bpf_program *prog; in test_reference_tracking()
27 struct bpf_program *p; in test_reference_tracking()
H A Drecursive_attach.c40 struct bpf_program *prog; in test_recursive_fentry_chain()
117 struct bpf_program *prog; in test_fentry_attach_btf_presence()
174 struct bpf_program *prog; in test_fentry_attach_stress()
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 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 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 Dsummarization.c20 struct bpf_program *freplace_prog = NULL; in test_aux()
21 struct bpf_program *main_prog = NULL; in test_aux()
H A Dtask_kfunc.c39 struct bpf_program *prog; in run_success_test()
74 struct bpf_program *prog; in run_vpid_test()
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 Dstream.c72 struct bpf_program **prog; in test_stream_errors()
74 prog = (struct bpf_program **)(((char *)skel) + stream_error_arr[i].prog_off); in test_stream_errors()
H A Drcu_read_lock.c92 struct bpf_program *prog; in test_inproper_region()
119 struct bpf_program *prog; in test_rcuptr_misuse()
H A Dtailcalls.c20 struct bpf_program *prog; in test_tailcall_1()
156 struct bpf_program *prog; in test_tailcall_2()
235 struct bpf_program *prog; in test_tailcall_count()
416 struct bpf_program *prog; in test_tailcall_4()
506 struct bpf_program *prog; in test_tailcall_5()
596 struct bpf_program *prog; in test_tailcall_bpf2bpf_1()
680 struct bpf_program *prog; in test_tailcall_bpf2bpf_2()
760 struct bpf_program *prog; in test_tailcall_bpf2bpf_3()
855 struct bpf_program *prog; in test_tailcall_bpf2bpf_4()
1019 struct bpf_program *pro in test_tailcall_bpf2bpf_fentry_entry()
[all...]
H A 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 *prog
[all...]
H A Dxdp_vlan.c71 static void xdp_vlan(struct bpf_program *xdp, struct bpf_program *tc, u32 flags) in xdp_vlan()
H A Dhelper_restricted.c21 struct bpf_program *prog = *test->skeleton->progs[j].prog; in test_helper_restricted()
/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
/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()
/linux/samples/bpf/
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()

123456