swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: ba4f184e126b751d1bffad5897f263108befc780 authored by Linus Torvalds on 20 September 2020, 23:33:55 UTC
Linux 5.9-rc6
Tip revision: ba4f184
bpf_map.h
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
#ifndef __PERF_BPF_MAP_H
#define __PERF_BPF_MAP_H 1

#include <stdio.h>
#include <linux/compiler.h>
struct bpf_map;

#ifdef HAVE_LIBBPF_SUPPORT

int bpf_map__fprintf(struct bpf_map *map, FILE *fp);

#else

static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
{
	return 0;
}

#endif // HAVE_LIBBPF_SUPPORT

#endif // __PERF_BPF_MAP_H
back to top