Commit | Line | Data |
---|---|---|
642bc52a MUA |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #include <stdint.h> | |
3 | #include <stdbool.h> | |
4 | ||
5 | uint64_t pagemap_get_entry(int fd, char *start); | |
6 | bool pagemap_is_softdirty(int fd, char *start); | |
69c66add | 7 | bool pagemap_is_swapped(int fd, char *start); |
a905e82a | 8 | bool pagemap_is_populated(int fd, char *start); |
93fb70aa | 9 | unsigned long pagemap_get_pfn(int fd, char *start); |
642bc52a | 10 | void clear_softdirty(void); |
c07c343c | 11 | bool check_for_pattern(FILE *fp, const char *pattern, char *buf, size_t len); |
642bc52a | 12 | uint64_t read_pmd_pagesize(void); |
c07c343c | 13 | bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size); |
1b03d0d5 ZK |
14 | bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size); |
15 | bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size); |