1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2018 Facebook */
9 #define BTF_ELF_SEC ".BTF"
13 typedef int (*btf_print_fn_t)(const char *, ...)
14 __attribute__((format(printf, 1, 2)));
16 void btf__free(struct btf *btf);
17 struct btf *btf__new(uint8_t *data, uint32_t size, btf_print_fn_t err_log);
18 int32_t btf__find_by_name(const struct btf *btf, const char *type_name);
19 int64_t btf__resolve_size(const struct btf *btf, uint32_t type_id);
20 int btf__fd(const struct btf *btf);