forked from Imagelibrary/rtems
Added condition compile flag for dump of stack usage information on
system exit.
This commit is contained in:
@@ -103,6 +103,12 @@ Stack_check_Control Stack_check_Pattern;
|
|||||||
|
|
||||||
Stack_Control stack_check_interrupt_stack;
|
Stack_Control stack_check_interrupt_stack;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Prototypes necessary for forward references
|
||||||
|
*/
|
||||||
|
|
||||||
|
void Stack_check_Dump_usage( void );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fill an entire stack area with BYTE_PATTERN.
|
* Fill an entire stack area with BYTE_PATTERN.
|
||||||
* This will be used by a Fatal extension to check for
|
* This will be used by a Fatal extension to check for
|
||||||
@@ -162,6 +168,10 @@ void Stack_check_Initialize( void )
|
|||||||
|
|
||||||
Stack_check_Blown_task = 0;
|
Stack_check_Blown_task = 0;
|
||||||
|
|
||||||
|
#ifdef STACK_CHECKER_REPORT_USAGE
|
||||||
|
atexit( Stack_check_Dump_usage );
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If installed by a task, that task will not get setup properly
|
* If installed by a task, that task will not get setup properly
|
||||||
* since it missed out on the create hook. This will cause a
|
* since it missed out on the create hook. This will cause a
|
||||||
|
|||||||
@@ -103,6 +103,12 @@ Stack_check_Control Stack_check_Pattern;
|
|||||||
|
|
||||||
Stack_Control stack_check_interrupt_stack;
|
Stack_Control stack_check_interrupt_stack;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Prototypes necessary for forward references
|
||||||
|
*/
|
||||||
|
|
||||||
|
void Stack_check_Dump_usage( void );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fill an entire stack area with BYTE_PATTERN.
|
* Fill an entire stack area with BYTE_PATTERN.
|
||||||
* This will be used by a Fatal extension to check for
|
* This will be used by a Fatal extension to check for
|
||||||
@@ -162,6 +168,10 @@ void Stack_check_Initialize( void )
|
|||||||
|
|
||||||
Stack_check_Blown_task = 0;
|
Stack_check_Blown_task = 0;
|
||||||
|
|
||||||
|
#ifdef STACK_CHECKER_REPORT_USAGE
|
||||||
|
atexit( Stack_check_Dump_usage );
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If installed by a task, that task will not get setup properly
|
* If installed by a task, that task will not get setup properly
|
||||||
* since it missed out on the create hook. This will cause a
|
* since it missed out on the create hook. This will cause a
|
||||||
|
|||||||
@@ -103,6 +103,12 @@ Stack_check_Control Stack_check_Pattern;
|
|||||||
|
|
||||||
Stack_Control stack_check_interrupt_stack;
|
Stack_Control stack_check_interrupt_stack;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Prototypes necessary for forward references
|
||||||
|
*/
|
||||||
|
|
||||||
|
void Stack_check_Dump_usage( void );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fill an entire stack area with BYTE_PATTERN.
|
* Fill an entire stack area with BYTE_PATTERN.
|
||||||
* This will be used by a Fatal extension to check for
|
* This will be used by a Fatal extension to check for
|
||||||
@@ -162,6 +168,10 @@ void Stack_check_Initialize( void )
|
|||||||
|
|
||||||
Stack_check_Blown_task = 0;
|
Stack_check_Blown_task = 0;
|
||||||
|
|
||||||
|
#ifdef STACK_CHECKER_REPORT_USAGE
|
||||||
|
atexit( Stack_check_Dump_usage );
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If installed by a task, that task will not get setup properly
|
* If installed by a task, that task will not get setup properly
|
||||||
* since it missed out on the create hook. This will cause a
|
* since it missed out on the create hook. This will cause a
|
||||||
|
|||||||
Reference in New Issue
Block a user