summaryrefslogtreecommitdiff
path: root/include/malloc.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-18 08:14:26 -0700
committerSimon Glass <sjg@chromium.org>2018-11-29 09:30:05 -0700
commit7cbd2d2e327d2971d186c41cbfdc33b7e6ae6afc (patch)
tree25571f14bc851b8ce25d51c7fc69be78c704c172 /include/malloc.h
parente16c888fab5014b022d5781dc534f204460a073b (diff)
malloc_simple: Add logging of allocations
It is sometimes useful to see what memory is being allocated early during boot. Add logging to support this, using a new LOGC_ALLOC category. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/malloc.h')
-rw-r--r--include/malloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h
index 8175c75920..b714fedf45 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -880,6 +880,7 @@ static inline void free(void *ptr) {}
void *calloc(size_t nmemb, size_t size);
void *memalign_simple(size_t alignment, size_t bytes);
void *realloc_simple(void *ptr, size_t size);
+void malloc_simple_info(void);
#else
# ifdef USE_DL_PREFIX