summaryrefslogtreecommitdiff
path: root/vm/vm_print.h
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-07-10 12:42:08 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-18 00:08:37 +0200
commit91f9da20ad9da24c13b2b87b14752c865454744b (patch)
tree74c409c7a9706822594728059eb9502df289cd59 /vm/vm_print.h
parent37a5965ed210cb0672ceae8292393a678a144415 (diff)
vm: organize vm print function prototypes
* vm/vm_print.h: New file. Include <vm/vm_map.h>. Include <machine/db_machdep.h>. (vm_map_print): Add prototype. (vm_map_copy_print): Likewise. (vm_object_print): Likewise. (vm_page_print): Likewise. Include <vm/vm_object.h>. Include <vm/vm_page.h> * vm/vm_map.h (vm_map_print): Remove prototype. * vm/vm_map.c [MACH_KDB]: Include <vm/vm_print.h>. * vm/vm_object.h (vm_object_print): Remove prototype. * vm/vm_object.c [MACH_KDB]: Include <vm/vm_print.h>. * vm/vm_resident.c [MACH_KDB]: Include <vm/vm_print.h>.
Diffstat (limited to 'vm/vm_print.h')
-rw-r--r--vm/vm_print.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/vm/vm_print.h b/vm/vm_print.h
new file mode 100644
index 0000000..69a20ba
--- /dev/null
+++ b/vm/vm_print.h
@@ -0,0 +1,22 @@
+#ifndef VM_PRINT_H
+#define VM_PRINT_H
+
+#include <vm/vm_map.h>
+#include <machine/db_machdep.h>
+
+/* Debugging: print a map */
+extern void vm_map_print(vm_map_t);
+
+/* Pretty-print a copy object for ddb. */
+extern void vm_map_copy_print(vm_map_copy_t);
+
+#include <vm/vm_object.h>
+
+extern void vm_object_print(vm_object_t);
+
+#include <vm/vm_page.h>
+
+extern void vm_page_print(vm_page_t);
+
+#endif /* VM_PRINT_H */
+