Home
last modified time | relevance | path

Searched refs:LIBBPF_API (Results 1 - 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dlibbpf.h47 LIBBPF_API int libbpf_strerror(int err, char *buf, size_t size);
58 LIBBPF_API libbpf_print_fn_t libbpf_set_print(libbpf_print_fn_t fn);
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 in
[all...]
H A Dbpf.h55 LIBBPF_API int
57 LIBBPF_API int bpf_create_map_node(enum bpf_map_type map_type, const char *name,
60 LIBBPF_API int bpf_create_map_name(enum bpf_map_type map_type, const char *name,
63 LIBBPF_API int bpf_create_map(enum bpf_map_type map_type, int key_size,
65 LIBBPF_API int bpf_create_map_in_map_node(enum bpf_map_type map_type,
69 LIBBPF_API int bpf_create_map_in_map(enum bpf_map_type map_type,
105 LIBBPF_API int
108 LIBBPF_API int bpf_load_program(enum bpf_prog_type type,
112 LIBBPF_API int bpf_verify_program(enum bpf_prog_type type,
119 LIBBPF_API in
[all...]
H A Dbtf.h33 LIBBPF_API void btf__free(struct btf *btf);
34 LIBBPF_API struct btf *btf__new(const void *data, __u32 size);
35 LIBBPF_API struct btf *btf__new_empty(void);
36 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext);
37 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext);
38 LIBBPF_API struct btf *btf__parse_raw(const char *path);
39 LIBBPF_API int btf__finalize_data(struct bpf_object *obj, struct btf *btf);
40 LIBBPF_API int btf__load(struct btf *btf);
41 LIBBPF_API __s32 btf__find_by_name(const struct btf *btf,
43 LIBBPF_API __s3
[all...]
H A Dxsk.h186 LIBBPF_API int xsk_umem__fd(const struct xsk_umem *umem);
187 LIBBPF_API int xsk_socket__fd(const struct xsk_socket *xsk);
216 LIBBPF_API int xsk_umem__create(struct xsk_umem **umem,
221 LIBBPF_API int xsk_umem__create_v0_0_2(struct xsk_umem **umem,
226 LIBBPF_API int xsk_umem__create_v0_0_4(struct xsk_umem **umem,
231 LIBBPF_API int xsk_socket__create(struct xsk_socket **xsk,
237 LIBBPF_API int
248 LIBBPF_API int xsk_umem__delete(struct xsk_umem *umem);
249 LIBBPF_API void xsk_socket__delete(struct xsk_socket *xsk);
H A Dlibbpf_common.h14 #ifndef LIBBPF_API
15 #define LIBBPF_API __attribute__((visibility("default"))) macro
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dlibbpf.h27 LIBBPF_API __u32 libbpf_major_version(void);
28 LIBBPF_API __u32 libbpf_minor_version(void);
29 LIBBPF_API const char *libbpf_version_string(void);
52 LIBBPF_API int libbpf_strerror(int err, char *buf, size_t size);
61 LIBBPF_API const char *libbpf_bpf_attach_type_str(enum bpf_attach_type t);
70 LIBBPF_API const char *libbpf_bpf_link_type_str(enum bpf_link_type t);
79 LIBBPF_API const char *libbpf_bpf_map_type_str(enum bpf_map_type t);
88 LIBBPF_API const char *libbpf_bpf_prog_type_str(enum bpf_prog_type t);
107 LIBBPF_API libbpf_print_fn_t libbpf_set_print(libbpf_print_fn_t fn);
193 LIBBPF_API struc
[all...]
H A Dbtf.h38 LIBBPF_API void btf__free(struct btf *btf);
54 LIBBPF_API struct btf *btf__new(const void *data, __u32 size);
76 LIBBPF_API struct btf *btf__new_split(const void *data, __u32 size, struct btf *base_btf);
90 LIBBPF_API struct btf *btf__new_empty(void);
108 LIBBPF_API struct btf *btf__new_empty_split(struct btf *base_btf);
110 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext);
111 LIBBPF_API struct btf *btf__parse_split(const char *path, struct btf *base_btf);
112 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext);
113 LIBBPF_API struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf);
114 LIBBPF_API struc
[all...]
H A Dbpf.h38 LIBBPF_API int libbpf_set_memlock_rlim(size_t memlock_bytes);
57 LIBBPF_API int bpf_map_create(enum bpf_map_type map_type,
109 LIBBPF_API int bpf_prog_load(enum bpf_prog_type prog_type,
137 LIBBPF_API int bpf_btf_load(const void *btf_data, size_t btf_size,
140 LIBBPF_API int bpf_map_update_elem(int fd, const void *key, const void *value,
143 LIBBPF_API int bpf_map_lookup_elem(int fd, const void *key, void *value);
144 LIBBPF_API int bpf_map_lookup_elem_flags(int fd, const void *key, void *value,
146 LIBBPF_API int bpf_map_lookup_and_delete_elem(int fd, const void *key,
148 LIBBPF_API int bpf_map_lookup_and_delete_elem_flags(int fd, const void *key,
150 LIBBPF_API in
[all...]
H A Dlibbpf_legacy.h94 LIBBPF_API int libbpf_set_strict_mode(enum libbpf_strict_mode mode);
113 LIBBPF_API long libbpf_get_error(const void *ptr);
128 LIBBPF_API struct btf *libbpf_find_kernel_btf(void);
130 LIBBPF_API enum bpf_prog_type bpf_program__get_type(const struct bpf_program *prog);
131 LIBBPF_API enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *prog);
132 LIBBPF_API const char *bpf_map__get_pin_path(const struct bpf_map *map);
133 LIBBPF_API const void *btf__get_raw_data(const struct btf *btf, __u32 *size);
134 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext, __u32 *size);
H A Dlibbpf_common.h15 #ifndef LIBBPF_API
16 #define LIBBPF_API __attribute__((visibility("default"))) macro
H A Dlibbpf.c11366 LIBBPF_API struct bpf_link *

Completed in 22 milliseconds