/Linux-v5.10/tools/perf/util/ |
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 *obj, [all …]
|
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 *obj, in bpf__obj_config_map() [all …]
|
/Linux-v5.10/tools/lib/bpf/ |
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 *obj, [all …]
|
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 478 static const char *elf_sym_str(const struct bpf_object *obj, size_t off); argument 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 *obj, Elf_Scn *scn); 484 static Elf_Data *elf_sec_data(const struct bpf_object *obj, Elf_Scn *scn); [all …]
|
D | README.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-v5.10/tools/testing/selftests/bpf/prog_tests/ |
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
D | tcp_estats.c | 8 struct bpf_object *obj; in test_tcp_estats()
|
D | sockopt_inherit.c | 139 static int prog_attach(struct bpf_object *obj, int cgroup_fd, const char *title) in prog_attach() 174 struct bpf_object *obj; in run_test()
|
D | sockopt_sk.c | 166 static int prog_attach(struct bpf_object *obj, int cgroup_fd, const char *title) in prog_attach() 200 struct bpf_object *obj; in run_test()
|
D | pkt_md_access.c | 8 struct bpf_object *obj; in test_pkt_md_access()
|
D | xdp_perf.c | 8 struct bpf_object *obj; in test_xdp_perf()
|
D | skb_helpers.c | 20 struct bpf_object *obj; in test_skb_helpers()
|
D | pkt_access.c | 8 struct bpf_object *obj; in test_pkt_access()
|
/Linux-v5.10/tools/perf/tests/ |
D | bpf.c | 111 static int do_test(struct bpf_object *obj, int (*func)(void), in do_test() 212 static struct bpf_object * 215 struct bpf_object *obj; in prepare_bpf() 230 struct bpf_object *obj; in __test__bpf()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
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()
|
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()
|
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()
|
/Linux-v5.10/samples/bpf/ |
D | tracex1_user.c | 11 struct bpf_object *obj; in main()
|
D | tracex7_user.c | 11 struct bpf_object *obj; in main()
|
/Linux-v5.10/tools/bpf/bpftool/ |
D | gen.c | 94 static int codegen_datasec_def(struct bpf_object *obj, in codegen_datasec_def() 186 static int codegen_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_datasecs() 277 struct bpf_object *obj = NULL; in do_skeleton()
|