Linux 5.1.15
[linux/fpc-iii.git] / tools / perf / util / bpf_map.h
blobd6abd5e47af8d7d6e4ea4212c99f5f11d8bc4820
1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
2 #ifndef __PERF_BPF_MAP_H
3 #define __PERF_BPF_MAP_H 1
5 #include <stdio.h>
6 #include <linux/compiler.h>
7 struct bpf_map;
9 #ifdef HAVE_LIBBPF_SUPPORT
11 int bpf_map__fprintf(struct bpf_map *map, FILE *fp);
13 #else
15 static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
17 return 0;
20 #endif // HAVE_LIBBPF_SUPPORT
22 #endif // __PERF_BPF_MAP_H