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