Changeset 74a6b33f in rtems


Ignore:
Timestamp:
03/17/23 14:52:33 (3 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ddafdfe
Parents:
3353d3f3
git-author:
Sebastian Huber <sebastian.huber@…> (03/17/23 14:52:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/17/23 14:55:39)
Message:

validation: Replace enum Event with defines

There is a Doxygen limitation that all compound names (enum, struct,
class, union, group) within a project must be unique.

Update #3716.

Location:
testsuites/validation
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • testsuites/validation/tc-event-performance.c

    r3353d3f3 r74a6b33f  
    108108  RtemsEventValPerf_Instance;
    109109
     110#define EVENT_END RTEMS_EVENT_0
     111
     112#define EVENT_OTHER RTEMS_EVENT_1
     113
    110114typedef RtemsEventValPerf_Context Context;
    111 
    112 typedef enum {
    113   EVENT_END = RTEMS_EVENT_0,
    114   EVENT_OTHER = RTEMS_EVENT_1
    115 } Event;
    116115
    117116static void Send( const Context *ctx, rtems_event_set events )
  • testsuites/validation/tc-message-performance.c

    r3353d3f3 r74a6b33f  
    122122#define MAXIMUM_MESSAGE_SIZE 8
    123123
     124#define EVENT_END RTEMS_EVENT_0
     125
     126#define EVENT_SEND RTEMS_EVENT_1
     127
     128#define EVENT_SEND_END RTEMS_EVENT_2
     129
     130#define EVENT_RECEIVE RTEMS_EVENT_3
     131
     132#define EVENT_RECEIVE_END RTEMS_EVENT_4
     133
    124134typedef RtemsMessageValPerf_Context Context;
    125 
    126 typedef enum {
    127   EVENT_END = RTEMS_EVENT_0,
    128   EVENT_SEND = RTEMS_EVENT_1,
    129   EVENT_SEND_END = RTEMS_EVENT_2,
    130   EVENT_RECEIVE = RTEMS_EVENT_3,
    131   EVENT_RECEIVE_END = RTEMS_EVENT_4
    132 } Event;
    133135
    134136static RTEMS_MESSAGE_QUEUE_BUFFER( MAXIMUM_MESSAGE_SIZE )
  • testsuites/validation/tc-ratemon-timeout.c

    r3353d3f3 r74a6b33f  
    281281};
    282282
     283#define EVENT_RESET RTEMS_EVENT_0
     284
     285#define EVENT_PERIOD_WAIT RTEMS_EVENT_1
     286
     287#define EVENT_PERIOD_OTHER RTEMS_EVENT_2
     288
    283289typedef RtemsRatemonReqTimeout_Context Context;
    284 
    285 typedef enum {
    286   EVENT_RESET = RTEMS_EVENT_0,
    287   EVENT_PERIOD_WAIT = RTEMS_EVENT_1,
    288   EVENT_PERIOD_OTHER = RTEMS_EVENT_2
    289 } Event;
    290290
    291291static void Tick( void *arg )
  • testsuites/validation/tc-sched-smp.c

    r3353d3f3 r74a6b33f  
    306306  ScoreSchedSmpValSmp_Instance;
    307307
     308#define EVENT_OBTAIN RTEMS_EVENT_0
     309
     310#define EVENT_RELEASE RTEMS_EVENT_1
     311
     312#define EVENT_STICKY_OBTAIN RTEMS_EVENT_2
     313
     314#define EVENT_STICKY_RELEASE RTEMS_EVENT_3
     315
     316#define EVENT_SYNC_RUNNER RTEMS_EVENT_4
     317
     318#define EVENT_BUSY RTEMS_EVENT_5
     319
    308320typedef ScoreSchedSmpValSmp_Context Context;
    309321
    310 typedef enum {
    311   EVENT_OBTAIN = RTEMS_EVENT_0,
    312   EVENT_RELEASE = RTEMS_EVENT_1,
    313   EVENT_STICKY_OBTAIN = RTEMS_EVENT_2,
    314   EVENT_STICKY_RELEASE = RTEMS_EVENT_3,
    315   EVENT_SYNC_RUNNER = RTEMS_EVENT_4,
    316   EVENT_BUSY = RTEMS_EVENT_5
    317 } Event;
    318 
    319 static void SendAndSync( Context *ctx, WorkerIndex worker, Event event )
     322static void SendAndSync(
     323  Context        *ctx,
     324  WorkerIndex     worker,
     325  rtems_event_set event
     326)
    320327{
    321328  SendEvents( ctx->worker_id[ worker ], EVENT_SYNC_RUNNER | event );
  • testsuites/validation/tc-scheduler-remove-processor.c

    r3353d3f3 r74a6b33f  
    378378
    379379#if defined(RTEMS_SMP)
    380 typedef enum {
    381   EVENT_SYNC_RUNNER = RTEMS_EVENT_0,
    382   EVENT_OBTAIN = RTEMS_EVENT_1,
    383   EVENT_RELEASE = RTEMS_EVENT_2,
    384   EVENT_STICKY_OBTAIN = RTEMS_EVENT_3,
    385   EVENT_STICKY_RELEASE = RTEMS_EVENT_4,
    386   EVENT_RESTART = RTEMS_EVENT_5,
    387   EVENT_BUSY = RTEMS_EVENT_6,
    388   EVENT_SYNC_RUNNER_LATE = RTEMS_EVENT_7
    389 } Event;
     380
     381#define EVENT_SYNC_RUNNER RTEMS_EVENT_0
     382
     383#define EVENT_OBTAIN RTEMS_EVENT_1
     384
     385#define EVENT_RELEASE RTEMS_EVENT_2
     386
     387#define EVENT_STICKY_OBTAIN RTEMS_EVENT_3
     388
     389#define EVENT_STICKY_RELEASE RTEMS_EVENT_4
     390
     391#define EVENT_RESTART RTEMS_EVENT_5
     392
     393#define EVENT_BUSY RTEMS_EVENT_6
     394
     395#define EVENT_SYNC_RUNNER_LATE RTEMS_EVENT_7
    390396
    391397static void Barriers( void *arg )
     
    414420}
    415421
    416 static void SendAndSync( Context *ctx, WorkerIndex worker, Event event )
     422static void SendAndSync(
     423  Context        *ctx,
     424  WorkerIndex     worker,
     425  rtems_event_set event
     426)
    417427{
    418428  SendEvents( ctx->worker_id[ worker ], EVENT_SYNC_RUNNER | event );
  • testsuites/validation/tc-score-smp-thread.c

    r3353d3f3 r74a6b33f  
    160160  ScoreThreadValSmp_Instance;
    161161
     162#define EVENT_OBTAIN RTEMS_EVENT_0
     163
     164#define EVENT_RELEASE RTEMS_EVENT_1
     165
     166#define EVENT_COUNT_EARLY RTEMS_EVENT_2
     167
     168#define EVENT_BUSY RTEMS_EVENT_3
     169
     170#define EVENT_COUNT RTEMS_EVENT_4
     171
     172#define EVENT_LET_WORKER_C_COUNT RTEMS_EVENT_5
     173
     174#define EVENT_SET_TASK_SWITCH_EXTENSION RTEMS_EVENT_6
     175
    162176typedef ScoreThreadValSmp_Context Context;
    163 
    164 typedef enum {
    165   EVENT_OBTAIN = RTEMS_EVENT_0,
    166   EVENT_RELEASE = RTEMS_EVENT_1,
    167   EVENT_COUNT_EARLY = RTEMS_EVENT_2,
    168   EVENT_BUSY = RTEMS_EVENT_3,
    169   EVENT_COUNT = RTEMS_EVENT_4,
    170   EVENT_LET_WORKER_C_COUNT = RTEMS_EVENT_5,
    171   EVENT_SET_TASK_SWITCH_EXTENSION = RTEMS_EVENT_6
    172 } Event;
    173177
    174178static void TaskSwitchExtension( rtems_tcb *executing, rtems_tcb *heir )
  • testsuites/validation/tc-score-thread-smp-one-cpu.c

    r3353d3f3 r74a6b33f  
    9898  ScoreThreadValSmpOneCpu_Instance;
    9999
     100#define EVENT_COUNT RTEMS_EVENT_0
     101
    100102typedef ScoreThreadValSmpOneCpu_Context Context;
    101 
    102 typedef enum {
    103   EVENT_COUNT = RTEMS_EVENT_0
    104 } Event;
    105103
    106104static void WorkerTask( rtems_task_argument arg )
  • testsuites/validation/tc-sem-performance.c

    r3353d3f3 r74a6b33f  
    113113  RtemsSemValPerf_Instance;
    114114
     115#define EVENT_END RTEMS_EVENT_0
     116
     117#define EVENT_OBTAIN RTEMS_EVENT_1
     118
     119#define EVENT_OBTAIN_END RTEMS_EVENT_2
     120
     121#define EVENT_RELEASE RTEMS_EVENT_3
     122
     123#define EVENT_RELEASE_END RTEMS_EVENT_4
     124
    115125typedef RtemsSemValPerf_Context Context;
    116 
    117 typedef enum {
    118   EVENT_END = RTEMS_EVENT_0,
    119   EVENT_OBTAIN = RTEMS_EVENT_1,
    120   EVENT_OBTAIN_END = RTEMS_EVENT_2,
    121   EVENT_RELEASE = RTEMS_EVENT_3,
    122   EVENT_RELEASE_END = RTEMS_EVENT_4
    123 } Event;
    124126
    125127static void Send( const Context *ctx, rtems_event_set events )
  • testsuites/validation/tc-task-performance.c

    r3353d3f3 r74a6b33f  
    114114  RtemsTaskValPerf_Instance;
    115115
     116#define EVENT_RESTART RTEMS_EVENT_0
     117
     118#define EVENT_SET_END RTEMS_EVENT_1
     119
     120#define EVENT_BUSY RTEMS_EVENT_2
     121
    116122typedef RtemsTaskValPerf_Context Context;
    117 
    118 enum {
    119   EVENT_RESTART = RTEMS_EVENT_0,
    120   EVENT_SET_END = RTEMS_EVENT_1,
    121   EVENT_BUSY = RTEMS_EVENT_2
    122 } Event;
    123123
    124124RTEMS_ALIGNED( RTEMS_TASK_STORAGE_ALIGNMENT ) static char task_storage[
Note: See TracChangeset for help on using the changeset viewer.