btf.h (7c819e701382d4969ca4837b8cbe157895f5d0bf) btf.h (0b20933d8cfe2bf6473e9b581b5d1ed9a2117ecc)
1/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2/* Copyright (c) 2018 Facebook */
3
4#ifndef __LIBBPF_BTF_H
5#define __LIBBPF_BTF_H
6
7#include <stdarg.h>
8#include <linux/btf.h>

--- 133 unchanged lines hidden (view full) ---

142 * type declarations (e.g., anonymous struct); applies for lines
143 * starting from the second one (first line is assumed to have
144 * necessary indentation already
145 */
146 int indent_level;
147 /* strip all the const/volatile/restrict mods */
148 bool strip_mods;
149};
1/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2/* Copyright (c) 2018 Facebook */
3
4#ifndef __LIBBPF_BTF_H
5#define __LIBBPF_BTF_H
6
7#include <stdarg.h>
8#include <linux/btf.h>

--- 133 unchanged lines hidden (view full) ---

142 * type declarations (e.g., anonymous struct); applies for lines
143 * starting from the second one (first line is assumed to have
144 * necessary indentation already
145 */
146 int indent_level;
147 /* strip all the const/volatile/restrict mods */
148 bool strip_mods;
149};
150#define btf_dump_emit_type_decl_opts__last_field indent_level
150#define btf_dump_emit_type_decl_opts__last_field strip_mods
151
152LIBBPF_API int
153btf_dump__emit_type_decl(struct btf_dump *d, __u32 id,
154 const struct btf_dump_emit_type_decl_opts *opts);
155
156/*
157 * A set of helpers for easier BTF types handling
158 */

--- 184 unchanged lines hidden ---
151
152LIBBPF_API int
153btf_dump__emit_type_decl(struct btf_dump *d, __u32 id,
154 const struct btf_dump_emit_type_decl_opts *opts);
155
156/*
157 * A set of helpers for easier BTF types handling
158 */

--- 184 unchanged lines hidden ---