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:
W. Eric Norum
2000-10-19 19:53:48 +00:00
parent 24e482b8a2
commit bf2d280464

View File

@@ -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);
}
/*