Prev: [PATCH 08/49] memblock: Introduce default allocation limit and use it to replace explicit ones
Next: [PATCH 18/49] memblock: split memblock_find_base() out of __memblock_alloc_base()
From: Yinghai Lu on 6 Jul 2010 19:00 so will have more idea where it is, use memblock_debug to controll it -v2: use memblock_dbg instead of " if (memblock_debug) " Signed-off-by: Yinghai Lu <yinghai(a)kernel.org> --- mm/memblock.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index f1f85c3..74143d9 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -192,8 +192,6 @@ static int memblock_double_array(struct memblock_type *type) if (!memblock_can_resize) return -1; - pr_debug("memblock: %s array full, doubling...", memblock_type_name(type)); - /* Calculate new doubled size */ old_size = type->max * sizeof(struct memblock_region); new_size = old_size << 1; @@ -221,6 +219,9 @@ static int memblock_double_array(struct memblock_type *type) } new_array = __va(addr); + memblock_dbg("memblock: %s array is doubled to %ld at [%#010llx - %#010llx]", + memblock_type_name(type), type->max * 2, (u64)addr, (u64)addr + new_size); + /* Found space, we now need to move the array over before * we add the reserved region since it may be our reserved * array itself that is full. @@ -637,8 +638,8 @@ static void memblock_dump(struct memblock_type *region, char *name) base = region->regions[i].base; size = region->regions[i].size; - pr_info(" %s[0x%x]\t0x%016llx - 0x%016llx, 0x%llx bytes\n", - name, i, base, base + size - 1, size); + pr_info(" %s[%#x]\t[%#016llx - %#016llx], %#llx bytes\n", + name, i, base, base + size, size); } } -- 1.6.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |