mirror of
https://github.com/apache/nuttx.git
synced 2026-08-15 17:33:18 +00: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:
parent
ddbe9eb6ab
commit
f01deff80f
9 changed files with 36 additions and 35 deletions
|
|
@ -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
|
||||
****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue