| /Linux-v5.15/tools/perf/util/ |
| D | bpf-loader.h | 47 struct bpf_object; 52 int fd, struct bpf_object *obj, void *arg); 55 struct bpf_object *bpf__prepare_load(const char *filename, bool source); 59 struct bpf_object *bpf__prepare_load_buffer(void *obj_buf, size_t obj_buf_sz, 64 int bpf__probe(struct bpf_object *obj); 65 int bpf__unprobe(struct bpf_object *obj); 66 int bpf__strerror_probe(struct bpf_object *obj, int err, 69 int bpf__load(struct bpf_object *obj); 70 int bpf__strerror_load(struct bpf_object *obj, int err, 72 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() 1164 bpf__obj_config_map(struct bpf_object *obj, in bpf__obj_config_map() [all …]
|
| /Linux-v5.15/tools/lib/bpf/ |
| D | libbpf.h | 62 struct bpf_object; 107 LIBBPF_API struct bpf_object *bpf_object__open(const char *path); 108 LIBBPF_API struct bpf_object * 110 LIBBPF_API struct bpf_object * 115 LIBBPF_API struct bpf_object * 118 LIBBPF_API struct bpf_object * 131 LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path); 132 LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj, 134 LIBBPF_API int bpf_object__pin_programs(struct bpf_object *obj, 136 LIBBPF_API int bpf_object__unpin_programs(struct bpf_object *obj, [all …]
|
| D | libbpf.c | 72 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj); 73 static bool prog_is_subprog(const struct bpf_object *obj, const struct bpf_program *prog); 201 static bool kernel_supports(const struct bpf_object *obj, enum kern_feature_id feat_id); 291 struct bpf_object *obj; 435 struct bpf_object { struct 522 static const char *elf_sym_str(const struct bpf_object *obj, size_t off); argument 523 static const char *elf_sec_str(const struct bpf_object *obj, size_t off); 524 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx); 525 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name); 526 static int elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn, GElf_Shdr *hdr); [all …]
|
| /Linux-v5.15/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() 210 static int test_second_attach(struct bpf_object *obj) in test_second_attach() 216 struct bpf_object *tgt_obj; in test_second_attach() 265 struct bpf_object *freplace_obj = NULL, *pkt_obj, *fmod_obj = NULL; in test_fmod_ret_freplace() 332 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 | global_func_args.c | 7 static void test_global_func_args0(struct bpf_object *obj) in test_global_func_args0() 44 struct bpf_object *obj; in test_global_func_args()
|
| 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() 743 struct bpf_object *obj; in test_tailcall_bpf2bpf_4()
|
| D | tcp_estats.c | 8 struct bpf_object *obj; in test_tcp_estats()
|
| 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 | 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 | pkt_access.c | 8 struct bpf_object *obj; in test_pkt_access()
|
| D | reference_tracking.c | 12 struct bpf_object *obj; in test_reference_tracking()
|
| /Linux-v5.15/tools/perf/tests/ |
| D | bpf.c | 105 static int do_test(struct bpf_object *obj, int (*func)(void), in do_test() 206 static struct bpf_object * 209 struct bpf_object *obj; in prepare_bpf() 224 struct bpf_object *obj; in __test__bpf()
|
| /Linux-v5.15/tools/bpf/bpftool/ |
| D | gen.c | 95 static int codegen_datasec_def(struct bpf_object *obj, in codegen_datasec_def() 193 static int codegen_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_datasecs() 307 static void codegen_attach_detach(struct bpf_object *obj, const char *obj_name) in codegen_attach_detach() 385 static void codegen_destroy(struct bpf_object *obj, const char *obj_name) in codegen_destroy() 431 static int gen_trace(struct bpf_object *obj, const char *obj_name, const char *header_guard) in gen_trace() 605 struct bpf_object *obj = NULL; in do_skeleton()
|
| /Linux-v5.15/tools/testing/selftests/bpf/ |
| 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_dev_cgroup.c | 25 struct bpf_object *obj; in main()
|
| /Linux-v5.15/Documentation/bpf/libbpf/ |
| 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-v5.15/samples/bpf/ |
| D | tracex1_user.c | 11 struct bpf_object *obj; in main()
|
| D | sockex2_user.c | 19 struct bpf_object *obj; in main()
|