1 | -- |
---|
2 | -- TMTEST / SPECIFICATION |
---|
3 | -- |
---|
4 | -- DESCRIPTION: |
---|
5 | -- |
---|
6 | -- This package is the specification for Test 20 of the RTEMS |
---|
7 | -- Timing Test Suite. |
---|
8 | -- |
---|
9 | -- DEPENDENCIES: |
---|
10 | -- |
---|
11 | -- |
---|
12 | -- |
---|
13 | -- COPYRIGHT (c) 1989-1997. |
---|
14 | -- On-Line Applications Research Corporation (OAR). |
---|
15 | -- Copyright assigned to U.S. Government, 1994. |
---|
16 | -- |
---|
17 | -- The license and distribution terms for this file may in |
---|
18 | -- the file LICENSE in this distribution or at |
---|
19 | -- http://www.OARcorp.com/rtems/license.html. |
---|
20 | -- |
---|
21 | -- $Id$ |
---|
22 | -- |
---|
23 | |
---|
24 | with TIME_TEST_SUPPORT; |
---|
25 | with TIMER_DRIVER; |
---|
26 | with RTEMS; |
---|
27 | |
---|
28 | package TMTEST is |
---|
29 | |
---|
30 | -- |
---|
31 | -- These arrays contain the IDs and NAMEs of all RTEMS tasks created |
---|
32 | -- by this test. |
---|
33 | -- |
---|
34 | |
---|
35 | TASK_ID : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.ID; |
---|
36 | TASK_NAME : array ( RTEMS.UNSIGNED32 range 1 .. 3 ) of RTEMS.NAME; |
---|
37 | |
---|
38 | -- |
---|
39 | -- These following are the ID and NAME of the RTEMS partition created |
---|
40 | -- by this test. |
---|
41 | -- |
---|
42 | |
---|
43 | PARTITION_ID : RTEMS.ID; |
---|
44 | PARTITION_NAME : RTEMS.NAME; |
---|
45 | |
---|
46 | -- |
---|
47 | -- These following are the ID and NAME of the RTEMS region created |
---|
48 | -- by this test. |
---|
49 | -- |
---|
50 | |
---|
51 | REGION_ID : RTEMS.ID; |
---|
52 | REGION_NAME : RTEMS.NAME; |
---|
53 | |
---|
54 | -- |
---|
55 | -- The following area defines a memory area to be used as the |
---|
56 | -- memory space for a partition. |
---|
57 | -- |
---|
58 | |
---|
59 | PARTITION_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 2047 ) |
---|
60 | of RTEMS.UNSIGNED8; |
---|
61 | for PARTITION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
62 | |
---|
63 | -- |
---|
64 | -- The following area defines a memory area to be used as the |
---|
65 | -- memory space for a region. |
---|
66 | -- |
---|
67 | |
---|
68 | REGION_AREA : array ( RTEMS.UNSIGNED32 range 0 .. 2047 ) |
---|
69 | of RTEMS.UNSIGNED8; |
---|
70 | |
---|
71 | for REGION_AREA'ALIGNMENT use RTEMS.STRUCTURE_ALIGNMENT; |
---|
72 | |
---|
73 | -- |
---|
74 | -- The following are the buffers allocated from the region. |
---|
75 | -- |
---|
76 | |
---|
77 | BUFFER_ADDRESS_1 : RTEMS.ADDRESS; |
---|
78 | BUFFER_ADDRESS_2 : RTEMS.ADDRESS; |
---|
79 | BUFFER_ADDRESS_3 : RTEMS.ADDRESS; |
---|
80 | BUFFER_ADDRESS_4 : RTEMS.ADDRESS; |
---|
81 | |
---|
82 | BUFFER_ADDRESSES : array ( RTEMS.UNSIGNED32 |
---|
83 | range 0 .. TIME_TEST_SUPPORT.OPERATION_COUNT ) of RTEMS.ADDRESS; |
---|
84 | |
---|
85 | -- |
---|
86 | -- The following variable is set to the execution time returned |
---|
87 | -- by the timer. |
---|
88 | -- |
---|
89 | |
---|
90 | END_TIME : RTEMS.UNSIGNED32; |
---|
91 | |
---|
92 | -- |
---|
93 | -- INIT |
---|
94 | -- |
---|
95 | -- DESCRIPTION: |
---|
96 | -- |
---|
97 | -- This RTEMS task initializes the application. |
---|
98 | -- |
---|
99 | |
---|
100 | procedure INIT ( |
---|
101 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
102 | ); |
---|
103 | |
---|
104 | -- |
---|
105 | -- TASK_1 |
---|
106 | -- |
---|
107 | -- DESCRIPTION: |
---|
108 | -- |
---|
109 | -- This RTEMS task is responsible for measuring and reporting |
---|
110 | -- the following execution times: |
---|
111 | -- |
---|
112 | -- + PARTITION_CREATE |
---|
113 | -- + REGION_CREATE |
---|
114 | -- + PARTITION_GET_BUFFER with a buffer available |
---|
115 | -- + PARTITION_GET_BUFFER with no buffers available |
---|
116 | -- + PARTITION_RETURN_BUFFER |
---|
117 | -- + PARTITION_DELETE |
---|
118 | -- + REGION_GET_SEGMENT with a segment available |
---|
119 | -- + REGION_GET_SEGMENT with the NO_WAIT option |
---|
120 | -- + REGION_RETURN_SEGMENT with no tasks waiting for memory |
---|
121 | -- + REGION_RETURN_SEGMENT preemptive |
---|
122 | -- + REGION_DELETE |
---|
123 | -- + IO_INITIALIZE |
---|
124 | -- + IO_OPEN |
---|
125 | -- + IO_CLOSE |
---|
126 | -- + IO_READ |
---|
127 | -- + IO_WRITE |
---|
128 | -- + IO_CONTROL |
---|
129 | -- |
---|
130 | |
---|
131 | procedure TASK_1 ( |
---|
132 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
133 | ); |
---|
134 | |
---|
135 | -- |
---|
136 | -- TASK_2 |
---|
137 | -- |
---|
138 | -- DESCRIPTION: |
---|
139 | -- |
---|
140 | -- This RTEMS task is responsible for measuring and reporting |
---|
141 | -- the following execution times: |
---|
142 | -- |
---|
143 | -- + blocking REGION_GET_SEGMENT |
---|
144 | -- + REGION_RETURN_SEGMENT which readies a task |
---|
145 | -- |
---|
146 | |
---|
147 | procedure TASK_2 ( |
---|
148 | ARGUMENT : in RTEMS.TASK_ARGUMENT |
---|
149 | ); |
---|
150 | |
---|
151 | end TMTEST; |
---|