From fe0963a83539b139455a49d17a0e7fe1b98090aa Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 18 Mar 2010 16:19:13 +0000 Subject: [PATCH] Added commands to the page access debugging panic()s. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35904 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/vm/vm_types.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/headers/private/kernel/vm/vm_types.h b/headers/private/kernel/vm/vm_types.h index d791542c17..9a4d110cd1 100644 --- a/headers/private/kernel/vm/vm_types.h +++ b/headers/private/kernel/vm/vm_types.h @@ -165,7 +165,9 @@ vm_page_debug_access_start(vm_page* page) threadID, -1); if (previousThread != -1) { panic("Invalid concurrent access to page %p (start), currently " - "accessed by: %" B_PRId32, page, previousThread); + "accessed by: %" B_PRId32 + "@! page -m %p; sc %" B_PRId32 "; cache _cache", page, + previousThread, page, previousThread); } } @@ -178,7 +180,9 @@ vm_page_debug_access_end(vm_page* page) threadID); if (previousThread != threadID) { panic("Invalid concurrent access to page %p (end) by current thread, " - "current accessor is: %" B_PRId32, page, previousThread); + "current accessor is: %" B_PRId32 + "@! page -m %p; sc %" B_PRId32 "; cache _cache", page, + previousThread, page, previousThread); } } @@ -189,7 +193,9 @@ vm_page_debug_access_check(vm_page* page) thread_id thread = page->accessing_thread; if (thread != thread_get_current_thread_id()) { panic("Invalid concurrent access to page %p (check), currently " - "accessed by: %" B_PRId32, page, thread); + "accessed by: %" B_PRId32 + "@! page -m %p; sc %" B_PRId32 "; cache _cache", page, thread, page, + thread); } }