mirror of
https://github.com/apache/nuttx.git
synced 2026-06-09 10:54:43 +08:00
mm: Rename MM_BACKTRACE_XXX_PID to PID_MM_XXX
and move the definition to malloc.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
ddbe9eb6ab
commit
f01deff80f
@@ -31,6 +31,13 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Special PID to query the info about alloc, free and mempool */
|
||||
|
||||
#define PID_MM_INVALID ((pid_t)-4)
|
||||
#define PID_MM_MEMPOOL ((pid_t)-3)
|
||||
#define PID_MM_FREE ((pid_t)-2)
|
||||
#define PID_MM_ALLOC ((pid_t)-1)
|
||||
|
||||
/* For Linux and MacOS compatibility */
|
||||
|
||||
#define malloc_usable_size malloc_size
|
||||
|
||||
@@ -101,11 +101,6 @@
|
||||
|
||||
#define mm_memdump_s malltask
|
||||
|
||||
#define MM_BACKTRACE_INVALID_PID ((pid_t)-4)
|
||||
#define MM_BACKTRACE_MEMPOOL_PID ((pid_t)-3)
|
||||
#define MM_BACKTRACE_FREE_PID ((pid_t)-2)
|
||||
#define MM_BACKTRACE_ALLOC_PID ((pid_t)-1)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user