cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

bpf_map.h (431B)


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