28 lines · c
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_used5#define BTF_F_COMPACT BTF_F_COMPACT___not_used6#define BTF_F_NONAME BTF_F_NONAME___not_used7#define BTF_F_PTR_RAW BTF_F_PTR_RAW___not_used8#define BTF_F_ZERO BTF_F_ZERO___not_used9#include "vmlinux.h"10#undef btf_ptr11#undef BTF_F_COMPACT12#undef BTF_F_NONAME13#undef BTF_F_PTR_RAW14#undef BTF_F_ZERO15 16struct btf_ptr {17 void *ptr;18 __u32 type_id;19 __u32 flags;20};21 22enum {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