1 | /* stackchk.h |
---|
2 | * |
---|
3 | * This include file contains information necessary to utilize |
---|
4 | * and install the stack checker mechanism. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-2006. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef __RTEMS_STACK_CHECKER_h |
---|
17 | #define __RTEMS_STACK_CHECKER_h |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | /* |
---|
24 | * rtems_stack_checker_initialize |
---|
25 | */ |
---|
26 | |
---|
27 | void rtems_stack_checker_initialize( void ); |
---|
28 | |
---|
29 | /* |
---|
30 | * rtems_stack_checker_Dump_usage |
---|
31 | */ |
---|
32 | |
---|
33 | void rtems_stack_checker_report_usage( void ); |
---|
34 | |
---|
35 | /* |
---|
36 | * rtems_stack_checker_create_extension |
---|
37 | */ |
---|
38 | |
---|
39 | boolean rtems_stack_checker_create_extension( |
---|
40 | Thread_Control *running, |
---|
41 | Thread_Control *the_thread |
---|
42 | ); |
---|
43 | |
---|
44 | /* |
---|
45 | * rtems_stack_checker_begin_extension |
---|
46 | */ |
---|
47 | |
---|
48 | void rtems_stack_checker_begin_extension( |
---|
49 | Thread_Control *the_thread |
---|
50 | ); |
---|
51 | |
---|
52 | /* |
---|
53 | * rtems_stack_checker_switch_extension |
---|
54 | */ |
---|
55 | |
---|
56 | void rtems_stack_checker_switch_extension( |
---|
57 | Thread_Control *running, |
---|
58 | Thread_Control *heir |
---|
59 | ); |
---|
60 | |
---|
61 | /* |
---|
62 | * Extension set definition |
---|
63 | */ |
---|
64 | |
---|
65 | #define RTEMS_STACK_CHECKER_EXTENSION \ |
---|
66 | { \ |
---|
67 | rtems_stack_checker_create_extension, /* rtems_task_create */ \ |
---|
68 | 0, /* rtems_task_start */ \ |
---|
69 | 0, /* rtems_task_restart */ \ |
---|
70 | 0, /* rtems_task_delete */ \ |
---|
71 | rtems_stack_checker_switch_extension, /* task_switch */ \ |
---|
72 | rtems_stack_checker_begin_extension, /* task_begin */ \ |
---|
73 | 0, /* task_exitted */ \ |
---|
74 | 0 /* rtems_stack_checker_fatal_extension */, /* fatal */ \ |
---|
75 | } |
---|
76 | |
---|
77 | #ifdef __cplusplus |
---|
78 | } |
---|
79 | #endif |
---|
80 | |
---|
81 | #endif |
---|
82 | /* end of include file */ |
---|