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