Lines Matching refs:LIBBPF_API
38 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 struct btf *btf__parse_raw(const char *path);
115 LIBBPF_API struct btf *btf__parse_raw_split(const char *path, struct btf *base_btf);
117 LIBBPF_API struct btf *btf__load_vmlinux_btf(void);
118 LIBBPF_API struct btf *btf__load_module_btf(const char *module_name, struct btf *vmlinux_btf);
119 LIBBPF_API struct btf *libbpf_find_kernel_btf(void);
121 LIBBPF_API struct btf *btf__load_from_kernel_by_id(__u32 id);
122 LIBBPF_API struct btf *btf__load_from_kernel_by_id_split(__u32 id, struct btf *base_btf);
124 LIBBPF_API int btf__get_from_id(__u32 id, struct btf **btf);
127 LIBBPF_API int btf__finalize_data(struct bpf_object *obj, struct btf *btf);
129 LIBBPF_API int btf__load(struct btf *btf);
130 LIBBPF_API int btf__load_into_kernel(struct btf *btf);
131 LIBBPF_API __s32 btf__find_by_name(const struct btf *btf,
133 LIBBPF_API __s32 btf__find_by_name_kind(const struct btf *btf,
136 LIBBPF_API __u32 btf__get_nr_types(const struct btf *btf);
137 LIBBPF_API __u32 btf__type_cnt(const struct btf *btf);
138 LIBBPF_API const struct btf *btf__base_btf(const struct btf *btf);
139 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
141 LIBBPF_API size_t btf__pointer_size(const struct btf *btf);
142 LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
143 LIBBPF_API enum btf_endianness btf__endianness(const struct btf *btf);
144 LIBBPF_API int btf__set_endianness(struct btf *btf, enum btf_endianness endian);
145 LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id);
146 LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id);
147 LIBBPF_API int btf__align_of(const struct btf *btf, __u32 id);
148 LIBBPF_API int btf__fd(const struct btf *btf);
149 LIBBPF_API void btf__set_fd(struct btf *btf, int fd);
151 LIBBPF_API const void *btf__get_raw_data(const struct btf *btf, __u32 *size);
152 LIBBPF_API const void *btf__raw_data(const struct btf *btf, __u32 *size);
153 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
154 LIBBPF_API const char *btf__str_by_offset(const struct btf *btf, __u32 offset);
155 LIBBPF_API int btf__get_map_kv_tids(const struct btf *btf, const char *map_name,
160 LIBBPF_API struct btf_ext *btf_ext__new(__u8 *data, __u32 size);
161 LIBBPF_API void btf_ext__free(struct btf_ext *btf_ext);
162 LIBBPF_API const void *btf_ext__get_raw_data(const struct btf_ext *btf_ext,
164 LIBBPF_API LIBBPF_DEPRECATED("btf_ext__reloc_func_info was never meant as a public API and has wron…
169 LIBBPF_API LIBBPF_DEPRECATED("btf_ext__reloc_line_info was never meant as a public API and has wron…
174 LIBBPF_API __u32 btf_ext__func_info_rec_size(const struct btf_ext *btf_ext);
175 LIBBPF_API __u32 btf_ext__line_info_rec_size(const struct btf_ext *btf_ext);
177 LIBBPF_API int btf__find_str(struct btf *btf, const char *s);
178 LIBBPF_API int btf__add_str(struct btf *btf, const char *s);
179 LIBBPF_API int btf__add_type(struct btf *btf, const struct btf *src_btf,
202 LIBBPF_API int btf__add_btf(struct btf *btf, const struct btf *src_btf);
204 LIBBPF_API int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding);
205 LIBBPF_API int btf__add_float(struct btf *btf, const char *name, size_t byte_sz);
206 LIBBPF_API int btf__add_ptr(struct btf *btf, int ref_type_id);
207 LIBBPF_API int btf__add_array(struct btf *btf,
210 LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
211 LIBBPF_API int btf__add_union(struct btf *btf, const char *name, __u32 sz);
212 LIBBPF_API int btf__add_field(struct btf *btf, const char *name, int field_type_id,
216 LIBBPF_API int btf__add_enum(struct btf *btf, const char *name, __u32 bytes_sz);
217 LIBBPF_API int btf__add_enum_value(struct btf *btf, const char *name, __s64 value);
225 LIBBPF_API int btf__add_fwd(struct btf *btf, const char *name, enum btf_fwd_kind fwd_kind);
226 LIBBPF_API int btf__add_typedef(struct btf *btf, const char *name, int ref_type_id);
227 LIBBPF_API int btf__add_volatile(struct btf *btf, int ref_type_id);
228 LIBBPF_API int btf__add_const(struct btf *btf, int ref_type_id);
229 LIBBPF_API int btf__add_restrict(struct btf *btf, int ref_type_id);
232 LIBBPF_API int btf__add_func(struct btf *btf, const char *name,
234 LIBBPF_API int btf__add_func_proto(struct btf *btf, int ret_type_id);
235 LIBBPF_API int btf__add_func_param(struct btf *btf, const char *name, int type_id);
238 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
239 LIBBPF_API int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz);
240 LIBBPF_API int btf__add_datasec_var_info(struct btf *btf, int var_type_id,
244 LIBBPF_API int btf__add_decl_tag(struct btf *btf, const char *value, int ref_type_id,
252 LIBBPF_API int btf__dedup(struct btf *btf, struct btf_ext *btf_ext,
263 LIBBPF_API struct btf_dump *btf_dump__new(const struct btf *btf,
267 LIBBPF_API void btf_dump__free(struct btf_dump *d);
269 LIBBPF_API int btf_dump__dump_type(struct btf_dump *d, __u32 id);
292 LIBBPF_API int
310 LIBBPF_API int