Files
u-boot/cmd
Simon Glass ee8e9bf104 malloc: Add malloc dump command to walk the heap
Add a new 'malloc dump' command that walks the dlmalloc heap from start
to end, printing each chunk's address, size (in hex), and status
(used/free/top). This is useful for debugging memory allocation issues.

When CONFIG_MCHECK_HEAP_PROTECTION is enabled, the caller string is
also shown if available.

Example output:
    Heap dump: 18a1d000 - 1ea1f000
         Address        Size  Status
    ----------------------------------
        18a1d000          10  (chunk header)
        18a1d010          90  used
        18adfc30          60  <free>
        18adff90     5f3f030  top
        1ea1f000              end
    ----------------------------------
    Used: c2ef0 bytes in 931 chunks
    Free: 5f3f0c0 bytes in 2 chunks + top

Expand the console-record size to handle this command.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-12-10 05:53:03 -07:00
..
2025-12-01 15:42:04 +00:00
2025-09-24 18:29:38 -06:00
2025-09-28 14:32:36 -06:00
2025-06-28 07:53:25 -06:00
2025-06-28 07:53:25 -06:00
2025-05-28 08:01:43 +01:00
2025-06-28 07:53:25 -06:00
2025-09-04 07:08:24 -06:00
2025-05-16 18:17:17 +02:00
2025-06-28 12:30:56 -06:00