Home
last modified time | relevance | path

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

12345

/Linux-v6.1/tools/perf/util/
Dbpf-loader.h47 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 …]
Dbpf-loader.c80 struct bpf_object *obj;
116 static int bpf_perf_object__add(struct bpf_object *obj) in bpf_perf_object__add()
202 struct bpf_object *
206 struct bpf_object *obj; in bpf__prepare_load_buffer()
234 struct bpf_object *bpf__prepare_load(const char *filename, bool source) in bpf__prepare_load()
237 struct bpf_object *obj; in bpf__prepare_load()
869 int bpf__probe(struct bpf_object *obj) in bpf__probe()
933 int bpf__unprobe(struct bpf_object *obj) in bpf__unprobe()
973 static int bpf_object__load_prologue(struct bpf_object *obj) in bpf_object__load_prologue()
1044 int bpf__load(struct bpf_object *obj) in bpf__load()
[all …]
Dparse-events.h165 struct bpf_object;
168 struct bpf_object *obj,
/Linux-v6.1/tools/lib/bpf/
Dlibbpf.h102 struct bpf_object;
177 LIBBPF_API struct bpf_object *bpf_object__open(const char *path);
189 LIBBPF_API struct bpf_object *
202 LIBBPF_API struct bpf_object *
207 LIBBPF_API int bpf_object__load(struct bpf_object *obj);
209 LIBBPF_API void bpf_object__close(struct bpf_object *object);
215 LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path);
216 LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj,
218 LIBBPF_API int bpf_object__pin_programs(struct bpf_object *obj,
220 LIBBPF_API int bpf_object__unpin_programs(struct bpf_object *obj,
[all …]
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);
417 struct bpf_object *obj;
486 struct bpf_object *obj;
610 struct bpf_object { struct
668 static const char *elf_sym_str(const struct bpf_object *obj, size_t off); argument
669 static const char *elf_sec_str(const struct bpf_object *obj, size_t off);
670 static Elf_Scn *elf_sec_by_idx(const struct bpf_object *obj, size_t idx);
671 static Elf_Scn *elf_sec_by_name(const struct bpf_object *obj, const char *name);
672 static Elf64_Shdr *elf_sec_hdr(const struct bpf_object *obj, Elf_Scn *scn);
[all …]
/Linux-v6.1/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()
135 struct bpf_object *obj; in test_global_data()
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()
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()
141 struct bpf_object *obj; in test_xdp_adjust_frags_tail_shrink()
208 struct bpf_object *obj; in test_xdp_adjust_frags_tail_grow()
Dfexit_bpf2bpf.c8 typedef int (*test_cb)(struct bpf_object *obj);
10 static int check_data_map(struct bpf_object *obj, int prog_cnt, bool reset) in check_data_map()
61 struct bpf_object *obj = NULL, *tgt_obj; in test_fexit_bpf2bpf_common()
226 static int test_second_attach(struct bpf_object *obj) in test_second_attach()
232 struct bpf_object *tgt_obj; in test_second_attach()
283 struct bpf_object *freplace_obj = NULL, *pkt_obj, *fmod_obj = NULL; in test_fmod_ret_freplace()
355 struct bpf_object *obj = NULL, *pkt_obj; in test_obj_load_failure_common()
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()
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()
Dtrampoline_count.c8 struct bpf_object *obj;
14 struct bpf_object *obj; in load_prog()
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()
Dtcp_estats.c8 struct bpf_object *obj; in test_tcp_estats()
Dpkt_md_access.c8 struct bpf_object *obj; in test_pkt_md_access()
Dskb_helpers.c20 struct bpf_object *obj; in test_skb_helpers()
Dsockopt_inherit.c135 static int prog_attach(struct bpf_object *obj, int cgroup_fd, const char *title, in prog_attach()
168 struct bpf_object *obj; in run_test()
Dxdp_perf.c7 struct bpf_object *obj; in test_xdp_perf()
Dpkt_access.c8 struct bpf_object *obj; in test_pkt_access()
/Linux-v6.1/tools/perf/tests/
Dbpf.c101 static int do_test(struct bpf_object *obj, int (*func)(void), in do_test()
203 static struct bpf_object *
206 struct bpf_object *obj; in prepare_bpf()
221 struct bpf_object *obj; in __test__bpf()
/Linux-v6.1/tools/testing/selftests/bpf/
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()
Dtesting_helpers.h10 struct bpf_object **pobj, int *prog_fd);
Dtesting_helpers.c178 struct bpf_object **pobj, int *prog_fd) in bpf_prog_test_load()
183 struct bpf_object *obj; in bpf_prog_test_load()
/Linux-v6.1/tools/bpf/bpftool/
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()
295 static int codegen_subskel_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_subskel_datasecs()
468 static void codegen_asserts(struct bpf_object *obj, const char *obj_name) in codegen_asserts()
533 static void codegen_attach_detach(struct bpf_object *obj, const char *obj_name) in codegen_attach_detach()
615 static void codegen_destroy(struct bpf_object *obj, const char *obj_name) in codegen_destroy()
659 static int gen_trace(struct bpf_object *obj, const char *obj_name, const char *header_guard) in gen_trace()
819 codegen_maps_skeleton(struct bpf_object *obj, size_t map_cnt, bool mmaped) in codegen_maps_skeleton()
864 codegen_progs_skeleton(struct bpf_object *obj, size_t prog_cnt, bool populate_links) in codegen_progs_skeleton()
913 struct bpf_object *obj = NULL; in do_skeleton()
[all …]
/Linux-v6.1/samples/bpf/
Dtracex1_user.c11 struct bpf_object *obj; in main()

12345