source: rtems/c/src/ada-tests/tmtests/tm09/tmtest.ads @ 688ecaa0

4.104.114.84.95
Last change on this file since 688ecaa0 was e17ffea, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 22:06:49

Changed to variable length messages.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1--
2--  TMTEST / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package is the specification for Test 9 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
24with TIMER_DRIVER;
25with RTEMS;
26
27package TMTEST is
28
29--
30--  Buffer Record similar to that used by RTEMS 3.2.1.  Using this
31--  avoids changes to the test.
32--
33
34   type BUFFER is
35      record
36         FIELD1 : RTEMS.UNSIGNED32;   -- TEMPORARY UNTIL VARIABLE LENGTH
37         FIELD2 : RTEMS.UNSIGNED32;
38         FIELD3 : RTEMS.UNSIGNED32;
39         FIELD4 : RTEMS.UNSIGNED32;
40      end record;
41
42--
43--  The following is the ID of the message queue used for timing operations.
44--
45
46   QUEUE_ID  : RTEMS.ID;
47
48--
49--  The following variable is set to the execution time returned
50--  by the timer.
51--
52
53   END_TIME  : RTEMS.UNSIGNED32;
54
55--
56--  INIT
57--
58--  DESCRIPTION:
59--
60--  This RTEMS task initializes the application.
61--
62
63   procedure INIT (
64      ARGUMENT : in     RTEMS.TASK_ARGUMENT
65   );
66
67--
68--  TEST_TASK
69--
70--  DESCRIPTION:
71--
72--  This RTEMS task is responsible for measuring and reporting the
73--  following directive execution times:
74--
75--    + MESSAGE_QUEUE_CREATE
76--    + MESSAGE_QUEUE_DELETE
77--
78
79   procedure TEST_TASK (
80      ARGUMENT : in     RTEMS.TASK_ARGUMENT
81   );
82
83--
84--  QUEUE_TEST
85--
86--  DESCRIPTION:
87--
88--  This subprogram is responsible for measuring and reporting the
89--  following directive execution times:
90--
91--    + MESSAGE_QUEUE_SEND with no tasks waiting
92--    + MESSAGE_QUEUE_URGENT with no tasks waiting
93--    + MESSAGE_QUEUE_RECEIVE with messages available
94--    + MESSAGE_QUEUE_FLUSH with an empty message queue
95--    + MESSAGE_QUEUE_FLUSH with messages flushed
96--
97
98   procedure QUEUE_TEST;
99
100end TMTEST;
Note: See TracBrowser for help on using the repository browser.