Home
last modified time | relevance | path

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

123

/external/libbpf/src/
Dlibbpf.h66 struct bpf_object;
153 LIBBPF_API struct bpf_object *bpf_object__open(const char *path);
165 LIBBPF_API struct bpf_object *
178 LIBBPF_API struct bpf_object *
184 LIBBPF_API struct bpf_object *
188 LIBBPF_API struct bpf_object *
201 LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path);
202 LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj,
204 LIBBPF_API int bpf_object__pin_programs(struct bpf_object *obj,
206 LIBBPF_API int bpf_object__unpin_programs(struct bpf_object *obj,
[all …]
Dlibbpf.c72 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);
306 struct bpf_object *obj;
491 struct bpf_object { struct
556 static const char *elf_sym_str(const struct bpf_object *obj, size_t off); argument
557 static const char *elf_sec_str(const struct bpf_object *obj, size_t off);
558 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx);
559 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name);
560 static Elf64_Shdr *elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn);
561 static const char *elf_sec_name(const struct bpf_object *obj, Elf_Scn *scn);
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
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()
136 struct bpf_object *obj; in test_global_data()
Dfexit_bpf2bpf.c7 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()
221 static int test_second_attach(struct bpf_object *obj) in test_second_attach()
227 struct bpf_object *tgt_obj; in test_second_attach()
276 struct bpf_object *freplace_obj = NULL, *pkt_obj, *fmod_obj = NULL; in test_fmod_ret_freplace()
348 struct bpf_object *obj = NULL, *pkt_obj; in test_obj_load_failure_common()
Dsockopt_multi.c5 static int prog_attach(struct bpf_object *obj, int cgroup_fd, const char *title, const char *name) in prog_attach()
34 static int prog_detach(struct bpf_object *obj, int cgroup_fd, const char *title, const char *name) 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()
301 struct bpf_object *obj = NULL; in test_sockopt_multi()
Dtrampoline_count.c10 struct bpf_object *obj;
33 static struct bpf_link *load(struct bpf_object *obj, const char *name) in load()
52 struct bpf_object *obj; in serial_test_trampoline_count()
Dxdp_adjust_tail.c9 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()
Dglobal_func_args.c7 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()
Dreference_tracking.c4 static void toggle_object_autoload_progs(const struct bpf_object *obj, in toggle_object_autoload_progs()
27 struct bpf_object *obj_iter, *obj = NULL; in test_reference_tracking()
Dtailcalls.c14 struct bpf_object *obj; in test_tailcall_1()
152 struct bpf_object *obj; in test_tailcall_2()
227 struct bpf_object *obj; in test_tailcall_count()
321 struct bpf_object *obj; in test_tailcall_4()
409 struct bpf_object *obj; in test_tailcall_5()
497 struct bpf_object *obj; in test_tailcall_bpf2bpf_1()
581 struct bpf_object *obj; in test_tailcall_bpf2bpf_2()
659 struct bpf_object *obj; in test_tailcall_bpf2bpf_3()
756 struct bpf_object *obj; in test_tailcall_bpf2bpf_4()
Dtcp_estats.c8 struct bpf_object *obj; in test_tcp_estats()
Dsockopt_inherit.c139 static int prog_attach(struct bpf_object *obj, int cgroup_fd, const char *title, in prog_attach()
172 struct bpf_object *obj; in run_test()
Dpkt_md_access.c8 struct bpf_object *obj; in test_pkt_md_access()
Dxdp_perf.c8 struct bpf_object *obj; in test_xdp_perf()
Dskb_helpers.c20 struct bpf_object *obj; in test_skb_helpers()
Dpkt_access.c8 struct bpf_object *obj; in test_pkt_access()
/external/bpftool/src/
Dgen.c123 static int codegen_datasec_def(struct bpf_object *obj, in codegen_datasec_def()
211 static int codegen_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_datasecs()
365 static void codegen_attach_detach(struct bpf_object *obj, const char *obj_name) in codegen_attach_detach()
446 static void codegen_destroy(struct bpf_object *obj, const char *obj_name) in codegen_destroy()
490 static int gen_trace(struct bpf_object *obj, const char *obj_name, const char *header_guard) in gen_trace()
657 struct bpf_object *obj = NULL; in do_skeleton()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtesting_helpers.c89 struct bpf_object **pobj, int *prog_fd) in bpf_prog_test_load()
94 struct bpf_object *obj; in bpf_prog_test_load()
Dget_cgroup_id_user.c36 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map()
56 struct bpf_object *obj; in main()
Dtesting_helpers.h10 struct bpf_object **pobj, int *prog_fd);
Dtest_dev_cgroup.c26 struct bpf_object *obj; in main()
Dflow_dissector_load.h9 static inline int bpf_flow_load(struct bpf_object **obj, in bpf_flow_load()
/external/libbpf/android/
Dbpf_stub.c15 bool kernel_supports(const struct bpf_object *obj, enum kern_feature_id feat_id) in kernel_supports()
/external/libbpf/docs/
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
/external/libbpf/fuzz/
Dbpf-object-fuzzer.c9 struct bpf_object *obj = NULL; in LLVMFuzzerTestOneInput()

123