Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / bpf_map.h
blobc2f7c13cba23fd2b13a7d8b6d90cfeb6f35f0dc0
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 struct bpf_map;
8 #ifdef HAVE_LIBBPF_SUPPORT
10 int bpf_map__fprintf(struct bpf_map *map, FILE *fp);
12 #else
14 #include <linux/compiler.h>
16 static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
18 return 0;
21 #endif // HAVE_LIBBPF_SUPPORT
23 #endif // __PERF_BPF_MAP_H