kill dentry_update_name_case()
[sfrench/cifs-2.6.git] / tools / lib / bpf / btf.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2018 Facebook */
3
4 #ifndef __BPF_BTF_H
5 #define __BPF_BTF_H
6
7 #include <stdint.h>
8
9 #define BTF_ELF_SEC ".BTF"
10
11 struct btf;
12
13 typedef int (*btf_print_fn_t)(const char *, ...)
14         __attribute__((format(printf, 1, 2)));
15
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);
21
22 #endif