Add VM page allocation tracking similar to what happens in the slab already.

Introduces "page_allocation_infos" and "page_allocations_per_caller" KDL
commands.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43190 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2011-11-04 18:07:07 +00:00
parent 905c75a595
commit 90c6930ebb
3 changed files with 416 additions and 0 deletions
+10
View File
@@ -12,6 +12,7 @@
#include <new>
#include <AllocationTracking.h>
#include <arch/vm_types.h>
#include <condition_variable.h>
#include <kernel.h>
@@ -25,6 +26,11 @@
#include "kernel_debug_config.h"
#define VM_PAGE_ALLOCATION_TRACKING_AVAILABLE \
(VM_PAGE_ALLOCATION_TRACKING && PAGE_ALLOCATION_TRACING != 0 \
&& PAGE_ALLOCATION_TRACING_STACK_TRACE > 0)
class AsyncIOCallback;
struct vm_page_mapping;
struct VMCache;
@@ -133,6 +139,10 @@ public:
vint32 accessing_thread;
#endif
#if VM_PAGE_ALLOCATION_TRACKING_AVAILABLE
AllocationTrackingInfo allocation_tracking_info;
#endif
private:
uint8 state : 3;
public: