Home
last modified time | relevance | path

Searched refs:bpf_object (Results 1 – 25 of 107) sorted by relevance

12345

/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.h110 struct bpf_object;
193 LIBBPF_API struct bpf_object *bpf_object__open(const char *path);
205 LIBBPF_API struct bpf_object *
218 LIBBPF_API struct bpf_object *
229 LIBBPF_API int bpf_object__load(struct bpf_object *obj);
236 LIBBPF_API void bpf_object__close(struct bpf_object *obj);
249 LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path);
262 LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj,
264 LIBBPF_API int bpf_object__pin_programs(struct bpf_object *obj,
266 LIBBPF_API int bpf_object__unpin_programs(struct bpf_object *obj,
[all …]
H A Dlibbpf.c71 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); argument
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 *obj, Elf_Scn *scn);
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_data.c5 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 Dxdp_adjust_tail.c9 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 Dfexit_bpf2bpf.c10 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 Dglobal_func_args.c7 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 Dsubskeleton.c8 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 Dverifier.c188 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 Dtailcalls.c14 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()
H A Dtrampoline_count.c6 struct bpf_object *obj;
12 struct bpf_object *obj; in load_prog()
H A Dtcp_estats.c8 struct bpf_object *obj; in test_tcp_estats()
H A Dxdp_attach.c11 struct bpf_object *obj1, *obj2, *obj3; in test_xdp_attach()
109 struct bpf_object *obj = NULL; in test_xdp_attach_fail()
H A Dpkt_md_access.c8 struct bpf_object *obj; in test_pkt_md_access()
H A Dskb_helpers.c20 struct bpf_object *obj; in test_skb_helpers()
H A Dxdp_perf.c7 struct bpf_object *obj; in test_xdp_perf()
H A Dpkt_access.c8 struct bpf_object *obj; in test_pkt_access()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dget_cgroup_id_user.c35 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 Dtest_loader.c161 struct bpf_object *obj, in parse_test_spec()
343 struct bpf_object *obj, in prepare_case()
380 struct bpf_object *obj, in validate_case()
544 struct bpf_object *tobj; in run_subtest()
648 struct bpf_object *obj = NULL; in process_subtest()
H A Dtest_progs.h405 int bpf_find_map(const char *test, struct bpf_object *obj, const char *name);
428 typedef int (*pre_execution_cb)(struct bpf_object *obj);
436 struct bpf_object *obj;
H A Dtesting_helpers.h15 struct bpf_object **pobj, int *prog_fd);
H A Dtest_dev_cgroup.c25 struct bpf_object *obj; in main()
/openbmc/linux/tools/bpf/bpftool/
H A Dgen.c124 static int codegen_datasec_def(struct bpf_object *obj, in codegen_datasec_def()
245 static int codegen_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_datasecs()
294 static int codegen_subskel_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_subskel_datasecs()
467 static void codegen_asserts(struct bpf_object *obj, const char *obj_name) in codegen_asserts()
532 static void codegen_attach_detach(struct bpf_object *obj, const char *obj_name) in codegen_attach_detach()
614 static void codegen_destroy(struct bpf_object *obj, const char *obj_name) in codegen_destroy()
658 static int gen_trace(struct bpf_object *obj, const char *obj_name, const char *header_guard) in gen_trace()
818 codegen_maps_skeleton(struct bpf_object *obj, size_t map_cnt, bool mmaped) in codegen_maps_skeleton()
863 codegen_progs_skeleton(struct bpf_object *obj, size_t prog_cnt, bool populate_links) in codegen_progs_skeleton()
912 struct bpf_object *obj = NULL; in do_skeleton()
[all …]
/openbmc/linux/Documentation/bpf/libbpf/
H A Dlibbpf_naming_convention.rst31 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
/openbmc/linux/samples/bpf/
H A Dtracex1_user.c11 struct bpf_object *obj; in main()
H A Dtracex7_user.c11 struct bpf_object *obj; in main()

12345