mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
testsuites/psxtmtests/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
This commit is contained in:
committed by
Gedare Bloom
parent
60ed3d6ed2
commit
5cd78b4330
@@ -96,6 +96,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
/* creating barrier with default properties */
|
||||
|
||||
@@ -55,6 +55,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -85,6 +87,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
/*
|
||||
* Now we have finished the thread startup overhead,
|
||||
* so let other threads run. When we return, we can
|
||||
@@ -104,6 +108,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -54,6 +54,8 @@ void *Blocker(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
(void) pthread_barrier_wait( &barrier );
|
||||
rtems_test_assert( FALSE );
|
||||
return NULL;
|
||||
@@ -63,6 +65,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
@@ -54,6 +54,8 @@ void *Blocker(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/* block on barrier wait, switch back to first thread */
|
||||
@@ -78,6 +80,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
int policy;
|
||||
|
||||
@@ -132,6 +132,7 @@ static void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ int status = 1;
|
||||
|
||||
static void routine(void *arg)
|
||||
{
|
||||
(void) arg;
|
||||
}
|
||||
|
||||
static void benchmark_pthread_cleanup_push_pull(void)
|
||||
@@ -86,6 +87,7 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
struct timespec sleepTime;
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
end_time = benchmark_timer_read();
|
||||
@@ -71,6 +73,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
/* calling nanosleep */
|
||||
struct timespec sleepTime;
|
||||
sleepTime.tv_sec = 0;
|
||||
@@ -85,6 +89,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -49,6 +49,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
end_time = benchmark_timer_read();
|
||||
@@ -71,6 +73,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
/* calling nanosleep */
|
||||
struct timespec sleepTime;
|
||||
sleepTime.tv_sec = 0;
|
||||
@@ -90,6 +94,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -88,6 +88,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
benchmark_create_cond_var();
|
||||
|
||||
@@ -69,6 +69,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
pthread_cond_init(&CondID, NULL);
|
||||
|
||||
@@ -50,6 +50,8 @@ void *Blocker(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
status = pthread_mutex_lock(&MutexID);
|
||||
@@ -68,6 +70,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
uint32_t end_time;
|
||||
|
||||
@@ -50,6 +50,7 @@ void *Blocker(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
uint32_t end_time;
|
||||
struct sched_param param;
|
||||
@@ -83,6 +84,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -52,6 +52,8 @@ void *Blocker(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
status = pthread_mutex_lock(&MutexID);
|
||||
@@ -70,6 +72,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
uint32_t end_time;
|
||||
int status;
|
||||
int i;
|
||||
|
||||
@@ -52,6 +52,8 @@ void *Blocker(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
@@ -80,6 +82,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
int i;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -85,6 +85,7 @@ static void benchmark_pthread_key_delete(void)
|
||||
|
||||
void *POSIX_Init(void *argument)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -87,6 +87,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
@@ -279,6 +279,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
/* create the first message queue READWRITE */
|
||||
benchmark_mq_open(1);
|
||||
|
||||
@@ -45,6 +45,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
int oflag= O_CREAT |O_RDWR;
|
||||
@@ -80,6 +82,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
sched_yield();
|
||||
|
||||
/* let other threads run */
|
||||
@@ -93,6 +97,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
sched_yield();
|
||||
|
||||
@@ -59,6 +59,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
int oflag = O_CREAT |O_RDWR;
|
||||
@@ -97,6 +99,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
sched_yield();
|
||||
|
||||
/* let other threads run */
|
||||
@@ -111,6 +115,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
sched_yield();
|
||||
|
||||
@@ -85,6 +85,7 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -54,6 +54,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -84,6 +86,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/*
|
||||
@@ -104,6 +108,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -192,6 +192,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
@@ -51,6 +51,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -81,6 +83,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/*
|
||||
@@ -101,6 +105,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -49,6 +49,8 @@ void *Blocker(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
(void) pthread_mutex_lock( &MutexId );
|
||||
/* should never return */
|
||||
rtems_test_assert( FALSE );
|
||||
@@ -60,6 +62,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
@@ -54,6 +54,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
@@ -79,6 +81,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
status = pthread_mutex_lock( &MutexId );
|
||||
@@ -98,6 +102,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -89,6 +89,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
@@ -48,6 +48,8 @@ pthread_mutex_t MutexId;
|
||||
|
||||
void *Low( void *argument )
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -76,6 +78,8 @@ void *Low( void *argument )
|
||||
|
||||
void *Middle( void *argument )
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/*
|
||||
@@ -94,6 +98,8 @@ void *Middle( void *argument )
|
||||
|
||||
void *POSIX_Init( void *argument )
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -255,6 +255,7 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
struct timespec sleepTime;
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
end_time = benchmark_timer_read();
|
||||
@@ -69,6 +71,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
/* calling nanosleep */
|
||||
struct timespec sleepTime;
|
||||
sleepTime.tv_sec = 0;
|
||||
@@ -83,6 +87,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -66,6 +66,7 @@ static void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
benchmark_first_time();
|
||||
|
||||
@@ -284,6 +284,7 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -50,6 +50,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -80,6 +82,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/*
|
||||
@@ -100,6 +104,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -51,6 +51,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -81,6 +83,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/*
|
||||
@@ -102,6 +106,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -50,6 +50,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -80,6 +82,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/*
|
||||
@@ -101,6 +105,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -51,6 +51,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -81,6 +83,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/*
|
||||
@@ -103,6 +107,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -49,6 +49,8 @@ void *Blocker(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
(void) pthread_rwlock_wrlock(&rwlock);
|
||||
/* should never return */
|
||||
rtems_test_assert( FALSE );
|
||||
@@ -60,6 +62,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
@@ -50,6 +50,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
@@ -76,6 +78,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/* write locking */
|
||||
@@ -97,6 +101,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -48,6 +48,8 @@ struct timespec abstime;
|
||||
|
||||
void *Low( void *argument )
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -76,6 +78,8 @@ void *Low( void *argument )
|
||||
|
||||
void *Middle( void *argument )
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/*
|
||||
@@ -95,6 +99,8 @@ void *Middle( void *argument )
|
||||
|
||||
void *POSIX_Init( void *argument )
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
@@ -155,4 +161,4 @@ void *POSIX_Init( void *argument )
|
||||
#define CONFIGURE_INIT
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
/* end of file */
|
||||
/* end of file */
|
||||
|
||||
@@ -48,6 +48,8 @@ struct timespec abstime;
|
||||
|
||||
void *Low( void *argument )
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -76,6 +78,8 @@ void *Low( void *argument )
|
||||
|
||||
void *Middle( void *argument )
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
/*
|
||||
@@ -96,6 +100,8 @@ void *Middle( void *argument )
|
||||
|
||||
void *POSIX_Init( void *argument )
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
@@ -153,4 +159,4 @@ void *POSIX_Init( void *argument )
|
||||
#define CONFIGURE_INIT
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
/* end of file */
|
||||
/* end of file */
|
||||
|
||||
@@ -184,6 +184,7 @@ static void benchmark_sem_close_second(void)
|
||||
|
||||
void *POSIX_Init(void *argument)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -145,6 +145,8 @@ static void benchmark_sem_trywait_not_available(void)
|
||||
|
||||
void *POSIX_Init(void *argument)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -89,6 +91,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
/*
|
||||
* Now we have finished the thread startup overhead,
|
||||
* so let other threads run. When we return, we can
|
||||
@@ -106,6 +110,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -53,6 +53,8 @@ sem_t *n_sem1;
|
||||
|
||||
void *Blocker( void *argument)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
(void) sem_wait(&sem1);
|
||||
/* should never return */
|
||||
rtems_test_assert( FALSE );
|
||||
@@ -62,6 +64,8 @@ void *Blocker( void *argument)
|
||||
|
||||
void *POSIX_Init(void *argument)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
@@ -55,6 +55,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
@@ -80,6 +82,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
status = sem_wait(&sem1); /* semaphore blocks */
|
||||
@@ -101,6 +105,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -45,6 +45,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
@@ -47,6 +47,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
end_time = benchmark_timer_read();
|
||||
@@ -69,6 +71,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
sleep(1);
|
||||
return NULL;
|
||||
}
|
||||
@@ -77,6 +81,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -52,6 +52,8 @@ void *TestThread(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -61,6 +63,9 @@ static void benchmark_pthread_create(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) iteration;
|
||||
(void) argument;
|
||||
|
||||
int status;
|
||||
|
||||
status = pthread_create( &ThreadId, NULL, TestThread, NULL );
|
||||
@@ -71,6 +76,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
rtems_time_test_measure_operation(
|
||||
|
||||
@@ -72,6 +72,8 @@ void *thread(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
uint32_t end_time;
|
||||
|
||||
end_time = benchmark_timer_read();
|
||||
@@ -89,6 +91,7 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -48,6 +48,8 @@ void *Low(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
benchmark_timer_t end_time;
|
||||
|
||||
/*
|
||||
@@ -77,6 +79,8 @@ void *Middle(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
/*
|
||||
* Now we have finished the thread startup overhead,
|
||||
* so let other threads run. When we return, we can
|
||||
@@ -93,6 +97,8 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
int i;
|
||||
int status;
|
||||
pthread_t threadId;
|
||||
|
||||
@@ -95,6 +95,7 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
|
||||
@@ -72,6 +72,8 @@ void *test_thread(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
uint32_t end_time;
|
||||
|
||||
sched_yield();
|
||||
@@ -95,6 +97,7 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
benchmark_pthread_setschedparam();
|
||||
|
||||
@@ -71,6 +71,8 @@ void *test_thread(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
uint32_t end_time;
|
||||
|
||||
/* switch to POSIX_Init */
|
||||
@@ -96,6 +98,7 @@ void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
benchmark_pthread_setschedparam();
|
||||
|
||||
@@ -384,6 +384,8 @@ static void *POSIX_Init(
|
||||
void *argument
|
||||
)
|
||||
{
|
||||
(void) argument;
|
||||
|
||||
TEST_BEGIN();
|
||||
|
||||
benchmark_create_pthread_attr();
|
||||
|
||||
Reference in New Issue
Block a user