RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
36extern "C" {
37#endif
38
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
98void 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
139#endif
140/* end of include file */
bool rtems_stack_checker_create_extension(Thread_Control *running, Thread_Control *the_thread)
Stack Checker Task Create Extension.
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
bool rtems_stack_checker_is_blown(void)
Checks if current task is blown its stack.
Definition: check.c:348
void rtems_stack_checker_report_usage(void)
Print the stack usage report using printk.
Definition: check.c:512
void rtems_stack_checker_switch_extension(Thread_Control *running, Thread_Control *heir)
Stack Checker Task Context Switch Extension.
Definition: check.c:298
User print interface to the bspIO print plug in.
Constants and Structures Related with the Thread Control Block.
Definition: thread.h:732
Definition: printer.h:55