extern void __dump_page(struct page *page, const char *reason);
void dump_vma(const struct vm_area_struct *vma);
void dump_mm(const struct mm_struct *mm);
-#define CONFIG_DEBUG_VM
+#define CONFIG_DEBUG_VM 1
#ifdef CONFIG_DEBUG_VM
#define VM_BUG_ON(cond) BUG_ON(cond)
#define VM_BUG_ON_PAGE(cond, page) \
#include "internal.h"
#define CONFIG_DEBUG_MAPLE_TREE
-#define CONFIG_DEBUG_VM_RB
+#define CONFIG_DEBUG_VM_RB 1
extern void mt_validate(struct maple_tree *mt);
#ifndef arch_mmap_check
#if defined(CONFIG_DEBUG_MAPLE_TREE)
extern void mt_dump(const struct maple_tree *mt);
+#if 0
static void __vma_mt_dump(struct mm_struct *mm)
{
struct vm_area_struct *entry = NULL;
}
rcu_read_unlock();
}
-/* Validate the maple tree
- *
+#endif
+
+/*
+ * Validate the maple tree
*/
static void validate_mm_mt(struct mm_struct *mm,
struct vm_area_struct *ignore)
while (vma) {
struct anon_vma *anon_vma = vma->anon_vma;
- struct anon_vma_chain *avc;
+// struct anon_vma_chain *avc;
// pr_cont("vma: %lu-%lu", vma->vm_start, vma->vm_end);
if (anon_vma) {
return 0;
}
+#if 0
/* Private
* clean_overlaps() - Call do_munmap if there exists any mapping within @start
* to @end. Sets @pprev to the previous entry or NULL if none exists.
}
return 0;
}
+#endif
static unsigned long count_vma_pages_range(struct mm_struct *mm,
unsigned long addr, unsigned long end)
{
struct vm_area_struct *dv = mm->mmap;
while (dv) {
- printk("vma %px %llu-%llu\n", dv, dv->vm_start, dv->vm_end);
+ printk("vma %px %lu-%lu\n", dv, dv->vm_start, dv->vm_end);
dv = dv->vm_next;
}
}