diff options
Diffstat (limited to 'testsuites/validation/tc-event-performance.c')
-rw-r--r-- | testsuites/validation/tc-event-performance.c | 59 |
1 files changed, 50 insertions, 9 deletions
diff --git a/testsuites/validation/tc-event-performance.c b/testsuites/validation/tc-event-performance.c index 1baefecea5..9cf71e92f5 100644 --- a/testsuites/validation/tc-event-performance.c +++ b/testsuites/validation/tc-event-performance.c @@ -3,11 +3,11 @@ /** * @file * - * @ingroup RTEMSTestCaseRtemsEventValPerf + * @ingroup RtemsEventValPerf */ /* - * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de) + * Copyright (C) 2021 embedded brains GmbH & Co. KG * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -59,9 +59,9 @@ #include <rtems/test.h> /** - * @defgroup RTEMSTestCaseRtemsEventValPerf spec:/rtems/event/val/perf + * @defgroup RtemsEventValPerf spec:/rtems/event/val/perf * - * @ingroup RTEMSTestSuiteTestsuitesPerformanceNoClock0 + * @ingroup TestsuitesPerformanceNoClock0 * * @brief This test case provides a context to run @ref RTEMSAPIClassicEvent * performance tests. @@ -107,12 +107,11 @@ typedef struct { static RtemsEventValPerf_Context RtemsEventValPerf_Instance; -typedef RtemsEventValPerf_Context Context; +#define EVENT_END RTEMS_EVENT_0 + +#define EVENT_OTHER RTEMS_EVENT_1 -typedef enum { - EVENT_END = RTEMS_EVENT_0, - EVENT_OTHER = RTEMS_EVENT_1 -} Event; +typedef RtemsEventValPerf_Context Context; static void Send( const Context *ctx, rtems_event_set events ) { @@ -211,6 +210,12 @@ static T_fixture RtemsEventValPerf_Fixture = { }; /** + * @defgroup RtemsEventReqPerfIsrPreempt spec:/rtems/event/req/perf-isr-preempt + * + * @{ + */ + +/** * @brief Send two events from with interrupt context. Satisfy the event * condition. */ @@ -260,6 +265,14 @@ static bool RtemsEventReqPerfIsrPreempt_Teardown_Wrap( return RtemsEventReqPerfIsrPreempt_Teardown( ctx, delta, tic, toc, retry ); } +/** @} */ + +/** + * @defgroup RtemsEventReqPerfOther spec:/rtems/event/req/perf-other + * + * @{ + */ + /** * @brief Lower the worker priority. */ @@ -325,8 +338,16 @@ static bool RtemsEventReqPerfOther_Teardown_Wrap( return RtemsEventReqPerfOther_Teardown( ctx, delta, tic, toc, retry ); } +/** @} */ + #if defined(RTEMS_SMP) /** + * @defgroup RtemsEventReqPerfOtherCpu spec:/rtems/event/req/perf-other-cpu + * + * @{ + */ + +/** * @brief Move worker to scheduler B. */ static void RtemsEventReqPerfOtherCpu_Prepare( RtemsEventValPerf_Context *ctx ) @@ -392,9 +413,18 @@ static void RtemsEventReqPerfOtherCpu_Cleanup( RtemsEventValPerf_Context *ctx ) { SetScheduler( ctx->worker_id, SCHEDULER_A_ID, PRIO_HIGH ); } + +/** @} */ #endif /** + * @defgroup RtemsEventReqPerfOtherNotSatisfied \ + * spec:/rtems/event/req/perf-other-not-satisfied + * + * @{ + */ + +/** * @brief Send an event. Do not satisfy the event condition. */ static void RtemsEventReqPerfOtherNotSatisfied_Body( @@ -451,6 +481,15 @@ static bool RtemsEventReqPerfOtherNotSatisfied_Teardown_Wrap( ); } +/** @} */ + +/** + * @defgroup RtemsEventReqPerfOtherPreempt \ + * spec:/rtems/event/req/perf-other-preempt + * + * @{ + */ + /** * @brief Send two events. Satisfy the event condition. */ @@ -503,6 +542,8 @@ static bool RtemsEventReqPerfOtherPreempt_Teardown_Wrap( return RtemsEventReqPerfOtherPreempt_Teardown( ctx, delta, tic, toc, retry ); } +/** @} */ + /** * @fn void T_case_body_RtemsEventValPerf( void ) */ |