vm_util.h 529 B

123456789101112
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. uint64_t pagemap_get_entry(int fd, char *start);
  5. bool pagemap_is_softdirty(int fd, char *start);
  6. void clear_softdirty(void);
  7. bool check_for_pattern(FILE *fp, const char *pattern, char *buf, size_t len);
  8. uint64_t read_pmd_pagesize(void);
  9. bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size);
  10. bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size);
  11. bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size);