Changeset 82fbd35 in rtems for testsuites/support


Ignore:
Timestamp:
Jun 21, 2010, 4:54:17 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
e247b1af
Parents:
f63801a2
Message:

2010-06-21 Joel Sherrill <joel.sherrill@…>

  • support/include/test_support.h, support/src/tmtests_empty_function.c: Add helper so it is easier to write a basic repeated operation tmtest.
  • support/src/tmtests_support.c: New file.
Location:
testsuites/support
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/support/include/test_support.h

    rf63801a2 r82fbd35  
    4747void rtems_test_spin_until_next_tick( void );
    4848
     49/*********************************************************************/
     50/*********************************************************************/
     51/**************              TMTEST SUPPORT             **************/
     52/*********************************************************************/
     53/*********************************************************************/
     54
     55/*
     56 *  Type of method used for timing operations
     57 */
     58typedef void (*rtems_time_test_method_t)(
     59  int    iteration,
     60  void  *argument
     61);
     62
     63/*
     64 *  Obtain baseline timing information for benchmark tests.
     65 */
     66void rtems_time_test_measure_operation(
     67  const char               *description,
     68  rtems_time_test_method_t  operation,
     69  void                     *argument,
     70  int                       iterations,
     71  int                       overhead
     72);
     73
    4974#ifdef __cplusplus
    5075};
  • testsuites/support/src/tmtests_empty_function.c

    rf63801a2 r82fbd35  
    2121  return RTEMS_SUCCESSFUL;
    2222}
     23
     24void benchmark_timer_empty_operation(
     25  int    iteration,
     26  void  *argument
     27)
     28{
     29}
Note: See TracChangeset for help on using the changeset viewer.