Changeset c577500 in rtems


Ignore:
Timestamp:
11/06/14 14:55:32 (9 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
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)
Message:

capture: Remove whitespace and fix copyrights.

Location:
cpukit/libmisc/capture
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/capture/capture-cli.h

    r66bf2af2 rc577500  
    1313  Chris Johns (ccj@acm.org)
    1414
    15   COPYRIGHT (c) 1989-1998.
     15  COPYRIGHT (c) 1989-2014.
    1616  On-Line Applications Research Corporation (OAR).
    1717
  • cpukit/libmisc/capture/capture.h

    r66bf2af2 rc577500  
    1616  Chris Johns (ccj@acm.org)
    1717
    18   COPYRIGHT (c) 1989-1998.
     18  COPYRIGHT (c) 1989-2014
    1919  On-Line Applications Research Corporation (OAR).
    2020
     
    246246 *
    247247 * @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
    250250 *            will be used.
    251251 *
     
    391391 * This function returns the global watch state.
    392392 *
    393  * @retval This method returns true  if the global watch 
     393 * @retval This method returns true  if the global watch
    394394 *         is on.  Otherwise, it returns false.
    395395 */
     
    420420 * This function gets the watch ceiling.
    421421 *
    422  * @retval The priority level immediately above that at which events 
     422 * @retval The priority level immediately above that at which events
    423423 *         from tasks are not captured.
    424424 */
     
    596596/**
    597597 * @brief Capture record task.
    598  * 
     598 *
    599599 * This function records a new capture task record.
    600600 *
     
    618618 * @brief Capture task initialized
    619619 *
    620  * This function returns true if this task information has been 
     620 * This function returns true if this task information has been
    621621 * initialized.
    622622 *
     
    629629/**
    630630 * @brief Capture get task id.
    631  * 
     631 *
    632632 * This function returns the task id.
    633633 *
    634634 * @param[in] task The capture task.
    635  * 
     635 *
    636636 * @retval This function returns the task id.
    637637 */
     
    644644/**
    645645 * @brief Capture get task state.
    646  * 
     646 *
    647647 * This function returns the task state.
    648648 *
    649649 * @param[in] task The capture task.
    650  * 
     650 *
    651651 * @retval This function returns the task state.
    652652 */
     
    661661/**
    662662 * @brief Capture get task name.
    663  * 
     663 *
    664664 * This function returns the task name.
    665665 *
    666666 * @param[in] task The capture task.
    667  * 
     667 *
    668668 * @retval This function returns the task name.
    669669 */
     
    678678/**
    679679 * @brief Capture get task flags.
    680  * 
     680 *
    681681 * This function returns the task flags.
    682682 *
    683683 * @param[in] task The capture task.
    684  * 
     684 *
    685685 * @retval This function returns the task flags.
    686686 */
     
    693693/**
    694694 * @brief Capture get task control
    695  * 
     695 *
    696696 * This function returns the task control if present.
    697697 *
    698698 * @param[in] task The capture task.
    699  * 
     699 *
    700700 * @retval This function returns the task control if present.
    701701 */
     
    708708/**
    709709 * @brief Capture get task control flags.
    710  * 
     710 *
    711711 * This function returns the task control flags if a control is present.
    712712 *
    713713 * @param[in] task The capture task.
    714  * 
     714 *
    715715 * @retval This function returns the task control flags if a control is present.
    716716 */
     
    726726/**
    727727 * @brief Capture get task start priority.
    728  * 
     728 *
    729729 * This function returns the tasks start priority. The tracer needs this
    730730 * to track where the task's priority goes.
    731731 *
    732732 * @param[in] task The capture task.
    733  * 
     733 *
    734734 * @retval This function returns the tasks start priority. The tracer needs this
    735735 * to track where the task's priority goes.
     
    745745/**
    746746 * @brief Capture get task real priority.
    747  * 
     747 *
    748748 * This function returns the tasks real priority.
    749749 *
    750750 * @param[in] task The capture task.
    751  * 
     751 *
    752752 * @retval This function returns the tasks real priority.
    753753 */
     
    760760/**
    761761 * @brief Capture get task current priority.
    762  * 
     762 *
    763763 * This function returns the tasks current priority.
    764764 *
    765765 * @param[in] task The capture task.
    766  * 
     766 *
    767767 * @retval This function returns the tasks current priority.
    768768 */
     
    787787/**
    788788 * @brief Capture get next capture control.
    789  * 
     789 *
    790790 * This function returns the pointer to the next control in the list. The
    791791 * pointer NULL terminates the list.
    792792 *
    793793 * @param[in] control the current capture control.
    794  * 
     794 *
    795795 * @retval This function returns the pointer to the next control in the list. The
    796796 * pointer NULL terminates the list.
     
    804804/**
    805805 * @brief Capture get capture control id.
    806  * 
     806 *
    807807 * This function returns the control id.
    808808 *
    809809 * @param[in] control the capture control.
    810  * 
     810 *
    811811 * @retval This function returns the control id.
    812812 */
     
    930930 *
    931931 * This function returns the control @a by task id
    932  * 
     932 *
    933933 * @retval This function returns the control @a by task id.
    934934 */
  • cpukit/libmisc/capture/capture_buffer.c

    r66bf2af2 rc577500  
    8585  buffer->count = buffer->count + size;
    8686
    87   return ptr; 
     87  return ptr;
    8888}
    8989
    90 void *rtems_capture_buffer_free( rtems_capture_buffer_t* buffer, size_t size ) 
     90void *rtems_capture_buffer_free( rtems_capture_buffer_t* buffer, size_t size )
    9191{
    9292    static void             *ptr;
     
    113113      buffer->tail = next;
    114114    }
    115      
     115
    116116    return ptr;
    117117}
  • cpukit/libmisc/capture/capture_buffer.h

    r66bf2af2 rc577500  
    8080}
    8181
    82 static inline void *rtems_capture_buffer_peek(  rtems_capture_buffer_t* buffer, size_t *size ) 
     82static inline void *rtems_capture_buffer_peek(  rtems_capture_buffer_t* buffer, size_t *size )
    8383{
    8484  if (rtems_capture_buffer_is_empty(buffer)) {
    85     *size = 0; 
     85    *size = 0;
    8686    return NULL;
    8787  }
    8888
    89   if ( buffer->tail > buffer->head) 
     89  if ( buffer->tail > buffer->head)
    9090    *size = buffer->end - buffer->tail;
    9191  else
  • cpukit/libmisc/capture/capture_user_extension.c

    r66bf2af2 rc577500  
    66  Chris Johns (ccj@acm.org)
    77
    8   COPYRIGHT (c) 1989-2009.
     8  COPYRIGHT (c) 1989-2014.
    99  On-Line Applications Research Corporation (OAR).
    1010
     
    1919
    2020  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 
    2521*/
    2622
     
    4440static rtems_id                 capture_id;
    4541
    46 static bool 
    47 rtems_capture_create_task (rtems_tcb* current_task, 
     42static bool
     43rtems_capture_create_task (rtems_tcb* current_task,
    4844                           rtems_tcb* new_task);
    4945
     
    9692  if (rtems_capture_filter( tcb, events) )
    9793    return;
    98  
     94
    9995  if (!rtems_capture_task_recorded (tcb))
    10096    rtems_capture_record_task (tcb);
     
    144140   * been created before the capture engine was open. Add them.
    145141   */
    146 
    147142  if (!rtems_capture_task_initialized (ct))
    148143    rtems_capture_initialize_task (ct);
     
    177172    rtems_capture_initialize_task (ct);
    178173
    179   if (st == NULL)
     174  if (st != NULL)
    180175    rtems_capture_initialize_task (st);
    181176
     
    198193   * been created before the capture engine was open. Add them.
    199194   */
    200 
    201195  if (!rtems_capture_task_initialized (ct))
    202196    rtems_capture_initialize_task (ct);
     
    303297  {
    304298    rtems_capture_time_t time;
    305 
    306299    if (!rtems_capture_task_initialized (ct))
    307300      rtems_capture_initialize_task (ct);
  • cpukit/libmisc/capture/captureimpl.h

    r66bf2af2 rc577500  
    22 * @file rtems/captureimpl.h
    33 *
    4  * @brief Capture Implementation file 
     4 * @brief Capture Implementation file
    55 *
    66 * This file contains an interface between the capture engine and
     
    6262 *
    6363 * This function is used to set the extension index
    64  * for the capture engine. 
     64 * for the capture engine.
    6565 *
    6666 * @param[in] index specifies the extension index to be
     
    8787 * @retval This method returns the global capture
    8888 * flags.
    89  * 
     89 *
    9090 */
    9191uint32_t rtems_capture_get_flags(void);
     
    139139
    140140/**
    141  * @brief Capture append to record 
     141 * @brief Capture append to record
    142142 *
    143143 * This function Capture appends data to a capture record.  It should
     
    151151 * @retval This method returns a pointer which is used as a marker
    152152 * 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
    154154 * rtems_capture_end_add_record.
    155155 */
    156 static void *rtems_capture_append_to_record(void*  rec, 
     156static void *rtems_capture_append_to_record(void*  rec,
    157157                                     void*  data,
    158158                                     size_t size );
     
    168168 *
    169169 * @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
    171171 * should be logged.
    172172 */
     
    194194 * This function appends data of a specifed size into a capture record.
    195195 *
    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
    197197 * @param[in] data specifies the data to write
    198198 * @param[in] size specifies the size of the data
     
    200200 * @retval This method returns the next write point in the capture record.
    201201 */
    202 static inline void *rtems_capture_append_to_record(void*  rec, 
     202static inline void *rtems_capture_append_to_record(void*  rec,
    203203                                                   void*  data,
    204204                                                   size_t size )
     
    236236 * @brief Capture record open.
    237237 *
    238  * This function allocates a record and fills in the 
     238 * This function allocates a record and fills in the
    239239 * header information.  It does a lock acquire
    240  * which will remain in effect until 
     240 * which will remain in effect until
    241241 * rtems_capture_record_close is called.  This method
    242242 * should only be used by rtems_capture_begin_add_record.
     
    257257 * @brief Capture record close.
    258258 *
    259  * This function closes writing to capure record and 
     259 * This function closes writing to capure record and
    260260 * releases the lock that was held on the record. This
    261261 * method should only be used by rtems_capture_end_add_record.
     
    265265 */
    266266void rtems_capture_record_close( void *rec, rtems_interrupt_lock_context* lock_context);
     267
    267268
    268269/**
Note: See TracChangeset for help on using the changeset viewer.