bpf_map.h 431 B

12345678910111213141516171819202122
  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. #include <stdio.h>
  5. #include <linux/compiler.h>
  6. struct bpf_map;
  7. #ifdef HAVE_LIBBPF_SUPPORT
  8. int bpf_map__fprintf(struct bpf_map *map, FILE *fp);
  9. #else
  10. static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
  11. {
  12. return 0;
  13. }
  14. #endif // HAVE_LIBBPF_SUPPORT
  15. #endif // __PERF_BPF_MAP_H