[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnumach] 11/56: vm: organize vm print function prototypes
From: |
Samuel Thibault |
Subject: |
[gnumach] 11/56: vm: organize vm print function prototypes |
Date: |
Sat, 28 Sep 2013 12:43:12 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch master
in repository gnumach.
commit 91f9da20ad9da24c13b2b87b14752c865454744b
Author: Marin Ramesa <address@hidden>
Date: Wed Jul 10 12:42:08 2013 +0200
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>.
---
vm/vm_map.c | 1 +
vm/vm_map.h | 3 ---
vm/vm_object.c | 1 +
vm/vm_object.h | 2 --
vm/vm_print.h | 22 ++++++++++++++++++++++
vm/vm_resident.c | 1 +
6 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 47db118..2be7147 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -55,6 +55,7 @@
#if MACH_KDB
#include <ddb/db_output.h>
+#include <vm/vm_print.h>
#endif /* MACH_KDB */
diff --git a/vm/vm_map.h b/vm/vm_map.h
index a15e681..5fdac4e 100644
--- a/vm/vm_map.h
+++ b/vm/vm_map.h
@@ -397,9 +397,6 @@ extern kern_return_t vm_map_protect(vm_map_t,
vm_offset_t, vm_offset_t,
extern kern_return_t vm_map_inherit(vm_map_t, vm_offset_t, vm_offset_t,
vm_inherit_t);
-/* Debugging: print a map */
-extern void vm_map_print(vm_map_t);
-
/* Look up an address */
extern kern_return_t vm_map_lookup(vm_map_t *, vm_offset_t, vm_prot_t,
vm_map_version_t *, vm_object_t *,
diff --git a/vm/vm_object.c b/vm/vm_object.c
index d83c39f..18a909f 100644
--- a/vm/vm_object.c
+++ b/vm/vm_object.c
@@ -2969,6 +2969,7 @@ vm_object_page_map(
#if MACH_KDB
+#include <vm/vm_print.h>
#define printf kdbprintf
boolean_t vm_object_print_pages = FALSE;
diff --git a/vm/vm_object.h b/vm/vm_object.h
index 4e4c949..adeff65 100644
--- a/vm/vm_object.h
+++ b/vm/vm_object.h
@@ -233,8 +233,6 @@ extern void vm_object_page_map(
vm_offset_t (*)(void *, vm_offset_t),
void *);
-extern void vm_object_print(vm_object_t);
-
extern vm_object_t vm_object_request_object(struct ipc_port *);
extern boolean_t vm_object_coalesce(
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 */
+
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index d2edf5a..7906b58 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -60,6 +60,7 @@
#if MACH_KDB
#include <ddb/db_output.h>
+#include <vm/vm_print.h>
#endif /* MACH_KDB */
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/gnumach.git
- [gnumach] 48/56: Merge remote-tracking branch 'savannah/master' into master, (continued)
- [gnumach] 48/56: Merge remote-tracking branch 'savannah/master' into master, Samuel Thibault, 2013/09/28
- [gnumach] 53/56: Merge branch 'master' of git.debian.org:/git/pkg-hurd/gnumach, Samuel Thibault, 2013/09/28
- [gnumach] 52/56: rules (clean): Remove generated documentation., Samuel Thibault, 2013/09/28
- [gnumach] 55/56: Rename packages from 1.3.99 to 1.4, Samuel Thibault, 2013/09/28
- [gnumach] 56/56: upload, Samuel Thibault, 2013/09/28
- [gnumach] 39/56: Update README, Samuel Thibault, 2013/09/28
- [gnumach] 51/56: Merge branch 'upstream', Samuel Thibault, 2013/09/28
- [gnumach] 19/56: drop unused CONSMAJOR, Samuel Thibault, 2013/09/28
- [gnumach] 31/56: remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 29/56: use boolean_t instead of an int, Samuel Thibault, 2013/09/28
- [gnumach] 11/56: vm: organize vm print function prototypes,
Samuel Thibault <=
- [gnumach] 10/56: ddb: cleanup db_command.c, Samuel Thibault, 2013/09/28
- [gnumach] 24/56: remove definition of NDEVICES, Samuel Thibault, 2013/09/28
- [gnumach] 16/56: Drop useless forward declaration, Samuel Thibault, 2013/09/28
- [gnumach] 18/56: Remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 13/56: kern: add missing prototype, Samuel Thibault, 2013/09/28
- [gnumach] 15/56: Drop luna88k bits, Samuel Thibault, 2013/09/28
- [gnumach] 35/56: remove lint code, Samuel Thibault, 2013/09/28
- [gnumach] 12/56: ipc: organize ipc print function prototypes, Samuel Thibault, 2013/09/28
- [gnumach] 37/56: device: remove unused file dk_label.c, Samuel Thibault, 2013/09/28
- [gnumach] 32/56: Coding style trivial fixes, Samuel Thibault, 2013/09/28