// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) /* Copyright (c) 2021 Facebook */ /* Copyright (c) 2024, Oracle and/or its affiliates. */ #ifdef __KERNEL__ #include <linux/bpf.h> #include <linux/btf.h> #define btf_var_secinfos(t) … #else #include "btf.h" #include "libbpf_internal.h" #endif int btf_field_iter_init(struct btf_field_iter *it, struct btf_type *t, enum btf_field_iter_kind iter_kind) { … } __u32 *btf_field_iter_next(struct btf_field_iter *it) { … }