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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user