Lines Matching refs:btf
23 struct btf;
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);
120 LIBBPF_API struct btf *btf__load_from_kernel_by_id(__u32 id);
121 LIBBPF_API struct btf *btf__load_from_kernel_by_id_split(__u32 id, struct btf *base_btf);
123 LIBBPF_API int btf__load_into_kernel(struct btf *btf);
124 LIBBPF_API __s32 btf__find_by_name(const struct btf *btf,
126 LIBBPF_API __s32 btf__find_by_name_kind(const struct btf *btf,
128 LIBBPF_API __u32 btf__type_cnt(const struct btf *btf);
129 LIBBPF_API const struct btf *btf__base_btf(const struct btf *btf);
130 LIBBPF_API const struct btf_type *btf__type_by_id(const struct btf *btf,
132 LIBBPF_API size_t btf__pointer_size(const struct btf *btf);
133 LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
134 LIBBPF_API enum btf_endianness btf__endianness(const struct btf *btf);
135 LIBBPF_API int btf__set_endianness(struct btf *btf, enum btf_endianness endian);
136 LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id);
137 LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id);
138 LIBBPF_API int btf__align_of(const struct btf *btf, __u32 id);
139 LIBBPF_API int btf__fd(const struct btf *btf);
140 LIBBPF_API void btf__set_fd(struct btf *btf, int fd);
141 LIBBPF_API const void *btf__raw_data(const struct btf *btf, __u32 *size);
142 LIBBPF_API const char *btf__name_by_offset(const struct btf *btf, __u32 offset);
143 LIBBPF_API const char *btf__str_by_offset(const struct btf *btf, __u32 offset);
149 LIBBPF_API int btf__find_str(struct btf *btf, const char *s);
150 LIBBPF_API int btf__add_str(struct btf *btf, const char *s);
151 LIBBPF_API int btf__add_type(struct btf *btf, const struct btf *src_btf,
174 LIBBPF_API int btf__add_btf(struct btf *btf, const struct btf *src_btf);
176 LIBBPF_API int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding);
177 LIBBPF_API int btf__add_float(struct btf *btf, const char *name, size_t byte_sz);
178 LIBBPF_API int btf__add_ptr(struct btf *btf, int ref_type_id);
179 LIBBPF_API int btf__add_array(struct btf *btf,
182 LIBBPF_API int btf__add_struct(struct btf *btf, const char *name, __u32 sz);
183 LIBBPF_API int btf__add_union(struct btf *btf, const char *name, __u32 sz);
184 LIBBPF_API int btf__add_field(struct btf *btf, const char *name, int field_type_id,
188 LIBBPF_API int btf__add_enum(struct btf *btf, const char *name, __u32 bytes_sz);
189 LIBBPF_API int btf__add_enum_value(struct btf *btf, const char *name, __s64 value);
190 LIBBPF_API int btf__add_enum64(struct btf *btf, const char *name, __u32 bytes_sz, bool is_signed);
191 LIBBPF_API int btf__add_enum64_value(struct btf *btf, const char *name, __u64 value);
199 LIBBPF_API int btf__add_fwd(struct btf *btf, const char *name, enum btf_fwd_kind fwd_kind);
200 LIBBPF_API int btf__add_typedef(struct btf *btf, const char *name, int ref_type_id);
201 LIBBPF_API int btf__add_volatile(struct btf *btf, int ref_type_id);
202 LIBBPF_API int btf__add_const(struct btf *btf, int ref_type_id);
203 LIBBPF_API int btf__add_restrict(struct btf *btf, int ref_type_id);
204 LIBBPF_API int btf__add_type_tag(struct btf *btf, const char *value, int ref_type_id);
207 LIBBPF_API int btf__add_func(struct btf *btf, const char *name,
209 LIBBPF_API int btf__add_func_proto(struct btf *btf, int ret_type_id);
210 LIBBPF_API int btf__add_func_param(struct btf *btf, const char *name, int type_id);
213 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
214 LIBBPF_API int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz);
215 LIBBPF_API int btf__add_datasec_var_info(struct btf *btf, int var_type_id,
219 LIBBPF_API int btf__add_decl_tag(struct btf *btf, const char *value, int ref_type_id,
232 LIBBPF_API int btf__dedup(struct btf *btf, const struct btf_dedup_opts *opts);
243 LIBBPF_API struct btf_dump *btf_dump__new(const struct btf *btf,