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:
Xiang Xiao
2023-05-28 20:09:42 +08:00
committed by Petro Karashchenko
parent ddbe9eb6ab
commit f01deff80f
9 changed files with 36 additions and 35 deletions
+7
View File
@@ -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
-5
View File
@@ -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
****************************************************************************/