Changeset 1af8634a in rtems
- Timestamp:
- 04/11/14 15:18:20 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 463de59
- Parents:
- f0c8501
- git-author:
- Jennifer Averett <jennifer.averett@…> (04/11/14 15:18:20)
- git-committer:
- Jennifer Averett <jennifer.averett@…> (07/11/14 14:48:35)
- Location:
- cpukit/libmisc/capture
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libmisc/capture/capture.c
rf0c8501 r1af8634a 110 110 111 111 /* 112 * rtems_capture_get_time113 *114 * DESCRIPTION:115 *116 112 * This function returns the current time. If a handler is provided 117 113 * by the user get the time from that. … … 129 125 130 126 /* 131 * rtems_capture_match_names132 *133 * DESCRIPTION:134 *135 127 * This function compares rtems_names. It protects the 136 128 * capture engine from a change to the way names are supported 137 129 * in RTEMS. 138 *139 130 */ 140 131 static inline bool … … 145 136 146 137 /* 147 * rtems_capture_match_id148 *149 * DESCRIPTION:150 *151 138 * This function compares rtems_ids. It protects the 152 139 * capture engine from a change to the way id are supported 153 140 * in RTEMS. 154 *155 141 */ 156 142 static inline bool … … 161 147 162 148 /* 163 * rtems_capture_match_name_id164 *165 * DESCRIPTION:166 *167 149 * This function matches a name and/or id. 168 150 */ … … 187 169 188 170 /* 189 * rtems_capture_dup_name190 *191 * DESCRIPTION:192 *193 171 * This function duplicates an rtems_names. It protects the 194 172 * capture engine from a change to the way names are supported 195 173 * in RTEMS. 196 *197 174 */ 198 175 static inline void … … 203 180 204 181 /* 205 * rtems_capture_by_in_to206 *207 * DESCRIPTION:208 *209 182 * This function sees if a BY control is in the BY names. The use 210 183 * of the valid_mask in this way assumes the number of trigger 211 184 * tasks is the number of bits in uint32_t. 212 *213 185 */ 214 186 static inline bool … … 254 226 255 227 /* 256 * rtems_capture_refcount_up257 *258 * DESCRIPTION:259 *260 228 * This function raises the reference count. 261 *262 229 */ 263 230 static inline void … … 268 235 269 236 /* 270 * rtems_capture_refcount_down271 *272 * DESCRIPTION:273 *274 237 * This function lowers the reference count and if the count 275 238 * reaches 0 the task control block is returned to the heap. 276 *277 239 */ 278 240 static inline void … … 284 246 285 247 /* 286 * rtems_capture_init_stack_usage287 *288 * DESCRIPTION:289 *290 248 * This function setups a stack so its usage can be monitored. 291 249 */ … … 309 267 310 268 /* 311 * rtems_capture_find_control312 *313 * DESCRIPTION:314 *315 269 * This function searches for a trigger given a name. 316 *317 270 */ 318 271 static inline rtems_capture_control_t* … … 328 281 329 282 /* 330 * rtems_capture_create_control331 *332 * DESCRIPTION:333 *334 283 * This function creates a capture control for the capture engine. 335 *336 284 */ 337 285 static inline rtems_capture_control_t* … … 386 334 387 335 /* 388 * rtems_capture_create_capture_task389 *390 * DESCRIPTION:391 *392 336 * This function create the task control. 393 *394 337 */ 395 338 static inline rtems_capture_task_t* … … 467 410 468 411 /* 469 * rtems_capture_destroy_capture_task470 *471 * DESCRIPTION:472 *473 412 * This function destroy the task structure if the reference count 474 413 * is 0 and the tcb has been cleared signalling the task has been 475 414 * deleted. 476 *477 415 */ 478 416 static inline void … … 505 443 506 444 /* 507 * rtems_capture_record508 *509 * DESCRIPTION:510 *511 445 * This function records a capture record into the capture buffer. 512 *513 446 */ 514 447 static inline void … … 530 463 531 464 /* 532 * Cap ure the record if we have an event that is always465 * Capture the record if we have an event that is always 533 466 * captured, or the task's real priority is greater than the 534 467 * watch ceiling, and the global watch or task watch is enabled. 535 468 */ 536 537 469 if ((events & RTEMS_CAPTURE_RECORD_EVENTS) || 538 470 ((task->tcb->real_priority >= capture_ceiling) && … … 573 505 574 506 /* 575 * rtems_capture_trigger576 *577 * DESCRIPTION:578 *579 507 * See if we have triggered and if not see if this event is a 580 508 * cause of a trigger. … … 646 574 647 575 /* 648 * rtems_capture_create_task649 *650 * DESCRIPTION:651 *652 576 * This function is called when a task is created. 653 *654 577 */ 655 578 static bool … … 685 608 686 609 /* 687 * rtems_capture_start_task688 *689 * DESCRIPTION:690 *691 610 * This function is called when a task is started. 692 *693 611 */ 694 612 static void … … 727 645 728 646 /* 729 * rtems_capture_restart_task730 *731 * DESCRIPTION:732 *733 647 * This function is called when a task is restarted. 734 *735 648 */ 736 649 static void … … 770 683 771 684 /* 772 * rtems_capture_delete_task773 *774 * DESCRIPTION:775 *776 685 * This function is called when a task is deleted. 777 *778 686 */ 779 687 static void … … 820 728 821 729 /* 822 * rtems_capture_begin_task823 *824 * DESCRIPTION:825 *826 730 * This function is called when a task is begun. 827 *828 731 */ 829 732 static void … … 851 754 852 755 /* 853 * rtems_capture_exitted_task854 *855 * DESCRIPTION:856 *857 756 * This function is called when a task is exitted. That is 858 757 * returned rather than was deleted. 859 *860 758 */ 861 759 static void … … 885 783 886 784 /* 887 * rtems_capture_switch_task 888 * 889 * DESCRIPTION: 890 * 785 * This function is called when a termination request is identified. 786 */ 787 static void 788 rtems_capture_terminated_task (rtems_tcb* terminated_task) 789 { 790 rtems_capture_delete_task (terminated_task, terminated_task); 791 } 792 793 /* 794 * This function is called when a fatal error occurs. 795 */ 796 static void 797 rtems_capture_fatal( 798 Internal_errors_Source source, 799 bool is_internal, 800 Internal_errors_t code 801 ) 802 { 803 } 804 805 /* 891 806 * This function is called when a context is switched. 892 *893 807 */ 894 808 static void … … 968 882 969 883 /* 970 * rtems_capture_open971 *972 * DESCRIPTION:973 *974 884 * This function initialises the realtime capture engine allocating the trace 975 885 * buffer. It is assumed we have a working heap at stage of initialisation. 976 *977 886 */ 978 887 rtems_status_code … … 1042 951 1043 952 /* 1044 * rtems_capture_close1045 *1046 * DESCRIPTION:1047 *1048 953 * This function shutdowns the capture engine and release any claimed 1049 954 * resources. … … 1113 1018 1114 1019 /* 1115 * rtems_capture_control1116 *1117 * DESCRIPTION:1118 *1119 1020 * This function allows control of tracing at a global level. 1120 1021 */ … … 1151 1052 1152 1053 /* 1153 * rtems_capture_monitor1154 *1155 * DESCRIPTION:1156 *1157 1054 * This function enable the monitor mode. When in the monitor mode 1158 1055 * the tasks are monitored but no data is saved. This can be used … … 1183 1080 1184 1081 /* 1185 * rtems_capture_flush1186 *1187 * DESCRIPTION:1188 *1189 1082 * This function flushes the capture buffer. The prime parameter allows the 1190 1083 * capture engine to also be primed again. … … 1228 1121 1229 1122 /* 1230 * rtems_capture_watch_add1231 *1232 * DESCRIPTION:1233 *1234 1123 * This function defines a watch for a specific task given a name. A watch 1235 1124 * causes it to be traced either in or out of context. The watch can be … … 1260 1149 1261 1150 /* 1262 * rtems_capture_watch_del1263 *1264 * DESCRIPTION:1265 *1266 1151 * This function removes a watch for a specific task given a name. The task 1267 1152 * description will still exist if referenced by a trace record in the trace … … 1316 1201 1317 1202 /* 1318 * rtems_capture_watch_set1319 *1320 * DESCRIPTION:1321 *1322 1203 * This function allows control of a watch. The watch can be enabled or 1323 1204 * disabled. … … 1358 1239 1359 1240 /* 1360 * rtems_capture_watch_global1361 *1362 * DESCRIPTION:1363 *1364 1241 * This function allows control of a global watch. The watch can be enabled or 1365 1242 * disabled. A global watch configures all tasks below the ceiling and above … … 1388 1265 1389 1266 /* 1390 * rtems_capture_watch_global_on1391 *1392 * DESCRIPTION:1393 *1394 1267 * This function returns the global watch state. 1395 1268 */ … … 1401 1274 1402 1275 /* 1403 * rtems_capture_watch_ceiling1404 *1405 * DESCRIPTION:1406 *1407 1276 * This function sets a watch ceiling. Tasks at or greating that the 1408 1277 * ceiling priority are not watched. This is a simple way to monitor … … 1418 1287 1419 1288 /* 1420 * rtems_capture_watch_get_ceiling1421 *1422 * DESCRIPTION:1423 *1424 1289 * This function gets the watch ceiling. 1425 1290 */ … … 1431 1296 1432 1297 /* 1433 * rtems_capture_watch_floor1434 *1435 * DESCRIPTION:1436 *1437 1298 * This function sets a watch floor. Tasks at or less that the 1438 1299 * floor priority are not watched. This is a simple way to monitor … … 1448 1309 1449 1310 /* 1450 * rtems_capture_watch_get_floor1451 *1452 * DESCRIPTION:1453 *1454 1311 * This function gets the watch floor. 1455 1312 */ … … 1461 1318 1462 1319 /* 1463 * rtems_capture_map_trigger1464 *1465 * DESCRIPTION:1466 *1467 1320 * Map the trigger to a bit mask. 1468 *1469 1321 */ 1470 1322 static uint32_t … … 1497 1349 1498 1350 /* 1499 * rtems_capture_set_trigger1500 *1501 * DESCRIPTION:1502 *1503 1351 * This function sets a trigger. 1504 1352 * … … 1587 1435 1588 1436 /* 1589 * rtems_capture_clear_trigger1590 *1591 * DESCRIPTION:1592 *1593 1437 * This function clear a trigger. 1594 1438 */ … … 1661 1505 1662 1506 /* 1663 * rtems_capture_read1664 *1665 * DESCRIPTION:1666 *1667 1507 * This function reads a number of records from the capture buffer. 1668 1508 * The user can optionally block and wait until the buffer as a … … 1689 1529 * The 'timeout' parameter is in micro-seconds. A value of 0 will disable 1690 1530 * the timeout. 1691 *1692 1531 */ 1693 1532 rtems_status_code … … 1785 1624 1786 1625 /* 1787 * rtems_capture_release1788 *1789 * DESCRIPTION:1790 *1791 1626 * This function releases the requested number of record slots back 1792 1627 * to the capture engine. The count must match the number read. … … 1831 1666 1832 1667 /* 1833 * rtems_capture_time1834 *1835 * DESCRIPTION:1836 *1837 1668 * This function returns the current time. If a handler is provided 1838 1669 * by the user get the time from that. … … 1845 1676 1846 1677 /* 1847 * rtems_capture_event_text1848 *1849 * DESCRIPTION:1850 *1851 1678 * This function returns a string for an event based on the bit in the 1852 1679 * event. The functions takes the bit offset as a number not the bit … … 1862 1689 1863 1690 /* 1864 * rtems_capture_get_task_list1865 *1866 * DESCRIPTION:1867 *1868 1691 * This function returns the head of the list of tasks that the 1869 1692 * capture engine has detected. … … 1876 1699 1877 1700 /* 1878 * rtems_capture_task_stack_usage1879 *1880 * DESCRIPTION:1881 *1882 1701 * This function updates the stack usage. The task control block 1883 1702 * is updated. … … 1912 1731 1913 1732 /* 1914 * rtems_capture_get_control_list1915 *1916 * DESCRIPTION:1917 *1918 1733 * This function returns the head of the list of control in the 1919 1734 * capture engine. -
cpukit/libmisc/capture/capture.h
rf0c8501 r1af8634a 34 34 #define __CAPTURE_H_ 35 35 36 /** 37 * @defgroup libmisc_capture RTEMS Capture Engine 38 * 39 * @ingroup libmisc 40 * 41 * Capture Engine Component of the RTEMS Measurement and Monitoring System 42 */ 43 /**@{*/ 36 44 #ifdef __cplusplus 37 45 extern "C" { … … 46 54 47 55 /** 48 * rtems_capture_time_t 49 * 50 * DESCRIPTION: 51 * 52 * A capture timestamp. 56 * @brief A capture timestamp. 57 * 58 * This is a nanosecond capture timestamp 53 59 */ 54 60 typedef uint64_t rtems_capture_time_t; 55 61 56 62 /** 57 * rtems_capture_from_t 58 * 59 * DESCRIPTION: 63 * @brief Task id and mask for the from trigger. 60 64 * 61 65 * A from capture is a task id and a mask for the type of … … 73 77 74 78 /** 75 * rtems_capture_control_t 76 * 77 * DESCRIPTION: 79 * @brief Capture control structure for a group of tasks. 78 80 * 79 81 * RTEMS control holds the trigger and watch configuration for a group of … … 135 137 136 138 /** 137 * rtems_capture_task_t 138 * 139 * DESCRIPTION: 139 * @brief Catpure task control 140 140 * 141 141 * RTEMS capture control provdes the information about a task, along … … 180 180 181 181 /* 182 * rtems_capture_record_t 183 * 184 * DESCRIPTION: 185 * 186 * RTEMS capture record. This is a record that is written into 182 * @brief Capture record. 183 * 184 * This is a record that is written into 187 185 * the buffer. The events includes the priority of the task 188 186 * at the time of the context switch. … … 219 217 220 218 /** 221 * rtems_capture_trigger_mode_t 222 * 223 * DESCRIPTION: 219 * @brief Capture trigger modes 224 220 * 225 221 * The types of trigger modes that exist. … … 233 229 234 230 /** 235 * rtems_capture_trigger_t 236 * 237 * DESCRIPTION: 231 * @brief Capture trigger. 238 232 * 239 233 * The types of triggers that exist. … … 251 245 252 246 /** 253 * rtems_capture_timestamp 254 * 255 * DESCRIPTION: 247 * @brief Capture timestamp callout handler. 256 248 * 257 249 * This defines the callout handler to obtain a time stamp. The … … 263 255 264 256 /** 265 * rtems_capture_open 266 * 267 * DESCRIPTION: 257 * @brief Capture open 268 258 * 269 259 * This function initialises the realtime trace manager allocating the … … 271 261 * initialisation. 272 262 * 263 * @param[in] size The number of capture records to define. 264 * @param[in] timestamp The timestamp callout handler to use. If the 265 * the handler is NULL a default nano-second timestamp 266 * will be used. 267 * 268 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 269 * error. Otherwise, a status code is returned indicating the 270 * source of the error. 273 271 */ 274 272 rtems_status_code … … 277 275 278 276 /** 279 * rtems_capture_close 280 * 281 * DESCRIPTION: 277 * @brief Capture close 282 278 * 283 279 * This function shutdowns the tracer and release any claimed 284 280 * resources. 281 * 282 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 283 * error. Otherwise, a status code is returned indicating the 284 * source of the error. 285 285 */ 286 286 rtems_status_code … … 288 288 289 289 /** 290 * rtems_capture_control 291 * 292 * DESCRIPTION: 290 * @brief Capture control trace enable/disable. 293 291 * 294 292 * This function allows control of tracing at a global level. 293 * 294 * @param[in] enable The trace enable/disable flag. 295 * 296 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 297 * error. Otherwise, a status code is returned indicating the 298 * source of the error. 295 299 */ 296 300 rtems_status_code … … 298 302 299 303 /** 300 * rtems_capture_monitor 301 * 302 * DESCRIPTION: 304 * @brief Capture monitor enable/disable. 303 305 * 304 306 * This function enable the monitor mode. When in the monitor mode 305 307 * the tasks are monitored but no data is saved. This can be used 306 308 * to profile the load on a system. 309 * 310 * @param[in] enable The monitor enable/disable flag. 311 * 312 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 313 * error. Otherwise, a status code is returned indicating the 314 * source of the error. 307 315 */ 308 316 rtems_status_code … … 310 318 311 319 /* 312 * rtems_capture_flush 313 * 314 * DESCRIPTION: 320 * @brief Capture flush trace buffer. 315 321 * 316 322 * This function flushes the trace buffer. The prime parameter allows the 317 323 * capture engine to also be primed again. 324 * 325 * @param[in] prime The prime after flush flag. 326 * 327 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 328 * error. Otherwise, a status code is returned indicating the 329 * source of the error. 318 330 */ 319 331 rtems_status_code … … 321 333 322 334 /** 323 * rtems_capture_watch_add 324 * 325 * DESCRIPTION: 335 * @brief Capture add watch 326 336 * 327 337 * This function defines a watch for a specific task given a name. A watch … … 329 339 * optionally enabled or disabled with the set routine. It is disabled by 330 340 * default. 341 * 342 * @param[in] name The name of the @a capture_controls entry 343 * @param[in] id The id of the @a capture_controls entry. 344 * 345 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 346 * error. Otherwise, a status code is returned indicating the 347 * source of the error. 331 348 */ 332 349 rtems_status_code … … 334 351 335 352 /** 336 * rtems_capture_watch_del 337 * 338 * DESCRIPTION: 353 * @brief Capture delete watch. 339 354 * 340 355 * This function removes a watch for a specific task given a name. The task 341 356 * description will still exist if referenced by a trace record in the trace 342 357 * buffer or a global watch is defined. 358 * 359 * @param[in] name The name of the @a capture_controls entry 360 * @param[in] id The id of the @a capture_controls entry. 361 * 362 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 363 * error. Otherwise, a status code is returned indicating the 364 * source of the error. 343 365 */ 344 366 rtems_status_code … … 346 368 347 369 /** 348 * rtems_capture_watch_set 349 * 350 * DESCRIPTION: 370 * @brief Capture enable/disable watch. 351 371 * 352 372 * This function allows control of a watch. The watch can be enabled or 353 373 * disabled. 374 * 375 * @param[in] name The name of the @a capture_controls entry 376 * @param[in] id The id of the @a capture_controls entry. 377 * @param[in] enable The enable/disable flag for the watch. 378 * 379 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 380 * error. Otherwise, a status code is returned indicating the 381 * source of the error. 354 382 */ 355 383 rtems_status_code … … 359 387 360 388 /** 361 * rtems_capture_watch_global 362 * 363 * DESCRIPTION: 389 * @brief Capture enable/disable global watch. 364 390 * 365 391 * This function allows control of a global watch. The watch can 366 392 * be enabled or disabled. A global watch configures all tasks below 367 393 * the ceiling and above the floor to be traced. 394 * 395 * @param[in] enable The enable/disable flag for the watch. 396 * 397 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 398 * error. Otherwise, a status code is returned indicating the 399 * source of the error. 368 400 */ 369 401 rtems_status_code … … 371 403 372 404 /** 373 * rtems_capture_watch_global_on 374 * 375 * DESCRIPTION: 405 * @brief Get global watch state 376 406 * 377 407 * This function returns the global watch state. 408 * 409 * @retval This method returns true if the global watch 410 * is on. Otherwise, it returns false. 378 411 */ 379 412 bool … … 381 414 382 415 /** 383 * rtems_capture_watch_ceiling 384 * 385 * DESCRIPTION: 386 * 387 * This function sets a watch ceiling. Tasks at or greating that the 388 * ceiling priority are not watched. This is a simple way to monitor 389 * an application and exclude system tasks running at a higher 416 * @brief Set watch ceiling. 417 * 418 * This function sets a watch ceiling. Events from tasks at or greater 419 * than the ceiling priority are ignored. This is a simple way to 420 * monitor an application and exclude system tasks running at a higher 390 421 * priority level. 422 * 423 * @param[in] ceiling specifies the priority level immediately above 424 * that at which events from tasks are not captured. 425 * 426 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 427 * error. Otherwise, a status code is returned indicating the 428 * source of the error. 391 429 */ 392 430 rtems_status_code … … 394 432 395 433 /** 396 * rtems_capture_watch_get_ceiling 397 * 398 * DESCRIPTION: 434 * @brief Get watch ceiling. 399 435 * 400 436 * This function gets the watch ceiling. 437 * 438 * @retval The priority level immediately above that at which events 439 * from tasks are not captured. 401 440 */ 402 441 rtems_task_priority … … 404 443 405 444 /** 406 * rtems_capture_watch_floor 407 * 408 * DESCRIPTION: 409 * 410 * This function sets a watch floor. Tasks at or less that the 445 * @brief Capture set watch floor. 446 * 447 * This function sets a watch floor. Tasks at or less than the 411 448 * floor priority are not watched. This is a simple way to monitor 412 449 * an application and exclude system tasks running at a lower 413 450 * priority level. 451 * 452 * @param[in] floor specifies the priority level immediately below 453 * that at which events from tasks are not captured. 454 * 455 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 456 * error. Otherwise, a status code is returned indicating the 457 * source of the error. 414 458 */ 415 459 rtems_status_code … … 417 461 418 462 /** 419 * rtems_capture_watch_get_floor 420 * 421 * DESCRIPTION: 463 * @brief Capture set watch floor 422 464 * 423 465 * This function gets the watch floor. 466 * 467 * @retval The priority level immediately below 468 * that at which events from tasks are not captured. 424 469 */ 425 470 rtems_task_priority … … 427 472 428 473 /** 429 * rtems_capture_set_trigger 430 * 431 * DESCRIPTION: 474 * @brief Capture set trigger 432 475 * 433 476 * This function sets a trigger. … … 440 483 * search using names. This means a number of tasks can be 441 484 * linked to single control. 485 * 486 * Some events captured such as context switch include two 487 * tasks. These are referred to as being "from" and "to" 488 * Some events may only have one task specified. 489 * 490 * @param[in] from_name specifies the name of the from task. 491 * @param[in] from_id specifies the id of the from task. 492 * @param[in] to_name specifies the name of the to task. 493 * @param[in] to_id specifies the id of the to task. 494 * @param[in] mode specifies the trigger mode. 495 * @param[in] trigger specifies the type of trigger. 496 * 497 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 498 * error. Otherwise, a status code is returned indicating the 499 * source of the error. 442 500 */ 443 501 rtems_status_code … … 450 508 451 509 /** 452 * rtems_capture_clear_trigger 453 * 454 * DESCRIPTION: 510 * @brief Capture clear trigger. 455 511 * 456 512 * This function clears a trigger. 457 513 * 458 514 * This clear trigger routine will not clear a watch. 515 * 516 * @param[in] from_name specifies the name of the from task. 517 * @param[in] from_id specifies the id of the from task. 518 * @param[in] to_name specifies the name of the to task. 519 * @param[in] to_id specifies the id of the to task. 520 * @param[in] mode specifies the trigger mode. 521 * @param[in] trigger specifies the type of trigger. 522 * 523 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 524 * error. Otherwise, a status code is returned indicating the 525 * source of the error. 459 526 */ 460 527 rtems_status_code … … 467 534 468 535 /** 469 * rtems_capture_read 470 * 471 * DESCRIPTION: 536 * @brief Capture read records from capture buffer 472 537 * 473 538 * This function reads a number of records from the capture buffer. … … 493 558 * a user configured latiency to be applied for single events. 494 559 * 495 * The 'timeout' parameter is in micro-seconds. A value of 0 will560 * The @a timeout parameter is in microseconds. A value of 0 will 496 561 * disable the timeout. 497 562 * 563 * @param[in] threshold The number of records that must be captured 564 * @param[in] timeout The micro-second timeout period 565 * @param[out] read will contain the number of records read 566 * @param[out] recs The capture records that are read. 567 * 568 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 569 * error. Otherwise, a status code is returned indicating the 570 * source of the error. 498 571 */ 499 572 rtems_status_code … … 504 577 505 578 /** 506 * rtems_capture_release 507 * 508 * DESCRIPTION: 579 * @brief Capture release records. 509 580 * 510 581 * This function releases the requested number of record slots back 511 582 * to the capture engine. The count must match the number read. 583 * 584 * @param[in] count The number of record slots to release 585 * 586 * @retval This method returns RTEMS_SUCCESSFUL if there was not an 587 * error. Otherwise, a status code is returned indicating the 588 * source of the error. 512 589 */ 513 590 rtems_status_code … … 515 592 516 593 /* 517 * rtems_capture_time 518 * 519 * DESCRIPTION: 594 * @brief Capture nano-second time period. 520 595 * 521 596 * This function returns the time period in nano-seconds. 597 * 598 * @param[out] uptime The nano-second time period. 522 599 */ 523 600 void … … 525 602 526 603 /** 527 * rtems_capture_event_text 528 * 529 * DESCRIPTION: 604 * @brief Capture get event text. 530 605 * 531 606 * This function returns a string for an event based on the bit in the 532 607 * event. The functions takes the bit offset as a number not the bit 533 608 * set in a bit map. 609 * 610 * @param[in] event specifies the event to describe 611 * 612 * @retval This method returns a string description of the given event. 534 613 */ 535 614 const char* … … 537 616 538 617 /** 539 * rtems_capture_get_task_list 540 * 541 * DESCRIPTION: 618 * @brief Capture get task list. 542 619 * 543 620 * This function returns the head of the list of tasks that the 544 621 * capture engine has detected. 622 * 623 * @retval This function returns the head of the list of tasks that 624 * the capture engine has detected. 545 625 */ 546 626 rtems_capture_task_t* … … 548 628 549 629 /** 550 * rtems_capture_next_task 551 * 552 * DESCRIPTION: 630 * @brief Capture get next task in list. 553 631 * 554 632 * This function returns the pointer to the next task in the list. The 555 633 * pointer NULL terminates the list. 634 * 635 * @param[in] task The capture task to get the next entry from. 636 * 637 * @retval This function returns the pointer to the next task in the list. The 638 * pointer NULL terminates the list. 556 639 */ 557 640 static inline rtems_capture_task_t* … … 562 645 563 646 /** 564 * rtems_capture_task_valid 565 * 566 * DESCRIPTION: 647 * @brief Capture is valid task control block 567 648 * 568 649 * This function returns true if the task control block points to 569 650 * a valid task. 651 * 652 * @param[in] task The capture task. 653 * 654 * @retval This function returns true if the task control block points to 655 * a valid task. Otherwise, it returns false. 570 656 */ 571 657 static inline bool … … 576 662 577 663 /** 578 * rtems_capture_task_id 579 * 580 * DESCRIPTION: 581 * 664 * @brief Capture get task id. 665 * 582 666 * This function returns the task id. 667 * 668 * @param[in] task The capture task. 669 * 670 * @retval This function returns the task id. 583 671 */ 584 672 static inline rtems_id … … 589 677 590 678 /** 591 * rtems_capture_task_state 592 * 593 * DESCRIPTION: 594 * 679 * @brief Capture get task state. 680 * 595 681 * This function returns the task state. 682 * 683 * @param[in] task The capture task. 684 * 685 * @retval This function returns the task state. 596 686 */ 597 687 static inline States_Control … … 604 694 605 695 /** 606 * rtems_capture_task_name 607 * 608 * DESCRIPTION: 609 * 696 * @brief Capture get task name. 697 * 610 698 * This function returns the task name. 699 * 700 * @param[in] task The capture task. 701 * 702 * @retval This function returns the task name. 611 703 */ 612 704 static inline rtems_name … … 617 709 618 710 /** 619 * rtems_capture_task_flags 620 * 621 * DESCRIPTION: 622 * 711 * @brief Capture get task flags. 712 * 623 713 * This function returns the task flags. 714 * 715 * @param[in] task The capture task. 716 * 717 * @retval This function returns the task flags. 624 718 */ 625 719 static inline uint32_t … … 630 724 631 725 /** 632 * rtems_capture_task_control 633 * 634 * DESCRIPTION: 635 * 726 * @brief Capture get task control 727 * 636 728 * This function returns the task control if present. 729 * 730 * @param[in] task The capture task. 731 * 732 * @retval This function returns the task control if present. 637 733 */ 638 734 static inline rtems_capture_control_t* … … 643 739 644 740 /** 645 * rtems_capture_task_control_flags 646 * 647 * DESCRIPTION: 648 * 741 * @brief Capture get task control flags. 742 * 649 743 * This function returns the task control flags if a control is present. 744 * 745 * @param[in] task The capture task. 746 * 747 * @retval This function returns the task control flags if a control is present. 650 748 */ 651 749 static inline uint32_t … … 658 756 659 757 /** 660 * rtems_capture_task_switched_in 661 * 662 * DESCRIPTION: 663 * 758 * @brief Capture get number of times task switched in. 759 * 664 760 * This function returns the number of times the task has 665 761 * been switched into context. 762 * 763 * @param[in] task The capture task. 764 * 765 * @retval This function returns the number of times the task has 766 * been switched into context. 666 767 */ 667 768 static inline uint32_t … … 672 773 673 774 /** 674 * rtems_capture_task_switched_out 675 * 676 * DESCRIPTION: 677 * 775 * @brief Capture get number of times task switched out. 776 * 678 777 * This function returns the number of times the task has 679 778 * been switched out of context. 779 * 780 * @param[in] task The capture task. 781 * 782 * @retval This function returns the number of times the task has 783 * been switched out of context. 680 784 */ 681 785 static inline uint32_t … … 686 790 687 791 /** 688 * rtems_capture_task_curr_priority 689 * 690 * DESCRIPTION: 691 * 792 * @brief Capture get task start priority. 793 * 692 794 * This function returns the tasks start priority. The tracer needs this 693 795 * to track where the task's priority goes. 796 * 797 * @param[in] task The capture task. 798 * 799 * @retval This function returns the tasks start priority. The tracer needs this 800 * to track where the task's priority goes. 694 801 */ 695 802 static inline rtems_task_priority … … 700 807 701 808 /** 702 * rtems_capture_task_real_priority 703 * 704 * DESCRIPTION: 705 * 809 * @brief Capture get task real priority. 810 * 706 811 * This function returns the tasks real priority. 812 * 813 * @param[in] task The capture task. 814 * 815 * @retval This function returns the tasks real priority. 707 816 */ 708 817 static inline rtems_task_priority … … 715 824 716 825 /** 717 * rtems_capture_task_curr_priority 718 * 719 * DESCRIPTION: 720 * 826 * @brief Capture get task current priority. 827 * 721 828 * This function returns the tasks current priority. 829 * 830 * @param[in] task The capture task. 831 * 832 * @retval This function returns the tasks current priority. 722 833 */ 723 834 static inline rtems_task_priority … … 730 841 731 842 /** 732 * rtems_capture_task_stack_usage 733 * 734 * DESCRIPTION: 735 * 843 * @brief Capture update stack usage. 844 * 736 845 * This function updates the stack usage. The task control block 737 846 * is updated. 847 * 848 * @param[in] task The capture task. 849 * 850 * @retval This function updates the stack usage. The task control block 851 * is updated. 738 852 */ 739 853 uint32_t … … 741 855 742 856 /** 743 * rtems_capture_task_stack_size 744 * 745 * DESCRIPTION: 746 * 857 * @brief Capture get stack size. 858 * 747 859 * This function returns the task's stack size. 860 * 861 * @param[in] task The capture task. 862 * 863 * @retval This function returns the task's stack size. 748 864 */ 749 865 static inline uint32_t … … 754 870 755 871 /** 756 * rtems_capture_task_stack_used 757 * 758 * DESCRIPTION: 759 * 872 * @brief Capture get stack used. 873 * 760 874 * This function returns the amount of stack used. 875 * 876 * @param[in] task The capture task. 877 * 878 * @retval This function returns the amount of stack used. 761 879 */ 762 880 static inline uint32_t … … 767 885 768 886 /** 769 * rtems_capture_task_time 770 * 771 * DESCRIPTION: 772 * 887 * @brief Capture get task execution time. 888 * 773 889 * This function returns the current execution time. 890 * 891 * @param[in] task The capture task. 892 * 893 * @retval This function returns the current execution time. 774 894 */ 775 895 static inline uint64_t … … 780 900 781 901 /** 782 * rtems_capture_task_delta_time 783 * 784 * DESCRIPTION: 785 * 902 * @brief Capture get delta in execution time. 903 * 786 904 * This function returns the execution time as a different between the 905 * last time the detla time was and now. 906 * 907 * @param[in] task The capture task. 908 * 909 * @retval This function returns the execution time as a different between the 787 910 * last time the detla time was and now. 788 911 */ … … 796 919 797 920 /** 798 * rtems_capture_task_count 799 * 800 * DESCRIPTION: 921 * @brief Capture get task count. 801 922 * 802 923 * This function returns the number of tasks the capture 924 * engine knows about. 925 * 926 * @retval This function returns the number of tasks the capture 803 927 * engine knows about. 804 928 */ … … 819 943 820 944 /** 821 * rtems_capture_get_control_list 822 * 823 * DESCRIPTION: 945 * @brief Capture get control list. 824 946 * 825 947 * This function returns the head of the list of controls in the 826 948 * capture engine. 949 * 950 * @retval This function returns the head of the list of controls in the 951 * capture engine. 827 952 */ 828 953 rtems_capture_control_t* … … 830 955 831 956 /** 832 * rtems_capture_next_control 833 * 834 * DESCRIPTION: 835 * 957 * @brief Capture get next capture control. 958 * 836 959 * This function returns the pointer to the next control in the list. The 837 960 * pointer NULL terminates the list. 961 * 962 * @param[in] control the current capture control. 963 * 964 * @retval This function returns the pointer to the next control in the list. The 965 * pointer NULL terminates the list. 838 966 */ 839 967 static inline rtems_capture_control_t* … … 844 972 845 973 /** 846 * rtems_capture_control_id 847 * 848 * DESCRIPTION: 849 * 974 * @brief Capture get capture control id. 975 * 850 976 * This function returns the control id. 977 * 978 * @param[in] control the capture control. 979 * 980 * @retval This function returns the control id. 851 981 */ 852 982 static inline rtems_id … … 857 987 858 988 /** 859 * rtems_capture_control_name 860 * 861 * DESCRIPTION: 989 * @brief Capture get capture control name. 862 990 * 863 991 * This function returns the control name. 992 * 993 * @param[in] control the capture control. 994 * 995 * @retval This function returns the control name. 864 996 */ 865 997 static inline rtems_name … … 870 1002 871 1003 /** 872 * rtems_capture_control_flags 873 * 874 * DESCRIPTION: 1004 * @brief Capture get capture control flags. 875 1005 * 876 1006 * This function returns the control flags. 1007 * 1008 * @param[in] control the capture control. 1009 * 1010 * @retval This function returns the control flags. 877 1011 */ 878 1012 static inline uint32_t … … 883 1017 884 1018 /** 885 * rtems_capture_control_to_triggers 886 * 887 * DESCRIPTION: 1019 * @brief Capture get capture control to triggers. 888 1020 * 889 1021 * This function returns the task control to triggers. 1022 * 1023 * @param[in] control the capture control. 1024 * 1025 * @retval This function returns the task control to triggers. 890 1026 */ 891 1027 static inline uint32_t … … 896 1032 897 1033 /** 898 * rtems_capture_control_from_triggers 899 * 900 * DESCRIPTION: 1034 * @brief Capture get capture control from triggers. 901 1035 * 902 1036 * This function returns the task control from triggers. 1037 * 1038 * @param[in] control the capture control. 1039 * 1040 * @retval This function returns the task control from triggers. 903 1041 */ 904 1042 static inline uint32_t … … 909 1047 910 1048 /** 911 * rtems_capture_control_all_by_triggers 912 * 913 * DESCRIPTION: 1049 * @brief Capture get capture control by triggers. 914 1050 * 915 1051 * This function returns the task control by triggers. 1052 * 1053 * @param[in] control the capture control. 1054 * 1055 * @retval This function returns the task control by triggers. 916 1056 */ 917 1057 static inline uint32_t … … 922 1062 923 1063 /** 924 * rtems_capture_control_by_valid 925 * 926 * DESCRIPTION: 1064 * @brief Capture get capture control valid by flags. 927 1065 * 928 1066 * This function returns the control valid BY flags. 1067 * 1068 * @param[in] control The capture control. 1069 * @param[in] slot The XXX. 1070 * 1071 * @retval This function returns the control valid BY flags. 929 1072 */ 930 1073 static inline int … … 935 1078 936 1079 /** 937 * rtems_capture_control_by_name 938 * 939 * DESCRIPTION: 940 * 941 * This function returns the control BY task name. 1080 * @brief Capture get capture control by task name. 1081 * 1082 * This function returns the control @a by task name. 1083 * 1084 * @param[in] control The capture control. 1085 * @param[in] by The XXX. 1086 * 1087 * @retval This function returns the control @a by task name. 942 1088 */ 943 1089 static inline rtems_name … … 950 1096 951 1097 /** 952 * rtems_capture_control_by_id953 * 954 * DESCRIPTION:955 * 956 * This function returns the control BYtask id.1098 * @brief Capture get capture control by task id. 1099 * 1100 * This function returns the control @a by task id 1101 * 1102 * @retval This function returns the control @a by task id. 957 1103 */ 958 1104 static inline rtems_id … … 965 1111 966 1112 /** 967 * rtems_capture_control_by_triggers968 * 969 * DESCRIPTION:970 * 971 * This function returns the control BYtask triggers.1113 * @brief Capture get capture control by task triggers. 1114 * 1115 * This function returns the control @a by task triggers. 1116 * 1117 * @retval This function returns the control @a by task triggers. 972 1118 */ 973 1119 static inline uint32_t … … 981 1127 982 1128 /** 983 * rtems_capture_control_count 984 * 985 * DESCRIPTION: 1129 * @brief Capture get capture control count. 986 1130 * 987 1131 * This function returns the number of controls the capture 1132 * engine has. 1133 * 1134 * @retval This function returns the number of controls the capture 988 1135 * engine has. 989 1136 */
Note: See TracChangeset
for help on using the changeset viewer.