Mercurial > flash_v2
annotate packages/kernel/current/include/instrmnt.h @ 64:c38311975d4f ecos-sw-2000-01-28
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
| author | jlarmour |
|---|---|
| date | Fri, 28 Jan 2000 04:59:39 +0000 |
| parents | d376b777e2ce |
| children | bf00f99aec69 |
| rev | line source |
|---|---|
| 0 | 1 #ifndef CYGONCE_KERNEL_INSTRMNT_HXX |
| 2 #define CYGONCE_KERNEL_INSTRMNT_HXX | |
| 3 | |
| 4 //========================================================================== | |
| 5 // | |
| 2 | 6 // instrmnt.hxx |
| 0 | 7 // |
| 2 | 8 // Kernel Instrumentation mechanism |
| 0 | 9 // |
| 10 //========================================================================== | |
| 11 //####COPYRIGHTBEGIN#### | |
|
64
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
12 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
13 // ------------------------------------------- |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
14 // The contents of this file are subject to the Red Hat eCos Public License |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
15 // Version 1.0 (the "License"); you may not use this file except in |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
16 // compliance with the License. You may obtain a copy of the License at |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
17 // http://sourceware.cygnus.com/ecos |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
18 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
19 // Software distributed under the License is distributed on an |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
20 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
21 // License for the specific language governing rights and limitations under |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
22 // the License. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
23 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
24 // The Original Code is eCos - Embedded Configurable Operating System, |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
25 // released September 30, 1998. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
26 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
27 // The Initial Developer of the Original Code is Red Hat. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
28 // Portions created by Red Hat are |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
29 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
30 // All Rights Reserved. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
31 // ------------------------------------------- |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
6
diff
changeset
|
32 // |
| 0 | 33 //####COPYRIGHTEND#### |
| 34 //========================================================================== | |
| 35 //#####DESCRIPTIONBEGIN#### | |
| 36 // | |
| 2 | 37 // Author(s): nickg |
| 38 // Contributors: nickg | |
| 39 // Date: 1997-10-24 | |
| 40 // Purpose: Define kernel instrumentation | |
| 41 // Description: A set of definitions and macros used to implement an | |
| 0 | 42 // instrumentation interface for the kernel. |
| 2 | 43 // Usage: #include <cyg/kernel/instrmnt.hxx> |
| 0 | 44 // |
| 45 //####DESCRIPTIONEND#### | |
| 46 // | |
| 47 //========================================================================== | |
| 48 | |
| 49 #include <cyg/kernel/ktypes.h> | |
| 50 #include <cyg/infra/cyg_ass.h> // assertion macros | |
| 51 | |
| 52 // ------------------------------------------------------------------------- | |
| 53 // Underlying instrumentation function | |
| 54 | |
| 55 externC void cyg_instrument( cyg_uint32 type, CYG_ADDRWORD arg1, CYG_ADDRWORD arg2 ); | |
| 56 | |
| 57 // ------------------------------------------------------------------------- | |
| 58 // The following functions are used to enable and disable specific | |
| 59 // instrumentation classes and events. The class must be one of the | |
| 60 // class defines below. The event may be one of the event defines below | |
| 61 // or zero, in which case all of the events in the class are enabled or | |
| 62 // disabled. | |
| 63 | |
| 64 #ifdef CYGDBG_KERNEL_INSTRUMENT_FLAGS | |
| 65 | |
| 66 externC void cyg_instrument_enable( cyg_uint32 cl, cyg_uint32 event ); | |
| 67 | |
| 68 externC void cyg_instrument_disable( cyg_uint32 cl, cyg_uint32 event ); | |
| 69 | |
| 70 #endif | |
| 71 | |
| 72 // ------------------------------------------------------------------------- | |
| 73 // Instrumentation macros | |
| 74 | |
| 75 #ifdef CYGPKG_KERNEL_INSTRUMENT | |
| 76 | |
| 2 | 77 #define CYG_INSTRUMENT(_type_,_arg1_,_arg2_) cyg_instrument(_type_, (CYG_ADDRWORD)(_arg1_), (CYG_ADDRWORD)(_arg2_)) |
| 0 | 78 |
| 79 #else // ifdef CYGPKG_KERNEL_INSTRUMENT | |
| 80 | |
| 2 | 81 #define CYG_INSTRUMENT(_type_,_arg1_,_arg2_) \ |
| 82 CYG_MACRO_START \ | |
| 83 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 84 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 85 CYG_MACRO_END | |
| 0 | 86 |
| 87 #endif // ifdef CYGPKG_KERNEL_INSTRUMENT | |
| 88 | |
| 89 // ------------------------------------------------------------------------- | |
| 90 // Type codes. | |
| 91 // Each code is 16 bit with an event class in the top 8 bits | |
| 92 // and an event code in the lower 8 bits. | |
| 93 | |
| 94 // Event classes | |
| 95 #define CYG_INSTRUMENT_CLASS_SCHED 0x0100 | |
| 96 #define CYG_INSTRUMENT_CLASS_THREAD 0x0200 | |
| 97 #define CYG_INSTRUMENT_CLASS_INTR 0x0300 | |
| 98 #define CYG_INSTRUMENT_CLASS_MUTEX 0x0400 | |
| 99 #define CYG_INSTRUMENT_CLASS_CONDVAR 0x0500 | |
| 100 #define CYG_INSTRUMENT_CLASS_BINSEM 0x0600 | |
| 101 #define CYG_INSTRUMENT_CLASS_CNTSEM 0x0700 | |
| 102 #define CYG_INSTRUMENT_CLASS_CLOCK 0x0800 | |
| 103 #define CYG_INSTRUMENT_CLASS_ALARM 0x0900 | |
| 104 #define CYG_INSTRUMENT_CLASS_MBOXT 0x0a00 | |
| 105 | |
| 106 #define CYG_INSTRUMENT_CLASS_USER 0x0f00 | |
| 107 | |
| 108 #define CYG_INSTRUMENT_CLASS_MAX CYG_INSTRUMENT_CLASS_USER | |
| 109 | |
| 110 // Scheduler events | |
| 111 #define CYG_INSTRUMENT_EVENT_SCHED_LOCK 1 | |
| 112 #define CYG_INSTRUMENT_EVENT_SCHED_UNLOCK 2 | |
| 113 #define CYG_INSTRUMENT_EVENT_SCHED_RESCHEDULE 3 | |
| 114 #define CYG_INSTRUMENT_EVENT_SCHED_TIMESLICE 4 | |
| 115 | |
| 116 // Thread events | |
| 117 #define CYG_INSTRUMENT_EVENT_THREAD_SWITCH 1 | |
| 118 #define CYG_INSTRUMENT_EVENT_THREAD_SLEEP 2 | |
| 119 #define CYG_INSTRUMENT_EVENT_THREAD_WAKE 3 | |
| 120 #define CYG_INSTRUMENT_EVENT_THREAD_SUSPEND 4 | |
| 121 #define CYG_INSTRUMENT_EVENT_THREAD_RESUME 5 | |
| 122 #define CYG_INSTRUMENT_EVENT_THREAD_PRIORITY 6 | |
| 123 #define CYG_INSTRUMENT_EVENT_THREAD_DELAY 7 | |
| 124 #define CYG_INSTRUMENT_EVENT_THREAD_ALARM 8 | |
|
6
d376b777e2ce
Merge from eCos master repository on 1999-05-14-19:27:43-BST
jlarmour
parents:
2
diff
changeset
|
125 #define CYG_INSTRUMENT_EVENT_THREAD_ENTER 9 |
| 0 | 126 |
| 127 // Interrupt events | |
| 128 #define CYG_INSTRUMENT_EVENT_INTR_RAISE 1 | |
| 129 #define CYG_INSTRUMENT_EVENT_INTR_END 2 | |
| 130 #define CYG_INSTRUMENT_EVENT_INTR_RESTORE 3 | |
| 131 #define CYG_INSTRUMENT_EVENT_INTR_POST_DSR 4 | |
| 132 #define CYG_INSTRUMENT_EVENT_INTR_CALL_DSR 5 | |
| 133 #define CYG_INSTRUMENT_EVENT_INTR_ATTACH 6 | |
| 134 #define CYG_INSTRUMENT_EVENT_INTR_DETACH 7 | |
| 135 #define CYG_INSTRUMENT_EVENT_INTR_SET_VSR 8 | |
| 136 #define CYG_INSTRUMENT_EVENT_INTR_DISABLE 9 | |
| 137 #define CYG_INSTRUMENT_EVENT_INTR_ENABLE 10 | |
| 138 #define CYG_INSTRUMENT_EVENT_INTR_MASK 11 | |
| 139 #define CYG_INSTRUMENT_EVENT_INTR_UNMASK 12 | |
| 140 #define CYG_INSTRUMENT_EVENT_INTR_CONFIGURE 13 | |
| 141 #define CYG_INSTRUMENT_EVENT_INTR_ACK 14 | |
| 142 #define CYG_INSTRUMENT_EVENT_INTR_CHAIN_ISR 15 | |
| 143 | |
| 144 // Mutex events | |
| 145 #define CYG_INSTRUMENT_EVENT_MUTEX_LOCK 1 | |
| 146 #define CYG_INSTRUMENT_EVENT_MUTEX_WAIT 2 | |
| 147 #define CYG_INSTRUMENT_EVENT_MUTEX_LOCKED 3 | |
| 148 #define CYG_INSTRUMENT_EVENT_MUTEX_TRY 4 | |
| 149 #define CYG_INSTRUMENT_EVENT_MUTEX_UNLOCK 5 | |
| 150 #define CYG_INSTRUMENT_EVENT_MUTEX_WAKE 6 | |
| 2 | 151 #define CYG_INSTRUMENT_EVENT_MUTEX_RELEASE 7 |
| 152 #define CYG_INSTRUMENT_EVENT_MUTEX_RELEASED 8 | |
| 0 | 153 |
| 154 // Condition variable events | |
| 155 #define CYG_INSTRUMENT_EVENT_CONDVAR_WAIT 1 | |
| 156 #define CYG_INSTRUMENT_EVENT_CONDVAR_WOKE 2 | |
| 157 #define CYG_INSTRUMENT_EVENT_CONDVAR_SIGNAL 3 | |
| 158 #define CYG_INSTRUMENT_EVENT_CONDVAR_WAKE 4 | |
| 159 #define CYG_INSTRUMENT_EVENT_CONDVAR_BROADCAST 5 | |
| 160 #define CYG_INSTRUMENT_EVENT_CONDVAR_TIMED_WAIT 6 | |
| 161 | |
| 162 // Binary semaphore events | |
| 163 #define CYG_INSTRUMENT_EVENT_BINSEM_CLAIM 1 | |
| 164 #define CYG_INSTRUMENT_EVENT_BINSEM_WAIT 2 | |
| 165 #define CYG_INSTRUMENT_EVENT_BINSEM_WOKE 3 | |
| 166 #define CYG_INSTRUMENT_EVENT_BINSEM_TRY 4 | |
| 167 #define CYG_INSTRUMENT_EVENT_BINSEM_POST 5 | |
| 168 #define CYG_INSTRUMENT_EVENT_BINSEM_WAKE 6 | |
| 169 | |
| 170 // Counting semaphore events | |
| 171 #define CYG_INSTRUMENT_EVENT_CNTSEM_CLAIM 1 | |
| 172 #define CYG_INSTRUMENT_EVENT_CNTSEM_WAIT 2 | |
| 173 #define CYG_INSTRUMENT_EVENT_CNTSEM_WOKE 3 | |
| 174 #define CYG_INSTRUMENT_EVENT_CNTSEM_TRY 4 | |
| 175 #define CYG_INSTRUMENT_EVENT_CNTSEM_POST 5 | |
| 176 #define CYG_INSTRUMENT_EVENT_CNTSEM_WAKE 6 | |
| 177 #define CYG_INSTRUMENT_EVENT_CNTSEM_TIMEOUT 7 | |
| 178 | |
| 179 // Clock events | |
| 180 #define CYG_INSTRUMENT_EVENT_CLOCK_TICK_START 1 | |
| 181 #define CYG_INSTRUMENT_EVENT_CLOCK_TICK_END 2 | |
| 182 #define CYG_INSTRUMENT_EVENT_CLOCK_ISR 3 | |
| 183 | |
| 184 // Alarm events | |
| 185 #define CYG_INSTRUMENT_EVENT_ALARM_ADD 1 | |
| 186 #define CYG_INSTRUMENT_EVENT_ALARM_REM 2 | |
| 187 #define CYG_INSTRUMENT_EVENT_ALARM_CALL 3 | |
| 188 #define CYG_INSTRUMENT_EVENT_ALARM_INIT 4 | |
| 189 #define CYG_INSTRUMENT_EVENT_ALARM_TRIGGER 5 | |
| 190 #define CYG_INSTRUMENT_EVENT_ALARM_INTERVAL 6 | |
| 191 | |
| 192 // Mboxt events | |
| 2 | 193 #define CYG_INSTRUMENT_EVENT_MBOXT_WAIT 1 |
| 194 #define CYG_INSTRUMENT_EVENT_MBOXT_GET 2 | |
| 195 #define CYG_INSTRUMENT_EVENT_MBOXT_GOT 3 | |
| 196 #define CYG_INSTRUMENT_EVENT_MBOXT_TIMEOUT 4 | |
| 197 #define CYG_INSTRUMENT_EVENT_MBOXT_WAKE 5 | |
| 198 #define CYG_INSTRUMENT_EVENT_MBOXT_TRY 6 | |
| 199 #define CYG_INSTRUMENT_EVENT_MBOXT_PUT 7 | |
| 0 | 200 |
| 201 | |
| 202 | |
| 203 // User events | |
| 204 | |
| 205 #define CYG_INSTRUMENT_EVENT_USER_1 1 | |
| 206 #define CYG_INSTRUMENT_EVENT_USER_2 2 | |
| 207 #define CYG_INSTRUMENT_EVENT_USER_3 3 | |
| 208 #define CYG_INSTRUMENT_EVENT_USER_4 4 | |
| 209 #define CYG_INSTRUMENT_EVENT_USER_5 5 | |
| 210 #define CYG_INSTRUMENT_EVENT_USER_6 6 | |
| 211 #define CYG_INSTRUMENT_EVENT_USER_7 7 | |
| 212 #define CYG_INSTRUMENT_EVENT_USER_8 8 | |
| 213 #define CYG_INSTRUMENT_EVENT_USER_9 9 | |
| 214 #define CYG_INSTRUMENT_EVENT_USER_10 10 | |
| 215 #define CYG_INSTRUMENT_EVENT_USER_11 11 | |
| 216 #define CYG_INSTRUMENT_EVENT_USER_12 12 | |
| 217 #define CYG_INSTRUMENT_EVENT_USER_13 13 | |
| 218 #define CYG_INSTRUMENT_EVENT_USER_14 14 | |
| 219 #define CYG_INSTRUMENT_EVENT_USER_15 15 | |
| 220 #define CYG_INSTRUMENT_EVENT_USER_16 16 | |
| 221 #define CYG_INSTRUMENT_EVENT_USER_17 17 | |
| 222 #define CYG_INSTRUMENT_EVENT_USER_18 18 | |
| 223 #define CYG_INSTRUMENT_EVENT_USER_19 19 | |
| 224 | |
| 225 // ------------------------------------------------------------------------- | |
| 226 // Handy-dandy macro to make event codes. | |
| 227 // Note that this relies on the definitions above | |
| 228 // having a well defined form. | |
| 229 | |
| 230 #define CYGINST_EVENT(_class_,_event_) \ | |
| 231 ((CYG_INSTRUMENT_CLASS_##_class_)|(CYG_INSTRUMENT_EVENT_##_class_##_##_event_)) | |
| 232 | |
| 233 // ------------------------------------------------------------------------- | |
| 234 // Scheduler instrumentation macros | |
| 235 | |
| 236 #ifdef CYGDBG_KERNEL_INSTRUMENT_SCHED | |
| 237 | |
| 238 #define CYG_INSTRUMENT_SCHED(_event_,_arg1_,_arg2_) \ | |
| 239 CYG_INSTRUMENT(CYGINST_EVENT(SCHED,_event_),_arg1_,_arg2_) | |
| 240 | |
| 241 #else | |
| 242 | |
| 2 | 243 #define CYG_INSTRUMENT_SCHED(_event_,_arg1_,_arg2_) \ |
| 244 CYG_MACRO_START \ | |
| 245 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 246 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 247 CYG_MACRO_END | |
| 0 | 248 |
| 249 #endif | |
| 250 | |
| 251 // ------------------------------------------------------------------------- | |
| 252 // Thread instrumentation macros | |
| 253 | |
| 254 #ifdef CYGDBG_KERNEL_INSTRUMENT_THREAD | |
| 255 | |
| 256 #define CYG_INSTRUMENT_THREAD(_event_,_arg1_,_arg2_) \ | |
| 257 CYG_INSTRUMENT(CYGINST_EVENT(THREAD,_event_),_arg1_,_arg2_) | |
| 258 | |
| 259 #else | |
| 260 | |
| 2 | 261 #define CYG_INSTRUMENT_THREAD(_event_,_arg1_,_arg2_) \ |
| 262 CYG_MACRO_START \ | |
| 263 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 264 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 265 CYG_MACRO_END | |
| 0 | 266 |
| 267 #endif | |
| 268 | |
| 269 // ------------------------------------------------------------------------- | |
| 270 // Interrupt instrumentation macros | |
| 271 | |
| 272 #ifdef CYGDBG_KERNEL_INSTRUMENT_INTR | |
| 273 | |
| 274 #define CYG_INSTRUMENT_INTR(_event_,_arg1_,_arg2_) \ | |
| 275 CYG_INSTRUMENT(CYGINST_EVENT(INTR,_event_),_arg1_,_arg2_) | |
| 276 | |
| 277 #else | |
| 278 | |
| 2 | 279 #define CYG_INSTRUMENT_INTR(_event_,_arg1_,_arg2_) \ |
| 280 CYG_MACRO_START \ | |
| 281 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 282 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 283 CYG_MACRO_END | |
| 0 | 284 |
| 285 #endif | |
| 286 | |
| 287 // ------------------------------------------------------------------------- | |
| 288 // Mutex instrumentation macros | |
| 289 | |
| 290 #ifdef CYGDBG_KERNEL_INSTRUMENT_MUTEX | |
| 291 | |
| 292 #define CYG_INSTRUMENT_MUTEX(_event_,_arg1_,_arg2_) \ | |
| 293 CYG_INSTRUMENT(CYGINST_EVENT(MUTEX,_event_),_arg1_,_arg2_) | |
| 294 | |
| 295 #else | |
| 296 | |
| 2 | 297 #define CYG_INSTRUMENT_MUTEX(_event_,_arg1_,_arg2_) \ |
| 298 CYG_MACRO_START \ | |
| 299 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 300 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 301 CYG_MACRO_END | |
| 0 | 302 |
| 303 #endif | |
| 304 | |
| 305 // ------------------------------------------------------------------------- | |
| 306 // Condition variable instrumentation macros | |
| 307 | |
| 308 #ifdef CYGDBG_KERNEL_INSTRUMENT_CONDVAR | |
| 309 | |
| 310 #define CYG_INSTRUMENT_CONDVAR(_event_,_arg1_,_arg2_) \ | |
| 311 CYG_INSTRUMENT(CYGINST_EVENT(CONDVAR,_event_),_arg1_,_arg2_) | |
| 312 | |
| 313 #else | |
| 314 | |
| 2 | 315 #define CYG_INSTRUMENT_CONDVAR(_event_,_arg1_,_arg2_) \ |
| 316 CYG_MACRO_START \ | |
| 317 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 318 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 319 CYG_MACRO_END | |
| 0 | 320 |
| 321 #endif | |
| 322 | |
| 323 // ------------------------------------------------------------------------- | |
| 324 // Binary semaphore instrumentation macros | |
| 325 | |
| 326 #ifdef CYGDBG_KERNEL_INSTRUMENT_BINSEM | |
| 327 | |
| 328 #define CYG_INSTRUMENT_BINSEM(_event_,_arg1_,_arg2_) \ | |
| 329 CYG_INSTRUMENT(CYGINST_EVENT(BINSEM,_event_),_arg1_,_arg2_) | |
| 330 | |
| 331 #else | |
| 332 | |
| 2 | 333 #define CYG_INSTRUMENT_BINSEM(_event_,_arg1_,_arg2_) \ |
| 334 CYG_MACRO_START \ | |
| 335 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 336 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 337 CYG_MACRO_END | |
| 0 | 338 |
| 339 #endif | |
| 340 | |
| 341 // ------------------------------------------------------------------------- | |
| 342 // Counting semaphore instrumentation macros | |
| 343 | |
| 344 #ifdef CYGDBG_KERNEL_INSTRUMENT_CNTSEM | |
| 345 | |
| 346 #define CYG_INSTRUMENT_CNTSEM(_event_,_arg1_,_arg2_) \ | |
| 347 CYG_INSTRUMENT(CYGINST_EVENT(CNTSEM,_event_),_arg1_,_arg2_) | |
| 348 | |
| 349 #else | |
| 350 | |
| 2 | 351 #define CYG_INSTRUMENT_CNTSEM(_event_,_arg1_,_arg2_) \ |
| 352 CYG_MACRO_START \ | |
| 353 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 354 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 355 CYG_MACRO_END | |
| 0 | 356 |
| 357 #endif | |
| 358 | |
| 359 // ------------------------------------------------------------------------- | |
| 360 // Clock instrumentation macros | |
| 361 | |
| 362 #ifdef CYGDBG_KERNEL_INSTRUMENT_CLOCK | |
| 363 | |
| 364 #define CYG_INSTRUMENT_CLOCK(_event_,_arg1_,_arg2_) \ | |
| 365 CYG_INSTRUMENT(CYGINST_EVENT(CLOCK,_event_),_arg1_,_arg2_) | |
| 366 | |
| 367 #else | |
| 368 | |
| 2 | 369 #define CYG_INSTRUMENT_CLOCK(_event_,_arg1_,_arg2_) \ |
| 370 CYG_MACRO_START \ | |
| 371 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 372 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 373 CYG_MACRO_END | |
| 0 | 374 |
| 375 #endif | |
| 376 | |
| 377 // ------------------------------------------------------------------------- | |
| 378 // Alarm instrumentation macros | |
| 379 | |
| 380 #ifdef CYGDBG_KERNEL_INSTRUMENT_ALARM | |
| 381 | |
| 382 #define CYG_INSTRUMENT_ALARM(_event_,_arg1_,_arg2_) \ | |
| 383 CYG_INSTRUMENT(CYGINST_EVENT(ALARM,_event_),_arg1_,_arg2_) | |
| 384 | |
| 385 #else | |
| 386 | |
| 2 | 387 #define CYG_INSTRUMENT_ALARM(_event_,_arg1_,_arg2_) \ |
| 388 CYG_MACRO_START \ | |
| 389 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 390 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 391 CYG_MACRO_END | |
| 0 | 392 |
| 393 #endif | |
| 394 | |
| 395 // ------------------------------------------------------------------------- | |
| 396 // Mboxt instrumentation macros | |
| 397 | |
| 398 #ifdef CYGDBG_KERNEL_INSTRUMENT_MBOXT | |
| 399 | |
| 400 #define CYG_INSTRUMENT_MBOXT(_event_,_arg1_,_arg2_) \ | |
| 401 CYG_INSTRUMENT(CYGINST_EVENT(MBOXT,_event_),_arg1_,_arg2_) | |
| 402 | |
| 403 #else | |
| 404 | |
| 2 | 405 #define CYG_INSTRUMENT_MBOXT(_event_,_arg1_,_arg2_) \ |
| 406 CYG_MACRO_START \ | |
| 407 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 408 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 409 CYG_MACRO_END | |
| 0 | 410 |
| 411 #endif | |
| 412 | |
| 413 // ------------------------------------------------------------------------- | |
| 414 // User instrumentation | |
| 415 | |
| 416 #ifdef CYGDBG_KERNEL_INSTRUMENT_USER | |
| 417 | |
| 418 #define CYG_INSTRUMENT_USER(_event_,_arg1_,_arg2_) \ | |
| 419 CYG_INSTRUMENT(CYGINST_EVENT(USER,_event_),_arg1_,_arg2_) | |
| 420 | |
| 421 #else | |
| 422 | |
| 2 | 423 #define CYG_INSTRUMENT_USER(_event_,_arg1_,_arg2_) \ |
| 424 CYG_MACRO_START \ | |
| 425 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg1_)); \ | |
| 426 CYG_UNUSED_PARAM(CYG_ADDRWORD, (CYG_ADDRWORD)(_arg2_)); \ | |
| 427 CYG_MACRO_END | |
| 0 | 428 |
| 429 #endif | |
| 430 | |
| 431 | |
| 432 // ------------------------------------------------------------------------- | |
| 433 #endif // ifndef CYGONCE_KERNEL_INSTRMNT_HXX | |
| 434 // EOF instrmnt.hxx |
