Merge tag '6.9-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6
[linux-2.6-block.git] / tools / perf / util / bpf_map.h
CommitLineData
d19f8564
ACM
1// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
2#ifndef __PERF_BPF_MAP_H
3#define __PERF_BPF_MAP_H 1
4
5#include <stdio.h>
d19f8564
ACM
6struct bpf_map;
7
8#ifdef HAVE_LIBBPF_SUPPORT
9
10int bpf_map__fprintf(struct bpf_map *map, FILE *fp);
11
12#else
13
cff62414
ACM
14#include <linux/compiler.h>
15
d19f8564
ACM
16static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
17{
18 return 0;
19}
20
21#endif // HAVE_LIBBPF_SUPPORT
22
23#endif // __PERF_BPF_MAP_H