Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright (c) 2020, Oracle and/or its affiliates. */
0003 /* "undefine" structs in vmlinux.h, because we "override" them below */
0004 #define btf_ptr btf_ptr___not_used
0005 #define BTF_F_COMPACT BTF_F_COMPACT___not_used
0006 #define BTF_F_NONAME BTF_F_NONAME___not_used
0007 #define BTF_F_PTR_RAW BTF_F_PTR_RAW___not_used
0008 #define BTF_F_ZERO BTF_F_ZERO___not_used
0009 #include "vmlinux.h"
0010 #undef btf_ptr
0011 #undef BTF_F_COMPACT
0012 #undef BTF_F_NONAME
0013 #undef BTF_F_PTR_RAW
0014 #undef BTF_F_ZERO
0015 
0016 struct btf_ptr {
0017     void *ptr;
0018     __u32 type_id;
0019     __u32 flags;
0020 };
0021 
0022 enum {
0023     BTF_F_COMPACT   =   (1ULL << 0),
0024     BTF_F_NONAME    =   (1ULL << 1),
0025     BTF_F_PTR_RAW   =   (1ULL << 2),
0026     BTF_F_ZERO  =   (1ULL << 3),
0027 };