1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2020, Oracle and/or its affiliates. */
3 /* "undefine" structs in vmlinux.h, because we "override" them below */
4 #define btf_ptr btf_ptr___not_used
5 #define BTF_F_COMPACT BTF_F_COMPACT___not_used
6 #define BTF_F_NONAME BTF_F_NONAME___not_used
7 #define BTF_F_PTR_RAW BTF_F_PTR_RAW___not_used
8 #define BTF_F_ZERO BTF_F_ZERO___not_used
9 #include "vmlinux.h"
10 #undef btf_ptr
11 #undef BTF_F_COMPACT
12 #undef BTF_F_NONAME
13 #undef BTF_F_PTR_RAW
14 #undef BTF_F_ZERO
15 
16 struct btf_ptr {
17 	void *ptr;
18 	__u32 type_id;
19 	__u32 flags;
20 };
21 
22 enum {
23 	BTF_F_COMPACT	=	(1ULL << 0),
24 	BTF_F_NONAME	=	(1ULL << 1),
25 	BTF_F_PTR_RAW	=	(1ULL << 2),
26 	BTF_F_ZERO	=	(1ULL << 3),
27 };
28