1 | /* coverhd.h |
---|
2 | * |
---|
3 | * This include file has defines to represent the overhead associated |
---|
4 | * with calling a particular directive from C. These are used in the |
---|
5 | * Timing Test Suite to ignore the overhead required to pass arguments |
---|
6 | * to directives. On some CPUs and/or target boards, this overhead |
---|
7 | * is significant and makes it difficult to distinguish internal |
---|
8 | * RTEMS execution time from that used to call the directive. |
---|
9 | * This file should be updated after running the C overhead timing |
---|
10 | * test. Once this update has been performed, the RTEMS Time Test |
---|
11 | * Suite should be rebuilt to account for these overhead times in the |
---|
12 | * timing results. |
---|
13 | * |
---|
14 | * NOTE: If these are all zero, then the times reported include all |
---|
15 | * all calling overhead including passing of arguments. |
---|
16 | * |
---|
17 | * |
---|
18 | * These are the figures tmoverhd.exe reported with egcs-980205 -O3 |
---|
19 | * on a Diesner OktagonSH/Amos-2.1 board with SH7032/20MHz |
---|
20 | * |
---|
21 | * These results are assumed to be applicable to most SH7032/20MHz boards |
---|
22 | * |
---|
23 | * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
24 | * |
---|
25 | * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany |
---|
26 | * |
---|
27 | * This program is distributed in the hope that it will be useful, |
---|
28 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
29 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
30 | * |
---|
31 | * |
---|
32 | * COPYRIGHT (c) 1998. |
---|
33 | * On-Line Applications Research Corporation (OAR). |
---|
34 | * |
---|
35 | * The license and distribution terms for this file may be |
---|
36 | * found in the file LICENSE in this distribution or at |
---|
37 | * http://www.rtems.com/license/LICENSE. |
---|
38 | */ |
---|
39 | |
---|
40 | #ifndef __COVERHD_h |
---|
41 | #define __COVERHD_h |
---|
42 | |
---|
43 | #ifdef __cplusplus |
---|
44 | extern "C" { |
---|
45 | #endif |
---|
46 | |
---|
47 | #define CALLING_OVERHEAD_INITIALIZE_EXECUTIVE 4 |
---|
48 | #define CALLING_OVERHEAD_SHUTDOWN_EXECUTIVE 4 |
---|
49 | #define CALLING_OVERHEAD_TASK_CREATE 9 |
---|
50 | #define CALLING_OVERHEAD_TASK_IDENT 6 |
---|
51 | #define CALLING_OVERHEAD_TASK_START 5 |
---|
52 | #define CALLING_OVERHEAD_TASK_RESTART 5 |
---|
53 | #define CALLING_OVERHEAD_TASK_DELETE 4 |
---|
54 | #define CALLING_OVERHEAD_TASK_SUSPEND 4 |
---|
55 | #define CALLING_OVERHEAD_TASK_RESUME 4 |
---|
56 | #define CALLING_OVERHEAD_TASK_SET_PRIORITY 5 |
---|
57 | #define CALLING_OVERHEAD_TASK_MODE 5 |
---|
58 | #define CALLING_OVERHEAD_TASK_GET_NOTE 5 |
---|
59 | #define CALLING_OVERHEAD_TASK_SET_NOTE 5 |
---|
60 | #define CALLING_OVERHEAD_TASK_WAKE_WHEN 14 |
---|
61 | #define CALLING_OVERHEAD_TASK_WAKE_AFTER 4 |
---|
62 | #define CALLING_OVERHEAD_INTERRUPT_CATCH 5 |
---|
63 | #define CALLING_OVERHEAD_CLOCK_GET 16 |
---|
64 | #define CALLING_OVERHEAD_CLOCK_SET 14 |
---|
65 | #define CALLING_OVERHEAD_CLOCK_TICK 3 |
---|
66 | |
---|
67 | #define CALLING_OVERHEAD_TIMER_CREATE 4 |
---|
68 | #define CALLING_OVERHEAD_TIMER_IDENT 4 |
---|
69 | #define CALLING_OVERHEAD_TIMER_DELETE 4 |
---|
70 | #define CALLING_OVERHEAD_TIMER_FIRE_AFTER 6 |
---|
71 | #define CALLING_OVERHEAD_TIMER_FIRE_WHEN 20 |
---|
72 | #define CALLING_OVERHEAD_TIMER_RESET 4 |
---|
73 | #define CALLING_OVERHEAD_TIMER_CANCEL 4 |
---|
74 | #define CALLING_OVERHEAD_SEMAPHORE_CREATE 7 |
---|
75 | #define CALLING_OVERHEAD_SEMAPHORE_IDENT 5 |
---|
76 | #define CALLING_OVERHEAD_SEMAPHORE_DELETE 4 |
---|
77 | #define CALLING_OVERHEAD_SEMAPHORE_OBTAIN 5 |
---|
78 | #define CALLING_OVERHEAD_SEMAPHORE_RELEASE 4 |
---|
79 | #define CALLING_OVERHEAD_MESSAGE_QUEUE_CREATE 5 |
---|
80 | #define CALLING_OVERHEAD_MESSAGE_QUEUE_IDENT 5 |
---|
81 | #define CALLING_OVERHEAD_MESSAGE_QUEUE_DELETE 4 |
---|
82 | #define CALLING_OVERHEAD_MESSAGE_QUEUE_SEND 5 |
---|
83 | #define CALLING_OVERHEAD_MESSAGE_QUEUE_URGENT 5 |
---|
84 | #define CALLING_OVERHEAD_MESSAGE_QUEUE_BROADCAST 5 |
---|
85 | #define CALLING_OVERHEAD_MESSAGE_QUEUE_RECEIVE 6 |
---|
86 | #define CALLING_OVERHEAD_MESSAGE_QUEUE_FLUSH 5 |
---|
87 | |
---|
88 | #define CALLING_OVERHEAD_EVENT_SEND 6 |
---|
89 | #define CALLING_OVERHEAD_EVENT_RECEIVE 5 |
---|
90 | #define CALLING_OVERHEAD_SIGNAL_CATCH 4 |
---|
91 | #define CALLING_OVERHEAD_SIGNAL_SEND 4 |
---|
92 | #define CALLING_OVERHEAD_PARTITION_CREATE 9 |
---|
93 | #define CALLING_OVERHEAD_PARTITION_IDENT 5 |
---|
94 | #define CALLING_OVERHEAD_PARTITION_DELETE 4 |
---|
95 | #define CALLING_OVERHEAD_PARTITION_GET_BUFFER 6 |
---|
96 | #define CALLING_OVERHEAD_PARTITION_RETURN_BUFFER 6 |
---|
97 | #define CALLING_OVERHEAD_REGION_CREATE 9 |
---|
98 | #define CALLING_OVERHEAD_REGION_IDENT 5 |
---|
99 | #define CALLING_OVERHEAD_REGION_DELETE 4 |
---|
100 | #define CALLING_OVERHEAD_REGION_GET_SEGMENT 9 |
---|
101 | #define CALLING_OVERHEAD_REGION_RETURN_SEGMENT 5 |
---|
102 | #define CALLING_OVERHEAD_PORT_CREATE 9 |
---|
103 | #define CALLING_OVERHEAD_PORT_IDENT 4 |
---|
104 | #define CALLING_OVERHEAD_PORT_DELETE 4 |
---|
105 | #define CALLING_OVERHEAD_PORT_EXTERNAL_TO_INTERNAL 7 |
---|
106 | #define CALLING_OVERHEAD_PORT_INTERNAL_TO_EXTERNAL 8 |
---|
107 | |
---|
108 | #define CALLING_OVERHEAD_IO_INITIALIZE 5 |
---|
109 | #define CALLING_OVERHEAD_IO_OPEN 5 |
---|
110 | #define CALLING_OVERHEAD_IO_CLOSE 5 |
---|
111 | #define CALLING_OVERHEAD_IO_READ 5 |
---|
112 | #define CALLING_OVERHEAD_IO_WRITE 5 |
---|
113 | #define CALLING_OVERHEAD_IO_CONTROL 5 |
---|
114 | #define CALLING_OVERHEAD_FATAL_ERROR_OCCURRED 4 |
---|
115 | #define CALLING_OVERHEAD_RATE_MONOTONIC_CREATE 4 |
---|
116 | #define CALLING_OVERHEAD_RATE_MONOTONIC_IDENT 4 |
---|
117 | #define CALLING_OVERHEAD_RATE_MONOTONIC_DELETE 4 |
---|
118 | #define CALLING_OVERHEAD_RATE_MONOTONIC_CANCEL 4 |
---|
119 | #define CALLING_OVERHEAD_RATE_MONOTONIC_PERIOD 4 |
---|
120 | #define CALLING_OVERHEAD_MULTIPROCESSING_ANNOUNCE 3 |
---|
121 | |
---|
122 | #ifdef __cplusplus |
---|
123 | } |
---|
124 | #endif |
---|
125 | |
---|
126 | #endif |
---|