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

lib.h (357B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __LIBPERF_INTERNAL_LIB_H
      3#define __LIBPERF_INTERNAL_LIB_H
      4
      5#include <sys/types.h>
      6
      7extern unsigned int page_size;
      8
      9ssize_t readn(int fd, void *buf, size_t n);
     10ssize_t writen(int fd, const void *buf, size_t n);
     11
     12ssize_t preadn(int fd, void *buf, size_t n, off_t offs);
     13
     14#endif /* __LIBPERF_INTERNAL_CPUMAP_H */