| /linux-6.15/tools/lib/bpf/ |
| H A D | libbpf.h | 113 struct bpf_object; 227 LIBBPF_API struct bpf_object * 240 LIBBPF_API struct bpf_object * 255 int bpf_object__prepare(struct bpf_object *obj); 264 LIBBPF_API int bpf_object__load(struct bpf_object *obj); 271 LIBBPF_API void bpf_object__close(struct bpf_object *obj); 297 LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj, 299 LIBBPF_API int bpf_object__pin_programs(struct bpf_object *obj, 323 bpf_object__find_program_by_name(const struct bpf_object *obj, 1733 struct bpf_object **obj; [all …]
|
| H A D | libbpf.c | 473 struct bpf_object *obj; 544 struct bpf_object *obj; 679 struct bpf_object { struct 1138 struct bpf_object *obj = map->obj; in bpf_map__init_kern_struct_ops() 1487 struct bpf_object *obj; in bpf_object__new() 4499 struct bpf_object *obj = prog->obj; in bpf_program__record_reloc() 7984 struct bpf_object *obj; in bpf_object_open() 8084 struct bpf_object * 8098 struct bpf_object * 8186 struct bpf_object *obj = ctx; in kallsyms_cb() [all …]
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | global_data.c | 5 static void test_global_data_number(struct bpf_object *obj, __u32 duration) in test_global_data_number() 40 static void test_global_data_string(struct bpf_object *obj, __u32 duration) in test_global_data_string() 75 static void test_global_data_struct(struct bpf_object *obj, __u32 duration) in test_global_data_struct() 103 static void test_global_data_rdonly(struct bpf_object *obj, __u32 duration) in test_global_data_rdonly() 135 struct bpf_object *obj; in test_global_data()
|
| H A D | xdp_adjust_tail.c | 9 struct bpf_object *obj; in test_xdp_adjust_tail_shrink() 43 struct bpf_object *obj; in test_xdp_adjust_tail_grow() 79 struct bpf_object *obj; in test_xdp_adjust_tail_grow2() 149 struct bpf_object *obj; in test_xdp_adjust_frags_tail_shrink() 216 struct bpf_object *obj; in test_xdp_adjust_frags_tail_grow()
|
| H A D | fexit_bpf2bpf.c | 10 typedef int (*test_cb)(struct bpf_object *obj); 12 static int check_data_map(struct bpf_object *obj, int prog_cnt, bool reset) in check_data_map() 63 struct bpf_object *obj = NULL, *tgt_obj; in test_fexit_bpf2bpf_common() 228 static int test_second_attach(struct bpf_object *obj) in test_second_attach() 234 struct bpf_object *tgt_obj; in test_second_attach() 285 struct bpf_object *freplace_obj = NULL, *pkt_obj, *fmod_obj = NULL; in test_fmod_ret_freplace() 358 struct bpf_object *obj = NULL, *pkt_obj; in test_obj_load_failure_common()
|
| H A D | subskeleton.c | 8 static void subskeleton_lib_setup(struct bpf_object *obj) in subskeleton_lib_setup() 23 static int subskeleton_lib_subresult(struct bpf_object *obj) in subskeleton_lib_subresult() 87 struct bpf_object *obj; in subtest_obj_subskeleton()
|
| H A D | global_func_args.c | 7 static void test_global_func_args0(struct bpf_object *obj) in test_global_func_args0() 43 struct bpf_object *obj; in test_global_func_args()
|
| H A D | trampoline_count.c | 6 struct bpf_object *obj; 12 struct bpf_object *obj; in load_prog()
|
| H A D | verifier.c | 240 static int init_test_val_map(struct bpf_object *obj, char *map_name) in init_test_val_map() 264 static int init_array_access_maps(struct bpf_object *obj) in init_array_access_maps() 276 static int init_value_ptr_arith_maps(struct bpf_object *obj) in init_value_ptr_arith_maps()
|
| H A D | tailcalls.c | 21 struct bpf_object *obj; in test_tailcall_1() 157 struct bpf_object *obj; in test_tailcall_2() 231 struct bpf_object *obj = NULL, *fentry_obj = NULL, *fexit_obj = NULL; in test_tailcall_count() 417 struct bpf_object *obj; in test_tailcall_4() 507 struct bpf_object *obj; in test_tailcall_5() 597 struct bpf_object *obj; in test_tailcall_bpf2bpf_1() 681 struct bpf_object *obj; in test_tailcall_bpf2bpf_2() 761 struct bpf_object *obj; in test_tailcall_bpf2bpf_3() 856 struct bpf_object *obj; in test_tailcall_bpf2bpf_4() 1015 struct bpf_object *tgt_obj = NULL, *fentry_obj = NULL; in test_tailcall_bpf2bpf_fentry_entry() [all …]
|
| H A D | tcp_estats.c | 8 struct bpf_object *obj; in test_tcp_estats()
|
| H A D | xdp_attach.c | 11 struct bpf_object *obj1, *obj2, *obj3; in test_xdp_attach() 109 struct bpf_object *obj = NULL; in test_xdp_attach_fail()
|
| H A D | test_xdp_veth.c | 118 static int attach_programs_to_veth_pair(struct bpf_object **objs, size_t nb_obj, in attach_programs_to_veth_pair() 251 struct bpf_object *bpf_objs[VETH_REDIRECT_SKEL_NB]; in xdp_veth_redirect() 344 struct bpf_object *bpf_objs[BROADCAST_REDIRECT_SKEL_NB]; in xdp_veth_broadcast_redirect() 461 struct bpf_object *bpf_objs[VETH_EGRESS_SKEL_NB]; in xdp_veth_egress()
|
| H A D | pkt_md_access.c | 8 struct bpf_object *obj; in test_pkt_md_access()
|
| H A D | skb_helpers.c | 20 struct bpf_object *obj; in test_skb_helpers()
|
| H A D | xdp_perf.c | 7 struct bpf_object *obj; in test_xdp_perf()
|
| H A D | pkt_access.c | 8 struct bpf_object *obj; in test_pkt_access()
|
| H A D | reference_tracking.c | 12 struct bpf_object *obj_iter, *obj = NULL; in test_reference_tracking()
|
| /linux-6.15/tools/bpf/bpftool/ |
| H A D | gen.c | 147 static int codegen_datasec_def(struct bpf_object *obj, in codegen_datasec_def() 275 static int codegen_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_datasecs() 324 static int codegen_subskel_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_subskel_datasecs() 497 static void codegen_asserts(struct bpf_object *obj, const char *obj_name) in codegen_asserts() 562 static void codegen_attach_detach(struct bpf_object *obj, const char *obj_name) in codegen_attach_detach() 644 static void codegen_destroy(struct bpf_object *obj, const char *obj_name) in codegen_destroy() 920 codegen_progs_skeleton(struct bpf_object *obj, size_t prog_cnt, bool populate_links) in codegen_progs_skeleton() 1106 static int gen_st_ops_shadow(const char *obj_name, struct btf *btf, struct bpf_object *obj) in gen_st_ops_shadow() 1140 static void gen_st_ops_shadow_init(struct btf *btf, struct bpf_object *obj) in gen_st_ops_shadow_init() 1171 struct bpf_object *obj = NULL; in do_skeleton() [all …]
|
| /linux-6.15/samples/bpf/ |
| H A D | tracex1_user.c | 11 struct bpf_object *obj; in main()
|
| H A D | sockex2_user.c | 19 struct bpf_object *obj; in main()
|
| H A D | sockex1_user.c | 13 struct bpf_object *obj; in main()
|
| /linux-6.15/Documentation/bpf/libbpf/ |
| H A D | libbpf_naming_convention.rst | 31 structures such as ``struct bpf_object``, ``struct bpf_program``, 40 For example ``struct bpf_object`` represents ELF object itself created 48 object, ``bpf_object``, double underscore and ``open`` that defines the 49 purpose of the function to open ELF file and create ``bpf_object`` from
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | test_progs.h | 463 int bpf_find_map(const char *test, struct bpf_object *obj, const char *name); 490 typedef int (*pre_execution_cb)(struct bpf_object *obj); 497 struct bpf_object *obj;
|
| H A D | flow_dissector_load.h | 9 static inline int bpf_flow_load(struct bpf_object **obj, in bpf_flow_load()
|