fs_heap:add fs_heap_mallinfo_task
Summary: Added fs_heap_mallinfo_task implementation, which is used in proc_heap Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
parent
19fe41cb1b
commit
38c217bbfd
2 changed files with 16 additions and 9 deletions
|
|
@ -137,4 +137,9 @@ int fs_heap_asprintf(FAR char **strp, FAR const char *fmt, ...)
|
|||
return len;
|
||||
}
|
||||
|
||||
struct mallinfo_task fs_heap_mallinfo_task(FAR const struct malltask *task)
|
||||
{
|
||||
return mm_mallinfo_task(g_fs_heap, task);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ FAR char *fs_heap_strdup(FAR const char *s) malloc_like;
|
|||
FAR char *fs_heap_strndup(FAR const char *s, size_t size) malloc_like;
|
||||
int fs_heap_asprintf(FAR char **strp, FAR const char *fmt, ...)
|
||||
printf_like(2, 3);
|
||||
struct mallinfo_task fs_heap_mallinfo_task(FAR const struct malltask *task);
|
||||
#else
|
||||
# define fs_heap_initialize()
|
||||
# define fs_heap_zalloc kmm_zalloc
|
||||
|
|
@ -59,6 +60,7 @@ int fs_heap_asprintf(FAR char **strp, FAR const char *fmt, ...)
|
|||
# define fs_heap_realloc kmm_realloc
|
||||
# define fs_heap_memalign kmm_memalign
|
||||
# define fs_heap_free kmm_free
|
||||
# define fs_heap_mallinfo_task kmm_mallinfo_task
|
||||
# define fs_heap_strdup strdup
|
||||
# define fs_heap_strndup strndup
|
||||
# define fs_heap_asprintf asprintf
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue