summaryrefslogtreecommitdiff
path: root/tools/perf/util/bpf_map.h
blob: c2f7c13cba23fd2b13a7d8b6d90cfeb6f35f0dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
#ifndef __PERF_BPF_MAP_H
#define __PERF_BPF_MAP_H 1

#include <stdio.h>
struct bpf_map;

#ifdef HAVE_LIBBPF_SUPPORT

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

#else

#include <linux/compiler.h>

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