RTEMS  5.1
stackchk.h
Go to the documentation of this file.
1 
12 /*
13  * COPYRIGHT (c) 1989-2009.
14  * On-Line Applications Research Corporation (OAR).
15  *
16  * The license and distribution terms for this file may be
17  * found in the file LICENSE in this distribution or at
18  * http://www.rtems.org/license/LICENSE.
19  */
20 
21 #ifndef _RTEMS_STACKCHK_H
22 #define _RTEMS_STACKCHK_H
23 
24 #include <stdbool.h> /* bool */
25 
26 #include <rtems/score/thread.h> /* Thread_Control */
27 #include <rtems/print.h>
28 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
49 bool rtems_stack_checker_is_blown( void );
50 
60 
73  const rtems_printer *printer
74 );
75 
76 /*************************************************************
77  *************************************************************
78  ** Prototyped only so the user extension can be installed **
79  *************************************************************
80  *************************************************************/
81 
94  Thread_Control *running,
95  Thread_Control *the_thread
96 );
97 
98 void rtems_stack_checker_begin_extension( Thread_Control *executing );
99 
112  Thread_Control *running,
113  Thread_Control *heir
114 );
115 
122 #define RTEMS_STACK_CHECKER_EXTENSION \
123 { \
124  rtems_stack_checker_create_extension, /* rtems_task_create */ \
125  0, /* rtems_task_start */ \
126  0, /* rtems_task_restart */ \
127  0, /* rtems_task_delete */ \
128  rtems_stack_checker_switch_extension, /* task_switch */ \
129  rtems_stack_checker_begin_extension, /* task_begin */ \
130  0, /* task_exitted */ \
131  0, /* fatal */ \
132  0 /* terminate */ \
133 }
134 
135 #ifdef __cplusplus
136 }
137 #endif
138 
139 #endif
140 /* end of include file */
void rtems_stack_checker_switch_extension(Thread_Control *running, Thread_Control *heir)
Stack Checker Task Context Switch Extension.
Definition: check.c:298
bool rtems_stack_checker_create_extension(Thread_Control *running, Thread_Control *the_thread)
Stack Checker Task Create Extension.
Definition: printer.h:55
void rtems_stack_checker_report_usage_with_plugin(const rtems_printer *printer)
Print the stack usage report using caller's routine.
Definition: check.c:482
void rtems_stack_checker_report_usage(void)
Print the stack usage report using printk.
Definition: check.c:512
Definition: thread.h:732
bool rtems_stack_checker_is_blown(void)
Checks if current task is blown its stack.
Definition: check.c:348
Constants and Structures Related with the Thread Control Block.