mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
cff6241464
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
24 lines
432 B
C
24 lines
432 B
C
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
|
|
#ifndef __PERF_BPF_MAP_H
|
|
#define __PERF_BPF_MAP_H 1
|
|
|
|
#include <stdio.h>
|
|
struct bpf_map;
|
|
|
|
#ifdef HAVE_LIBBPF_SUPPORT
|
|
|
|
int bpf_map__fprintf(struct bpf_map *map, FILE *fp);
|
|
|
|
#else
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
static inline int bpf_map__fprintf(struct bpf_map *map __maybe_unused, FILE *fp __maybe_unused)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif // HAVE_LIBBPF_SUPPORT
|
|
|
|
#endif // __PERF_BPF_MAP_H
|