| /linux/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() 84 struct bpf_object *obj; in test_xdp_adjust_tail_grow2() 154 struct bpf_object *obj; in test_xdp_adjust_frags_tail_shrink() 221 struct bpf_object *obj; in test_xdp_adjust_frags_tail_grow_4k() 292 struct bpf_object *obj; in test_xdp_adjust_frags_tail_grow_64k()
|
| 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 | fexit_bpf2bpf.c | 11 typedef int (*test_cb)(struct bpf_object *obj); 13 static int check_data_map(struct bpf_object *obj, int prog_cnt, bool reset) in check_data_map() 64 struct bpf_object *obj = NULL, *tgt_obj; in test_fexit_bpf2bpf_common() 229 static int test_second_attach(struct bpf_object *obj) in test_second_attach() 235 struct bpf_object *tgt_obj; in test_second_attach() 286 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 | trampoline_count.c | 6 struct bpf_object *obj; 12 struct bpf_object *obj; in load_prog()
|
| H A D | verifier.c | 297 static int init_test_val_map(struct bpf_object *obj, char *map_name) in init_test_val_map() 321 static int init_array_access_maps(struct bpf_object *obj) in init_array_access_maps() 334 static int init_value_ptr_arith_maps(struct bpf_object *obj) in init_value_ptr_arith_maps()
|
| 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 | 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 | tailcalls.c | 28 struct bpf_object *obj; in test_tailcall_1() 164 struct bpf_object *obj; in test_tailcall_2() 238 struct bpf_object *obj = NULL, *fentry_obj = NULL, *fexit_obj = NULL; in test_tailcall_count() 424 struct bpf_object *obj; in test_tailcall_4() 514 struct bpf_object *obj; in test_tailcall_5() 604 struct bpf_object *obj; in test_tailcall_bpf2bpf_1() 688 struct bpf_object *obj; in test_tailcall_bpf2bpf_2() 768 struct bpf_object *obj; in test_tailcall_bpf2bpf_3() 863 struct bpf_object *obj; in test_tailcall_bpf2bpf_4() 1022 struct bpf_object *tgt_obj = NULL, *fentry_obj = NULL; in test_tailcall_bpf2bpf_fentry_entry() [all …]
|
| H A D | reference_tracking.c | 12 struct bpf_object *obj_iter, *obj = NULL; in test_reference_tracking()
|
| H A D | stacktrace_map_raw_tp.c | 12 struct bpf_object *obj; in test_stacktrace_map_raw_tp()
|
| H A D | load_bytes_relative.c | 14 struct bpf_object *obj; in test_load_bytes_relative()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 75 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj); 76 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog); 494 struct bpf_object *obj; 571 struct bpf_object *obj; 709 struct bpf_object { struct 788 static const char *elf_sym_str(const struct bpf_object *obj, size_t off); argument 789 static const char *elf_sec_str(const struct bpf_object *obj, size_t off); 790 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx); 791 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name); 792 static Elf64_Shdr *elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn); [all …]
|
| /linux/tools/bpf/bpftool/ |
| H A D | gen.c | 153 static int codegen_datasec_def(struct bpf_object *obj, in codegen_datasec_def() 292 static int codegen_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_datasecs() 341 static int codegen_subskel_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_subskel_datasecs() 514 static void codegen_asserts(struct bpf_object *obj, const char *obj_name) in codegen_asserts() 579 static void codegen_attach_detach(struct bpf_object *obj, const char *obj_name) in codegen_attach_detach() 661 static void codegen_destroy(struct bpf_object *obj, const char *obj_name) in codegen_destroy() 704 static int gen_trace(struct bpf_object *obj, const char *obj_name, const char *header_guard) in gen_trace() 935 codegen_maps_skeleton(struct bpf_object *obj, size_t map_cnt, bool mmaped, bool populate_links) in codegen_maps_skeleton() 1003 codegen_progs_skeleton(struct bpf_object *obj, size_t prog_cnt, bool populate_links) in codegen_progs_skeleton() 1189 static int gen_st_ops_shadow(const char *obj_name, struct btf *btf, struct bpf_object *obj) in gen_st_ops_shadow() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_progs.h | 495 int bpf_find_map(const char *test, struct bpf_object *obj, const char *name); 522 typedef int (*pre_execution_cb)(struct bpf_object *obj); 529 struct bpf_object *obj; 569 void verify_test_stderr(struct bpf_object *obj, struct bpf_program *prog);
|
| H A D | flow_dissector_load.h | 9 static inline int bpf_flow_load(struct bpf_object **obj, in bpf_flow_load()
|
| H A D | testing_helpers.h | 18 struct bpf_object **pobj, int *prog_fd);
|
| /linux/samples/bpf/ |
| H A D | tracex1_user.c | 11 struct bpf_object *obj; in main()
|
| H A D | sockex1_user.c | 13 struct bpf_object *obj; in main()
|
| H A D | sockex2_user.c | 19 struct bpf_object *obj; in main()
|
| /linux/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
|