[PATCH 0/4] malloc: Enable profiling dlmalloc with valgrind

Sean Anderson seanga2 at gmail.com
Mon May 3 04:55:12 CEST 2021


This series adds support for running valgrind against U-Boot's internal
malloc. This allows for much more useful reports to be generated.


Sean Anderson (4):
  Add valgrind headers to U-Boot
  malloc: Annotate allocator for valgrind
  doc: sandbox: Document how to run sandbox with valgrind
  malloc: Fix sbrk clearing memory after freeing it instead of before

 Kconfig                     |   14 +
 Licenses/README             |    1 +
 Licenses/bzip2-1.0.6.txt    |   30 +
 common/dlmalloc.c           |   39 +-
 common/malloc_simple.c      |   10 +
 doc/arch/sandbox.rst        |   14 +-
 include/malloc.h            |    4 +
 include/valgrind/memcheck.h |  251 ++
 include/valgrind/valgrind.h | 7106 +++++++++++++++++++++++++++++++++++
 scripts/u-boot.supp         |   30 +
 10 files changed, 7490 insertions(+), 9 deletions(-)
 create mode 100644 Licenses/bzip2-1.0.6.txt
 create mode 100644 include/valgrind/memcheck.h
 create mode 100644 include/valgrind/valgrind.h
 create mode 100644 scripts/u-boot.supp

-- 
2.31.0



More information about the U-Boot mailing list