diff options
Diffstat (limited to 'include/linux/btf.h')
-rw-r--r-- | include/linux/btf.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/btf.h b/include/linux/btf.h index 58000d7e06e3..12502e25e767 100644 --- a/include/linux/btf.h +++ b/include/linux/btf.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <linux/types.h> | 7 | #include <linux/types.h> |
8 | 8 | ||
9 | struct btf; | 9 | struct btf; |
10 | struct btf_member; | ||
10 | struct btf_type; | 11 | struct btf_type; |
11 | union bpf_attr; | 12 | union bpf_attr; |
12 | 13 | ||
@@ -46,7 +47,9 @@ void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, | |||
46 | struct seq_file *m); | 47 | struct seq_file *m); |
47 | int btf_get_fd_by_id(u32 id); | 48 | int btf_get_fd_by_id(u32 id); |
48 | u32 btf_id(const struct btf *btf); | 49 | u32 btf_id(const struct btf *btf); |
49 | bool btf_type_is_reg_int(const struct btf_type *t, u32 expected_size); | 50 | bool btf_member_is_reg_int(const struct btf *btf, const struct btf_type *s, |
51 | const struct btf_member *m, | ||
52 | u32 expected_offset, u32 expected_size); | ||
50 | 53 | ||
51 | #ifdef CONFIG_BPF_SYSCALL | 54 | #ifdef CONFIG_BPF_SYSCALL |
52 | const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id); | 55 | const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id); |