diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-16 23:44:53 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-16 23:44:53 +0100 |
commit | fff875a18382f1983b4a27be9282e697dbccb3db (patch) | |
tree | 3fd1b13d0a633d8502ffddb89348ef7619b3c229 /mm/memblock.c | |
parent | arm64: make _TIF_WORK_MASK bits contiguous (diff) | |
parent | mm: memblock: drop __init from memblock functions to make it inline (diff) | |
download | linux-fff875a18382f1983b4a27be9282e697dbccb3db.tar.xz linux-fff875a18382f1983b4a27be9282e697dbccb3db.zip |
Merge tag 'memblock-v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock
Pull memblock updates from Mike Rapoport:
"memblock debug enhancements.
Improve tracking of early memory allocations when memblock debug is
enabled:
- Add memblock_dbg() to memblock_phys_alloc_range() to get details
about its usage
- Make memblock allocator wrappers actually inline to track their
callers in memblock debug messages"
* tag 'memblock-v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
mm: memblock: drop __init from memblock functions to make it inline
mm: memblock: add more debug logs
Diffstat (limited to 'mm/memblock.c')
-rw-r--r-- | mm/memblock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index a3c406070f4d..d24bcfa88d2f 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -1419,6 +1419,9 @@ phys_addr_t __init memblock_phys_alloc_range(phys_addr_t size, phys_addr_t start, phys_addr_t end) { + memblock_dbg("%s: %llu bytes align=0x%llx from=%pa max_addr=%pa %pS\n", + __func__, (u64)size, (u64)align, &start, &end, + (void *)_RET_IP_); return memblock_alloc_range_nid(size, align, start, end, NUMA_NO_NODE, false); } |