forked from xuos/xiuos
add debug cmd for task/sem/mutex/msgqueue/timer
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
extern long ShowMemPool(void);
|
||||
extern void ShowMemory(void);
|
||||
extern void ListBuddy(void);
|
||||
extern void ShowBuddy(void);
|
||||
/**************************single gatherblock test sample***********************************/
|
||||
static uint8 *ptr[30];
|
||||
static uint8 mempool[2048];
|
||||
@@ -265,7 +265,7 @@ void GatherblockLimitTest(char *name, int count, int blocksize){
|
||||
KPrintf("no memory.\n");
|
||||
return;
|
||||
}
|
||||
ListBuddy();
|
||||
ShowBuddy();
|
||||
/* create task1, alloc memory blocks */
|
||||
l_tid1 = KTaskCreate("task1_l", LTask1AllocEntry, NONE,
|
||||
TASK_STACK_SIZE,
|
||||
@@ -304,7 +304,7 @@ void GatherblockLimitcountTest(char *name, int count, int blocksize, int poolcou
|
||||
}
|
||||
KPrintf("gatherblock allocation,count[%d],size[%d]\n", count, blocksize);
|
||||
}
|
||||
ListBuddy();
|
||||
ShowBuddy();
|
||||
|
||||
index--;
|
||||
for(;index>=0;index--){
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <string.h>
|
||||
|
||||
extern void ShowMemory(void);
|
||||
extern void ListBuddy(void);
|
||||
extern void ShowBuddy(void);
|
||||
|
||||
/**************************test memory usage***********************************/
|
||||
|
||||
@@ -131,7 +131,7 @@ int FreeEnd(void)
|
||||
char *ptr[MEM_GRIN_COUNT];
|
||||
unsigned int arr_grin[MEM_GRIN_COUNT];
|
||||
|
||||
extern void ListBuddy();
|
||||
extern void ShowBuddy();
|
||||
int FendGrin()
|
||||
{
|
||||
KPrintf("\033[32;1m***********test limitations*************\033[0m\n");
|
||||
@@ -154,7 +154,7 @@ int FendGrin()
|
||||
}
|
||||
}
|
||||
KPrintf("------------- limitation until [%d] -----------\n",i);
|
||||
ListBuddy();
|
||||
ShowBuddy();
|
||||
|
||||
DelayKTask(2000);
|
||||
|
||||
@@ -211,7 +211,7 @@ void TestCacheLimitation(int timers,int init)
|
||||
temp %= 64;
|
||||
temp = ((temp==0) ? (temp + 1) : temp);
|
||||
}
|
||||
ListBuddy();
|
||||
ShowBuddy();
|
||||
|
||||
DelayKTask(1000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user