<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-06-22)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-06-22 Joel Sherrill <joel.sherrill@oarcorp.com>

        * Makefile.am, configure.ac: Add test case for sleep - blocking.
        * psxtmsleep02/.cvsignore, psxtmsleep02/Makefile.am,
        psxtmsleep02/init.c, psxtmsleep02/psxtmsleep02.doc: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/ChangeLog.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</td><td width='100%'>testsuites/psxtmtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/Makefile.am.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>testsuites/psxtmtests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/configure.ac.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>testsuites/psxtmtests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmsleep02/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtmtests/psxtmsleep02/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmsleep02/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtmtests/psxtmsleep02/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmsleep02/init.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtmtests/psxtmsleep02/init.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmsleep02/psxtmsleep02.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/psxtmtests/psxtmsleep02/psxtmsleep02.doc</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtmtests/ChangeLog:1.9 rtems/testsuites/psxtmtests/ChangeLog:1.10
--- rtems/testsuites/psxtmtests/ChangeLog:1.9   Mon Jun 13 22:22:32 2011
+++ rtems/testsuites/psxtmtests/ChangeLog       Wed Jun 22 15:53:33 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-06-22    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * Makefile.am, configure.ac: Add test case for sleep - blocking.
+       * psxtmsleep02/.cvsignore, psxtmsleep02/Makefile.am,
+       psxtmsleep02/init.c, psxtmsleep02/psxtmsleep02.doc: New files.
+
</font> 2011-06-13        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * psxtmsleep01/Makefile.in: Removed.

<font color='#006600'>diff -u rtems/testsuites/psxtmtests/Makefile.am:1.2 rtems/testsuites/psxtmtests/Makefile.am:1.3
--- rtems/testsuites/psxtmtests/Makefile.am:1.2 Mon Jun 13 14:28:56 2011
+++ rtems/testsuites/psxtmtests/Makefile.am     Wed Jun 22 15:53:33 2011
</font><font color='#997700'>@@ -5,10 +5,11 @@
</font> ACLOCAL_AMFLAGS = -I ../aclocal
 
 if HAS_POSIX
<font color='#880000'>-SUBDIRS = \
-    psxtmmutex02 \
-    psxtmsleep01 \
-    psxtmthread01 psxtmthread03
</font><font color='#000088'>+SUBDIRS = psxtmmutex02
+SUBDIRS += psxtmsleep01
+SUBDIRS += psxtmsleep02
+SUBDIRS += psxtmthread01
+SUBDIRS += psxtmthread03
</font> endif
 
 DIST_SUBDIRS = $(SUBDIRS)

<font color='#006600'>diff -u rtems/testsuites/psxtmtests/configure.ac:1.4 rtems/testsuites/psxtmtests/configure.ac:1.5
--- rtems/testsuites/psxtmtests/configure.ac:1.4        Mon Jun 13 14:28:56 2011
+++ rtems/testsuites/psxtmtests/configure.ac    Wed Jun 22 15:53:33 2011
</font><font color='#997700'>@@ -81,6 +81,7 @@
</font> AC_CONFIG_FILES([Makefile
 psxtmmutex02/Makefile
 psxtmsleep01/Makefile
<font color='#000088'>+psxtmsleep02/Makefile
</font> psxtmthread01/Makefile
 psxtmthread03/Makefile
 ])

<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtmtests/psxtmsleep02/.cvsignore:1.1
--- /dev/null   Wed Jun 22 16:17:30 2011
+++ rtems/testsuites/psxtmtests/psxtmsleep02/.cvsignore Wed Jun 22 15:53:33 2011
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtmtests/psxtmsleep02/Makefile.am:1.1
--- /dev/null   Wed Jun 22 16:17:30 2011
+++ rtems/testsuites/psxtmtests/psxtmsleep02/Makefile.am        Wed Jun 22 15:53:33 2011
</font><font color='#997700'>@@ -0,0 +1,30 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = psxtmsleep02
+psxtmsleep02_SOURCES = init.c ../../tmtests/include/timesys.h \
+    ../../support/src/tmtests_empty_function.c \
+    ../../support/src/tmtests_support.c
+
+dist_rtems_tests_DATA = psxtmsleep02.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+OPERATION_COUNT = @OPERATION_COUNT@
+AM_CPPFLAGS += -I$(top_srcdir)/../tmtests/include
+AM_CPPFLAGS += -DOPERATION_COUNT=$(OPERATION_COUNT)
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(psxtmsleep02_OBJECTS) $(psxtmsleep02_LDADD)
+LINK_LIBS = $(psxtmsleep02_LDLIBS)
+
+psxtmsleep02$(EXEEXT): $(psxtmsleep02_OBJECTS) $(psxtmsleep02_DEPENDENCIES)
+       @rm -f psxtmsleep02$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtmtests/psxtmsleep02/init.c:1.1
--- /dev/null   Wed Jun 22 16:17:30 2011
+++ rtems/testsuites/psxtmtests/psxtmsleep02/init.c     Wed Jun 22 15:53:33 2011
</font><font color='#997700'>@@ -0,0 +1,87 @@
</font><font color='#000088'>+/*
+ *  COPYRIGHT (c) 1989-2011.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <timesys.h>
+#include <rtems/timerdrv.h>
+#include "test_support.h"
+
+#include <pthread.h>
+
+void *Low(
+  void *argument
+)
+{
+  long end_time;
+
+  end_time = benchmark_timer_read();
+
+  put_time(
+    "sleep - blocking",
+    end_time,
+    OPERATION_COUNT,
+    0,
+    0
+  );
+
+  puts( "*** END OF POSIX TIME TEST sleep - blocking ***" );
+
+  rtems_test_exit( 0 );
+  return NULL;
+}
+
+void *Middle(
+  void *argument
+)
+{
+  sleep(1);
+  return NULL;
+}
+
+void *POSIX_Init(
+  void *argument
+)
+{
+  int        i;
+  int        status;
+  pthread_t  threadId;
+
+  puts( "\n\n*** POSIX TIME TEST sleep - blocking ***" );
+
+  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
+    status = pthread_create( &threadId, NULL, Middle, NULL );
+    rtems_test_assert( !status );
+  }
+<span style="background-color: #FF0000">  </span>
+  status = pthread_create( &threadId, NULL, Low, NULL );
+  rtems_test_assert( !status );
+
+  /* start the timer and switch through all the other tasks */
+  benchmark_timer_initialize();
+  sleep(1);
+  return NULL;
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS     OPERATION_COUNT + 2
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+  /* end of file */
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/psxtmtests/psxtmsleep02/psxtmsleep02.doc:1.1
--- /dev/null   Wed Jun 22 16:17:30 2011
+++ rtems/testsuites/psxtmtests/psxtmsleep02/psxtmsleep02.doc   Wed Jun 22 15:53:33 2011
</font><font color='#997700'>@@ -0,0 +1,14 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  COPYRIGHT (c) 1989-2011.
+#  On-Line Applications Research Corporation (OAR).
+#
+#  The license and distribution terms for this file may be
+#  found in the file LICENSE in this distribution or at
+#  http://www.rtems.com/license/LICENSE.
+#
+
+This test benchmarks the following operations:
+
++ sleep - blocking
</font></pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-06-22 Joel Sherrill <joel.sherrill@oarcorp.com>

        * psxtmtests_plan.csv: Update.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/ChangeLog.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>testsuites/psxtmtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtmtests/psxtmtests_plan.csv.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>testsuites/psxtmtests/psxtmtests_plan.csv</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtmtests/ChangeLog:1.10 rtems/testsuites/psxtmtests/ChangeLog:1.11
--- rtems/testsuites/psxtmtests/ChangeLog:1.10  Wed Jun 22 15:53:33 2011
+++ rtems/testsuites/psxtmtests/ChangeLog       Wed Jun 22 15:54:34 2011
</font><font color='#997700'>@@ -1,5 +1,9 @@
</font> 2011-06-22        Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#000088'>+   * psxtmtests_plan.csv: Update.
+
+2011-06-22     Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font>   * Makefile.am, configure.ac: Add test case for sleep - blocking.
        * psxtmsleep02/.cvsignore, psxtmsleep02/Makefile.am,
        psxtmsleep02/init.c, psxtmsleep02/psxtmsleep02.doc: New files.

<font color='#006600'>diff -u rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.4 rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.5
--- rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.4 Mon Jun 13 14:28:56 2011
+++ rtems/testsuites/psxtmtests/psxtmtests_plan.csv     Wed Jun 22 15:54:34 2011
</font><font color='#997700'>@@ -112,7 +112,7 @@
</font> "sem_post - thread waiting, preempt",,,
 "sem_getvalue",,"psxtmtest_single",
 ,,,
<font color='#880000'>-"sleep - yield","psxsleep01","psxtmtest_single","Yes"
-"sleep - blocking","psxsleep02","psxtmtest_blocking",
-"nanosleep - yield","psxnanosleep01","psxtmtest_single",
-"nanosleep - blocking","psxnanosleep02","psxtmtest_blocking",
</font><font color='#000088'>+"sleep - yield","psxtmsleep01","psxtmtest_single","Yes"
+"sleep - blocking","psxtmsleep02","psxtmtest_blocking","Yes"
+"nanosleep - yield","psxtmnanosleep01","psxtmtest_single",
+"nanosleep - blocking","psxtmnanosleep02","psxtmtest_blocking",
</font></pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>