Changeset c577500 in rtems
- Timestamp:
- 11/06/14 14:55:32 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 11b3ba1
- Parents:
- 66bf2af2
- git-author:
- Jennifer Averett <jennifer.averett@…> (11/06/14 14:55:32)
- git-committer:
- Jennifer Averett <jennifer.averett@…> (11/24/14 20:04:54)
- Location:
- cpukit/libmisc/capture
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libmisc/capture/capture-cli.h
r66bf2af2 rc577500 13 13 Chris Johns (ccj@acm.org) 14 14 15 COPYRIGHT (c) 1989- 1998.15 COPYRIGHT (c) 1989-2014. 16 16 On-Line Applications Research Corporation (OAR). 17 17 -
cpukit/libmisc/capture/capture.h
r66bf2af2 rc577500 16 16 Chris Johns (ccj@acm.org) 17 17 18 COPYRIGHT (c) 1989- 1998.18 COPYRIGHT (c) 1989-2014 19 19 On-Line Applications Research Corporation (OAR). 20 20 … … 246 246 * 247 247 * @param[in] size The number of capture records to define. 248 * @param[in] timestamp The timestamp callout handler to use. If the 249 * the handler is NULL a default nano-second timestamp 248 * @param[in] timestamp The timestamp callout handler to use. If the 249 * the handler is NULL a default nano-second timestamp 250 250 * will be used. 251 251 * … … 391 391 * This function returns the global watch state. 392 392 * 393 * @retval This method returns true if the global watch 393 * @retval This method returns true if the global watch 394 394 * is on. Otherwise, it returns false. 395 395 */ … … 420 420 * This function gets the watch ceiling. 421 421 * 422 * @retval The priority level immediately above that at which events 422 * @retval The priority level immediately above that at which events 423 423 * from tasks are not captured. 424 424 */ … … 596 596 /** 597 597 * @brief Capture record task. 598 * 598 * 599 599 * This function records a new capture task record. 600 600 * … … 618 618 * @brief Capture task initialized 619 619 * 620 * This function returns true if this task information has been 620 * This function returns true if this task information has been 621 621 * initialized. 622 622 * … … 629 629 /** 630 630 * @brief Capture get task id. 631 * 631 * 632 632 * This function returns the task id. 633 633 * 634 634 * @param[in] task The capture task. 635 * 635 * 636 636 * @retval This function returns the task id. 637 637 */ … … 644 644 /** 645 645 * @brief Capture get task state. 646 * 646 * 647 647 * This function returns the task state. 648 648 * 649 649 * @param[in] task The capture task. 650 * 650 * 651 651 * @retval This function returns the task state. 652 652 */ … … 661 661 /** 662 662 * @brief Capture get task name. 663 * 663 * 664 664 * This function returns the task name. 665 665 * 666 666 * @param[in] task The capture task. 667 * 667 * 668 668 * @retval This function returns the task name. 669 669 */ … … 678 678 /** 679 679 * @brief Capture get task flags. 680 * 680 * 681 681 * This function returns the task flags. 682 682 * 683 683 * @param[in] task The capture task. 684 * 684 * 685 685 * @retval This function returns the task flags. 686 686 */ … … 693 693 /** 694 694 * @brief Capture get task control 695 * 695 * 696 696 * This function returns the task control if present. 697 697 * 698 698 * @param[in] task The capture task. 699 * 699 * 700 700 * @retval This function returns the task control if present. 701 701 */ … … 708 708 /** 709 709 * @brief Capture get task control flags. 710 * 710 * 711 711 * This function returns the task control flags if a control is present. 712 712 * 713 713 * @param[in] task The capture task. 714 * 714 * 715 715 * @retval This function returns the task control flags if a control is present. 716 716 */ … … 726 726 /** 727 727 * @brief Capture get task start priority. 728 * 728 * 729 729 * This function returns the tasks start priority. The tracer needs this 730 730 * to track where the task's priority goes. 731 731 * 732 732 * @param[in] task The capture task. 733 * 733 * 734 734 * @retval This function returns the tasks start priority. The tracer needs this 735 735 * to track where the task's priority goes. … … 745 745 /** 746 746 * @brief Capture get task real priority. 747 * 747 * 748 748 * This function returns the tasks real priority. 749 749 * 750 750 * @param[in] task The capture task. 751 * 751 * 752 752 * @retval This function returns the tasks real priority. 753 753 */ … … 760 760 /** 761 761 * @brief Capture get task current priority. 762 * 762 * 763 763 * This function returns the tasks current priority. 764 764 * 765 765 * @param[in] task The capture task. 766 * 766 * 767 767 * @retval This function returns the tasks current priority. 768 768 */ … … 787 787 /** 788 788 * @brief Capture get next capture control. 789 * 789 * 790 790 * This function returns the pointer to the next control in the list. The 791 791 * pointer NULL terminates the list. 792 792 * 793 793 * @param[in] control the current capture control. 794 * 794 * 795 795 * @retval This function returns the pointer to the next control in the list. The 796 796 * pointer NULL terminates the list. … … 804 804 /** 805 805 * @brief Capture get capture control id. 806 * 806 * 807 807 * This function returns the control id. 808 808 * 809 809 * @param[in] control the capture control. 810 * 810 * 811 811 * @retval This function returns the control id. 812 812 */ … … 930 930 * 931 931 * This function returns the control @a by task id 932 * 932 * 933 933 * @retval This function returns the control @a by task id. 934 934 */ -
cpukit/libmisc/capture/capture_buffer.c
r66bf2af2 rc577500 85 85 buffer->count = buffer->count + size; 86 86 87 return ptr; 87 return ptr; 88 88 } 89 89 90 void *rtems_capture_buffer_free( rtems_capture_buffer_t* buffer, size_t size ) 90 void *rtems_capture_buffer_free( rtems_capture_buffer_t* buffer, size_t size ) 91 91 { 92 92 static void *ptr; … … 113 113 buffer->tail = next; 114 114 } 115 115 116 116 return ptr; 117 117 } -
cpukit/libmisc/capture/capture_buffer.h
r66bf2af2 rc577500 80 80 } 81 81 82 static inline void *rtems_capture_buffer_peek( rtems_capture_buffer_t* buffer, size_t *size ) 82 static inline void *rtems_capture_buffer_peek( rtems_capture_buffer_t* buffer, size_t *size ) 83 83 { 84 84 if (rtems_capture_buffer_is_empty(buffer)) { 85 *size = 0; 85 *size = 0; 86 86 return NULL; 87 87 } 88 88 89 if ( buffer->tail > buffer->head) 89 if ( buffer->tail > buffer->head) 90 90 *size = buffer->end - buffer->tail; 91 91 else -
cpukit/libmisc/capture/capture_user_extension.c
r66bf2af2 rc577500 6 6 Chris Johns (ccj@acm.org) 7 7 8 COPYRIGHT (c) 1989-20 09.8 COPYRIGHT (c) 1989-2014. 9 9 On-Line Applications Research Corporation (OAR). 10 10 … … 19 19 20 20 This is the Capture Engine component. 21 rtems_status_code rtems_capture_user_extension_open(void);22 rtems_status_code rtems_capture_user_extension_close(void);23 24 25 21 */ 26 22 … … 44 40 static rtems_id capture_id; 45 41 46 static bool 47 rtems_capture_create_task (rtems_tcb* current_task, 42 static bool 43 rtems_capture_create_task (rtems_tcb* current_task, 48 44 rtems_tcb* new_task); 49 45 … … 96 92 if (rtems_capture_filter( tcb, events) ) 97 93 return; 98 94 99 95 if (!rtems_capture_task_recorded (tcb)) 100 96 rtems_capture_record_task (tcb); … … 144 140 * been created before the capture engine was open. Add them. 145 141 */ 146 147 142 if (!rtems_capture_task_initialized (ct)) 148 143 rtems_capture_initialize_task (ct); … … 177 172 rtems_capture_initialize_task (ct); 178 173 179 if (st == NULL)174 if (st != NULL) 180 175 rtems_capture_initialize_task (st); 181 176 … … 198 193 * been created before the capture engine was open. Add them. 199 194 */ 200 201 195 if (!rtems_capture_task_initialized (ct)) 202 196 rtems_capture_initialize_task (ct); … … 303 297 { 304 298 rtems_capture_time_t time; 305 306 299 if (!rtems_capture_task_initialized (ct)) 307 300 rtems_capture_initialize_task (ct); -
cpukit/libmisc/capture/captureimpl.h
r66bf2af2 rc577500 2 2 * @file rtems/captureimpl.h 3 3 * 4 * @brief Capture Implementation file 4 * @brief Capture Implementation file 5 5 * 6 6 * This file contains an interface between the capture engine and … … 62 62 * 63 63 * This function is used to set the extension index 64 * for the capture engine. 64 * for the capture engine. 65 65 * 66 66 * @param[in] index specifies the extension index to be … … 87 87 * @retval This method returns the global capture 88 88 * flags. 89 * 89 * 90 90 */ 91 91 uint32_t rtems_capture_get_flags(void); … … 139 139 140 140 /** 141 * @brief Capture append to record 141 * @brief Capture append to record 142 142 * 143 143 * This function Capture appends data to a capture record. It should … … 151 151 * @retval This method returns a pointer which is used as a marker 152 152 * for the next location in the capture record. it should only be 153 * used as input into rtems_capture_append_to_record or 153 * used as input into rtems_capture_append_to_record or 154 154 * rtems_capture_end_add_record. 155 155 */ 156 static void *rtems_capture_append_to_record(void* rec, 156 static void *rtems_capture_append_to_record(void* rec, 157 157 void* data, 158 158 size_t size ); … … 168 168 * 169 169 * @retval This method returns true if this data should be 170 * filtered from the log. It returns false if this data 170 * filtered from the log. It returns false if this data 171 171 * should be logged. 172 172 */ … … 194 194 * This function appends data of a specifed size into a capture record. 195 195 * 196 * @param[in] rec specifies the next write point in the capture record 196 * @param[in] rec specifies the next write point in the capture record 197 197 * @param[in] data specifies the data to write 198 198 * @param[in] size specifies the size of the data … … 200 200 * @retval This method returns the next write point in the capture record. 201 201 */ 202 static inline void *rtems_capture_append_to_record(void* rec, 202 static inline void *rtems_capture_append_to_record(void* rec, 203 203 void* data, 204 204 size_t size ) … … 236 236 * @brief Capture record open. 237 237 * 238 * This function allocates a record and fills in the 238 * This function allocates a record and fills in the 239 239 * header information. It does a lock acquire 240 * which will remain in effect until 240 * which will remain in effect until 241 241 * rtems_capture_record_close is called. This method 242 242 * should only be used by rtems_capture_begin_add_record. … … 257 257 * @brief Capture record close. 258 258 * 259 * This function closes writing to capure record and 259 * This function closes writing to capure record and 260 260 * releases the lock that was held on the record. This 261 261 * method should only be used by rtems_capture_end_add_record. … … 265 265 */ 266 266 void rtems_capture_record_close( void *rec, rtems_interrupt_lock_context* lock_context); 267 267 268 268 269 /**
Note: See TracChangeset
for help on using the changeset viewer.