summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/btf_helpers.h
blob: 2c9ce1b61dc9c9f0c0c1c4b6a77967bfd50966da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2020 Facebook */
#ifndef __BTF_HELPERS_H
#define __BTF_HELPERS_H

#include <stdio.h>
#include <bpf/btf.h>

int fprintf_btf_type_raw(FILE *out, const struct btf *btf, __u32 id);
const char *btf_type_raw_dump(const struct btf *btf, int type_id);

#endif