summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/vm/vm_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/vm/vm_util.h')
-rw-r--r--tools/testing/selftests/vm/vm_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/vm/vm_util.h b/tools/testing/selftests/vm/vm_util.h
new file mode 100644
index 000000000000..2e512bd57ae1
--- /dev/null
+++ b/tools/testing/selftests/vm/vm_util.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#include <stdint.h>
+#include <stdbool.h>
+
+uint64_t pagemap_get_entry(int fd, char *start);
+bool pagemap_is_softdirty(int fd, char *start);
+void clear_softdirty(void);
+uint64_t read_pmd_pagesize(void);
+uint64_t check_huge(void *addr);