Add stackCheck command to show per-task stack usage. Stack statistics
are gathered only when STACK_CHECKER_ON is defined as 1 in rtems_config.c. This should be done only when necessary since it slows down context switches.
This commit is contained in:
@@ -210,10 +210,16 @@ static void semStatCallFunc(ioccrfArg **args)
|
||||
{
|
||||
rtems_semstat(*(int *)args[0]->value);
|
||||
}
|
||||
static ioccrfFuncDef stackCheckFuncDef = {"stackCheck",0,NULL};
|
||||
static void stackCheckCallFunc(ioccrfArg **args)
|
||||
{
|
||||
Stack_check_Dump_usage ();
|
||||
}
|
||||
static void ioccrfRegisterRTEMS (void)
|
||||
{
|
||||
ioccrfRegister(&netStatFuncDef, netStatCallFunc);
|
||||
ioccrfRegister(&semStatFuncDef, semStatCallFunc);
|
||||
ioccrfRegister(&stackCheckFuncDef, stackCheckCallFunc);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user