Home
last modified time | relevance | path

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

12345

/Linux-v5.10/tools/perf/util/
Dbpf-loader.h44 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 …]
Dbpf-loader.c51 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/
Dlibbpf.h61 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 …]
Dlibbpf.c75 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 …]
DREADME.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
/Linux-v5.10/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()
129 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()
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()
Dsockopt_multi.c5 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()
Dtrampoline_count.c10 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()
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()
Dtailcalls.c14 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()
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()
174 struct bpf_object *obj; in run_test()
Dsockopt_sk.c166 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()
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()
/Linux-v5.10/tools/perf/tests/
Dbpf.c111 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/
Dtest_netcnt.c21 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map()
41 struct bpf_object *obj; in main()
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()
Dtest_tcpbpf_user.c79 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/
Dtracex1_user.c11 struct bpf_object *obj; in main()
Dtracex7_user.c11 struct bpf_object *obj; in main()
/Linux-v5.10/tools/bpf/bpftool/
Dgen.c94 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()

12345