/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | bpf-loader.h | 44 struct bpf_object; 49 int fd, struct bpf_object *obj, void *arg); 52 struct bpf_object *bpf__prepare_load(const char *filename, bool source); 56 struct bpf_object *bpf__prepare_load_buffer(void *obj_buf, size_t obj_buf_sz, 61 int bpf__probe(struct bpf_object *obj); 62 int bpf__unprobe(struct bpf_object *obj); 63 int bpf__strerror_probe(struct bpf_object *obj, int err, 66 int bpf__load(struct bpf_object *obj); 67 int bpf__strerror_load(struct bpf_object *obj, int err, 69 int bpf__foreach_event(struct bpf_object *ob [all...] |
H A D | bpf-loader.c | 51 struct bpf_object * 54 struct bpf_object *obj; in bpf__prepare_load_buffer() 70 struct bpf_object *bpf__prepare_load(const char *filename, bool source) in bpf__prepare_load() 72 struct bpf_object *obj; in bpf__prepare_load() 113 struct bpf_object *obj, *tmp; in bpf__clear() 626 int bpf__probe(struct bpf_object *obj) in bpf__probe() 687 int bpf__unprobe(struct bpf_object *obj) in bpf__unprobe() 727 int bpf__load(struct bpf_object *obj) in bpf__load() 741 int bpf__foreach_event(struct bpf_object *obj, in bpf__foreach_event() 1165 bpf__obj_config_map(struct bpf_object *ob [all...] |
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | libbpf.h | 61 struct bpf_object; 99 LIBBPF_API struct bpf_object *bpf_object__open(const char *path); 100 LIBBPF_API struct bpf_object * 102 LIBBPF_API struct bpf_object * 107 LIBBPF_API struct bpf_object * 110 LIBBPF_API struct bpf_object * 123 LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path); 124 LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj, 126 LIBBPF_API int bpf_object__pin_programs(struct bpf_object *obj, 128 LIBBPF_API int bpf_object__unpin_programs(struct bpf_object *ob [all...] |
H A D | libbpf.c | 75 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj); 271 struct bpf_object *obj; 405 struct bpf_object { struct 458 * All loaded bpf_object is linked in a list, which is 478 static const char *elf_sym_str(const struct bpf_object *obj, size_t off); 479 static const char *elf_sec_str(const struct bpf_object *obj, size_t off); 480 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx); 481 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name); 482 static int elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn, GElf_Shdr *hdr); 483 static const char *elf_sec_name(const struct bpf_object *ob [all...] |
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | libbpf.h | 110 struct bpf_object; 186 * @brief **bpf_object__open()** creates a bpf_object by opening 190 * @return pointer to the new bpf_object; or NULL is returned on error, 193 LIBBPF_API struct bpf_object *bpf_object__open(const char *path); 196 * @brief **bpf_object__open_file()** creates a bpf_object by opening 202 * @return pointer to the new bpf_object; or NULL is returned on error, 205 LIBBPF_API struct bpf_object * 209 * @brief **bpf_object__open_mem()** creates a bpf_object by reading 215 * @return pointer to the new bpf_object; or NULL is returned on error, 218 LIBBPF_API struct bpf_object * [all...] |
H A D | libbpf.c | 71 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj); 72 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog); 435 struct bpf_object *obj; 505 struct bpf_object *obj; 632 struct bpf_object { struct 690 static const char *elf_sym_str(const struct bpf_object *obj, size_t off); 691 static const char *elf_sec_str(const struct bpf_object *obj, size_t off); 692 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx); 693 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name); 694 static Elf64_Shdr *elf_sec_hdr(const struct bpf_object *ob [all...] |
/kernel/linux/linux-5.10/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() 129 struct bpf_object *obj; in test_global_data()
|
H A D | fexit_bpf2bpf.c | 7 typedef int (*test_cb)(struct bpf_object *obj); 9 static int check_data_map(struct bpf_object *obj, int prog_cnt, bool reset) in check_data_map() 60 struct bpf_object *obj = NULL, *tgt_obj; in test_fexit_bpf2bpf_common() 182 static int test_second_attach(struct bpf_object *obj) in test_second_attach() 188 struct bpf_object *tgt_obj; in test_second_attach() 237 struct bpf_object *freplace_obj = NULL, *pkt_obj, *fmod_obj = NULL; in test_fmod_ret_freplace() 308 struct bpf_object *obj = NULL, *pkt_obj; in test_obj_load_failure_common()
|
H A D | sockopt_multi.c | 5 static int prog_attach(struct bpf_object *obj, int cgroup_fd, const char *title) in prog_attach() 34 static int prog_detach(struct bpf_object *obj, int cgroup_fd, const char *title) in prog_detach() 57 static int run_getsockopt_test(struct bpf_object *obj, int cg_parent, in run_getsockopt_test() 207 static int run_setsockopt_test(struct bpf_object *obj, int cg_parent, in run_setsockopt_test() 304 struct bpf_object *obj = NULL; in test_sockopt_multi()
|
H A D | trampoline_count.c | 10 struct bpf_object *obj; 33 static struct bpf_link *load(struct bpf_object *obj, const char *name) in load() 51 struct bpf_object *obj; in test_trampoline_count()
|
H A D | xdp_adjust_tail.c | 9 struct bpf_object *obj; in test_xdp_adjust_tail_shrink() 36 struct bpf_object *obj; in test_xdp_adjust_tail_grow() 66 struct bpf_object *obj; in test_xdp_adjust_tail_grow2()
|
H A D | tailcalls.c | 14 struct bpf_object *obj; in test_tailcall_1() 152 struct bpf_object *obj; in test_tailcall_2() 230 struct bpf_object *obj; in test_tailcall_3() 308 struct bpf_object *obj; in test_tailcall_4() 396 struct bpf_object *obj; in test_tailcall_5() 484 struct bpf_object *obj; in test_tailcall_bpf2bpf_1() 568 struct bpf_object *obj; in test_tailcall_bpf2bpf_2() 646 struct bpf_object *obj; in test_tailcall_bpf2bpf_3() 736 struct bpf_object *obj; in test_tailcall_bpf2bpf_4()
|
/kernel/linux/linux-6.6/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() 147 struct bpf_object *obj; in test_xdp_adjust_frags_tail_shrink() 214 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() 357 struct bpf_object *obj = NULL, *pkt_obj; in test_obj_load_failure_common()
|
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 | verifier.c | 188 static int init_test_val_map(struct bpf_object *obj, char *map_name) in init_test_val_map() 212 static int init_array_access_maps(struct bpf_object *obj) in init_array_access_maps() 224 static int init_value_ptr_arith_maps(struct bpf_object *obj) in init_value_ptr_arith_maps()
|
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()
|
H A D | trampoline_count.c | 6 struct bpf_object *obj; 12 struct bpf_object *obj; in load_prog()
|
H A D | tailcalls.c | 14 struct bpf_object *obj; in test_tailcall_1() 150 struct bpf_object *obj; in test_tailcall_2() 226 struct bpf_object *obj; in test_tailcall_count() 322 struct bpf_object *obj; in test_tailcall_4() 412 struct bpf_object *obj; in test_tailcall_5() 502 struct bpf_object *obj; in test_tailcall_bpf2bpf_1() 586 struct bpf_object *obj; in test_tailcall_bpf2bpf_2() 666 struct bpf_object *obj; in test_tailcall_bpf2bpf_3() 761 struct bpf_object *obj; in test_tailcall_bpf2bpf_4()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | bpf.c | 112 static int do_test(struct bpf_object *obj, int (*func)(void), in do_test() 213 static struct bpf_object * 216 struct bpf_object *obj; in prepare_bpf() 231 struct bpf_object *obj; in __test__bpf()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | get_cgroup_id_user.c | 35 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map() 55 struct bpf_object *obj; in main()
|
H A D | test_netcnt.c | 21 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map() 41 struct bpf_object *obj; in main()
|
H A D | test_tcpbpf_user.c | 79 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map() 99 struct bpf_object *obj; in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | get_cgroup_id_user.c | 35 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map() 55 struct bpf_object *obj; in main()
|