Home
last modified time | relevance | path

Searched refs:LIBBPF_API (Results 1 – 7 of 7) sorted by relevance

/linux-6.14.4/tools/lib/bpf/
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);
110 LIBBPF_API libbpf_print_fn_t libbpf_set_print(libbpf_print_fn_t fn);
215 LIBBPF_API struct bpf_object *bpf_object__open(const char *path);
[all …]
Dbtf.h39 LIBBPF_API void btf__free(struct btf *btf);
55 LIBBPF_API struct btf *btf__new(const void *data, __u32 size);
77 LIBBPF_API struct btf *btf__new_split(const void *data, __u32 size, struct btf *base_btf);
91 LIBBPF_API struct btf *btf__new_empty(void);
109 LIBBPF_API struct btf *btf__new_empty_split(struct btf *base_btf);
129 LIBBPF_API int btf__distill_base(const struct btf *src_btf, struct btf **new_base_btf,
132 LIBBPF_API struct btf *btf__parse(const char *path, struct btf_ext **btf_ext);
133 LIBBPF_API struct btf *btf__parse_split(const char *path, struct btf *base_btf);
134 LIBBPF_API struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext);
135 LIBBPF_API struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf);
[all …]
Dbpf.h38 LIBBPF_API int libbpf_set_memlock_rlim(size_t memlock_bytes);
61 LIBBPF_API int bpf_map_create(enum bpf_map_type map_type,
117 LIBBPF_API int bpf_prog_load(enum bpf_prog_type prog_type,
148 LIBBPF_API int bpf_btf_load(const void *btf_data, size_t btf_size,
151 LIBBPF_API int bpf_map_update_elem(int fd, const void *key, const void *value,
154 LIBBPF_API int bpf_map_lookup_elem(int fd, const void *key, void *value);
155 LIBBPF_API int bpf_map_lookup_elem_flags(int fd, const void *key, void *value,
157 LIBBPF_API int bpf_map_lookup_and_delete_elem(int fd, const void *key,
159 LIBBPF_API int bpf_map_lookup_and_delete_elem_flags(int fd, const void *key,
161 LIBBPF_API int bpf_map_delete_elem(int fd, const void *key);
[all …]
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 *pro…
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);
Dlibbpf_common.h15 #ifndef LIBBPF_API
16 #define LIBBPF_API __attribute__((visibility("default"))) macro
Dlibbpf.c12150 LIBBPF_API struct bpf_link *
/linux-6.14.4/Documentation/bpf/libbpf/
Dlibbpf_naming_convention.rst76 attributed with ``LIBBPF_API`` macro. For example:
80 LIBBPF_API int bpf_prog_get_fd_by_id(__u32 id);