Home
last modified time | relevance | path

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

1234

/Linux-v5.4/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()
634 int bpf__probe(struct bpf_object *obj) in bpf__probe()
695 int bpf__unprobe(struct bpf_object *obj) in bpf__unprobe()
735 int bpf__load(struct bpf_object *obj) in bpf__load()
749 int bpf__foreach_event(struct bpf_object *obj, in bpf__foreach_event()
1173 bpf__obj_config_map(struct bpf_object *obj, in bpf__obj_config_map()
[all …]
Dparse-events.h156 struct bpf_object;
159 struct bpf_object *obj,
/Linux-v5.4/tools/lib/bpf/
Dlibbpf.h63 struct bpf_object;
70 LIBBPF_API struct bpf_object *bpf_object__open(const char *path);
71 LIBBPF_API struct bpf_object *
73 struct bpf_object *__bpf_object__open_xattr(struct bpf_object_open_attr *attr,
75 LIBBPF_API struct bpf_object *bpf_object__open_buffer(void *obj_buf,
78 int bpf_object__section_size(const struct bpf_object *obj, const char *name,
80 int bpf_object__variable_offset(const struct bpf_object *obj, const char *name,
82 LIBBPF_API int bpf_object__pin_maps(struct bpf_object *obj, const char *path);
83 LIBBPF_API int bpf_object__unpin_maps(struct bpf_object *obj,
85 LIBBPF_API int bpf_object__pin_programs(struct bpf_object *obj,
[all …]
Dlibbpf.c185 struct bpf_object *obj;
237 struct bpf_object { struct
406 bpf_object__add_program(struct bpf_object *obj, void *data, size_t size, in bpf_object__add_program()
442 bpf_object__init_prog_names(struct bpf_object *obj) in bpf_object__init_prog_names()
494 static struct bpf_object *bpf_object__new(const char *path, in bpf_object__new()
498 struct bpf_object *obj; in bpf_object__new()
501 obj = calloc(1, sizeof(struct bpf_object) + strlen(path) + 1); in bpf_object__new()
536 static void bpf_object__elf_finish(struct bpf_object *obj) in bpf_object__elf_finish()
557 static int bpf_object__elf_init(struct bpf_object *obj) in bpf_object__elf_init()
616 static int bpf_object__check_endianness(struct bpf_object *obj) in bpf_object__check_endianness()
[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.4/tools/testing/selftests/bpf/prog_tests/
Dglobal_data.c4 static void test_global_data_number(struct bpf_object *obj, __u32 duration) in test_global_data_number()
39 static void test_global_data_string(struct bpf_object *obj, __u32 duration) in test_global_data_string()
74 static void test_global_data_struct(struct bpf_object *obj, __u32 duration) in test_global_data_struct()
102 static void test_global_data_rdonly(struct bpf_object *obj, __u32 duration) in test_global_data_rdonly()
128 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) 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()
206 static int run_setsockopt_test(struct bpf_object *obj, int cg_parent, in run_setsockopt_test()
303 struct bpf_object *obj = NULL; in test_sockopt_multi()
Dsockopt_sk.c134 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()
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()
Dpkt_md_access.c7 struct bpf_object *obj; in test_pkt_md_access()
Dspinlock.c8 struct bpf_object *obj = NULL; in test_spinlock()
Dreference_tracking.c7 struct bpf_object *obj; in test_reference_tracking()
Dpkt_access.c7 struct bpf_object *obj; in test_pkt_access()
Dxdp_adjust_tail.c7 struct bpf_object *obj; in test_xdp_adjust_tail()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_libbpf_open.c53 int test_walk_progs(struct bpf_object *obj, bool verbose) in test_walk_progs()
67 int test_walk_maps(struct bpf_object *obj, bool verbose) in test_walk_maps()
83 struct bpf_object *bpfobj = NULL; in test_open_file()
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()
Dtest_tcpbpf_user.c77 static int bpf_find_map(const char *test, struct bpf_object *obj, in bpf_find_map()
97 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_dev_cgroup.c25 struct bpf_object *obj; in main()
Dflow_dissector_load.h8 static inline int bpf_flow_load(struct bpf_object **obj, in bpf_flow_load()
Dtest_stub.c9 struct bpf_object **pobj, int *prog_fd) in bpf_prog_test_load()
/Linux-v5.4/tools/perf/tests/
Dbpf.c110 static int do_test(struct bpf_object *obj, int (*func)(void), in do_test()
211 static struct bpf_object *
214 struct bpf_object *obj; in prepare_bpf()
229 struct bpf_object *obj; in __test__bpf()
/Linux-v5.4/samples/bpf/
Dsockex1_user.c13 struct bpf_object *obj; in main()

1234