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