Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
0002 #ifndef __PERF_BPF_MAP_H
0003 #define __PERF_BPF_MAP_H 1
0004 
0005 #include <stdio.h>
0006 #include <linux/compiler.h>
0007 struct bpf_map;
0008 
0009 #ifdef HAVE_LIBBPF_SUPPORT
0010 
0011 int bpf_map__fprintf(struct bpf_map *map, FILE *fp);
0012 
0013 #else
0014 
0015 static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
0016 {
0017     return 0;
0018 }
0019 
0020 #endif // HAVE_LIBBPF_SUPPORT
0021 
0022 #endif // __PERF_BPF_MAP_H