<!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-testing (2011-07-20)</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-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxtmtest_blocking/init.c: Add template for POSIX timing test of
unblocking operation with no preemption.
* psxtmtest_unblocking_nopreempt/Makefile.am,
psxtmtest_unblocking_nopreempt/TEST.doc,
psxtmtest_unblocking_nopreempt/init.c: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/ChangeLog.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>rtems-test-template/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/psxtmtest_blocking/init.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>rtems-test-template/psxtmtest_blocking/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/psxtmtest_unblocking_nopreempt/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">rtems-test-template/psxtmtest_unblocking_nopreempt/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/psxtmtest_unblocking_nopreempt/TEST.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">rtems-test-template/psxtmtest_unblocking_nopreempt/TEST.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/psxtmtest_unblocking_nopreempt/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">rtems-test-template/psxtmtest_unblocking_nopreempt/init.c</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems-testing/rtems-test-template/ChangeLog:1.15 rtems-testing/rtems-test-template/ChangeLog:1.16
--- rtems-testing/rtems-test-template/ChangeLog:1.15 Tue Jul 12 08:20:03 2011
+++ rtems-testing/rtems-test-template/ChangeLog Wed Jul 20 15:48:26 2011
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2011-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * psxtmtest_blocking/init.c: Add template for POSIX timing test of
+ unblocking operation with no preemption.
+ * psxtmtest_unblocking_nopreempt/Makefile.am,
+ psxtmtest_unblocking_nopreempt/TEST.doc,
+ psxtmtest_unblocking_nopreempt/init.c: New files.
+
</font> 2011-07-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxtmtest_single/init.c: Fix operation count and move timing to
<font color='#006600'>diff -u rtems-testing/rtems-test-template/psxtmtest_blocking/init.c:1.3 rtems-testing/rtems-test-template/psxtmtest_blocking/init.c:1.4
--- rtems-testing/rtems-test-template/psxtmtest_blocking/init.c:1.3 Thu Jun 30 17:26:16 2011
+++ rtems-testing/rtems-test-template/psxtmtest_blocking/init.c Wed Jul 20 15:48:26 2011
</font><font color='#997700'>@@ -36,7 +36,7 @@
</font> 0
);
<font color='#880000'>- puts( "*** END OF POSIX TIME TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "*** END OF POSIX TIME TEST @TESTNUM@ ***" );
</font>
rtems_test_exit( 0 );
return NULL;
<font color='#997700'>@@ -58,7 +58,7 @@
</font> int status;
pthread_t threadId;
<font color='#880000'>- puts( "\n\n*** POSIX TIME TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "\n\n*** POSIX TIME TEST @TESTNUM@ ***" );
</font>
for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
status = pthread_create( &threadId, NULL, Middle, NULL );
<font color='#006600'>diff -u /dev/null rtems-testing/rtems-test-template/psxtmtest_unblocking_nopreempt/Makefile.am:1.1
--- /dev/null Wed Jul 20 16:10:04 2011
+++ rtems-testing/rtems-test-template/psxtmtest_unblocking_nopreempt/Makefile.am Wed Jul 20 15:48:26 2011
</font><font color='#997700'>@@ -0,0 +1,30 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = @LOWER@
+@LOWER@_SOURCES = init.c ../../tmtests/include/timesys.h \
+ ../../support/src/tmtests_empty_function.c \
+ ../../support/src/tmtests_support.c
+
+dist_rtems_tests_DATA = @LOWER@.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 = $(@LOWER@_OBJECTS) $(@LOWER@_LDADD)
+LINK_LIBS = $(@LOWER@_LDLIBS)
+
+@LOWER@$(EXEEXT): $(@LOWER@_OBJECTS) $(@LOWER@_DEPENDENCIES)
+ @rm -f @LOWER@$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems-testing/rtems-test-template/psxtmtest_unblocking_nopreempt/TEST.doc:1.1
--- /dev/null Wed Jul 20 16:10:04 2011
+++ rtems-testing/rtems-test-template/psxtmtest_unblocking_nopreempt/TEST.doc Wed Jul 20 15:48:26 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:
+
++ @DESC@
</font>
<font color='#006600'>diff -u /dev/null rtems-testing/rtems-test-template/psxtmtest_unblocking_nopreempt/init.c:1.1
--- /dev/null Wed Jul 20 16:10:04 2011
+++ rtems-testing/rtems-test-template/psxtmtest_unblocking_nopreempt/init.c Wed Jul 20 15:48:26 2011
</font><font color='#997700'>@@ -0,0 +1,113 @@
</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 <coverhd.h>
+#include <tmacros.h>
+#include <timesys.h>
+#include "test_support.h"
+#include <pthread.h>
+#include <sched.h>
+#include <rtems/timerdrv.h>
+
+pthread_mutex_t MutexId;
+
+void *Blockers(
+ void *argument
+)
+{
+ int status;
+
+ /*
+ * Now we have finished the thread startup overhead,
+ * so let other threads run. When we return, we can
+ * finish the benchmark.
+ */
+ sched_yield();
+ /* let other threads run */
+
+ status = pthread_mutex_lock( &MutexId );
+ rtems_test_assert( status == 0 );
+
+ return NULL;
+}
+
+void *POSIX_Init(
+ void *argument
+)
+{
+ int i;
+ int status;
+ pthread_t threadId;
+ long end_time;
+
+ puts( "\n\n*** POSIX TIME TEST MUTEX @TESTNUM@ ***" );
+
+ for ( i=0 ; i < OPERATION_COUNT ; i++ ) {
+ status = pthread_create( &threadId, NULL, Blockers, NULL );
+ rtems_test_assert( status == 0 );
+ }
+<span style="background-color: #FF0000"> </span>
+ /*
+ * Deliberately create the XXX after the threads. This way if the
+ * threads do run before we intend, they will get an error.
+ */
+ status = 0; /* XXX create the resource */
+ rtems_test_assert( status == 0 );
+
+ /*
+ * Ensure the mutex is unavailable so the other threads block.
+ */
+ status = 0; /* XXX ensure the resource is unavailable so the threads block */
+ rtems_test_assert( status == 0 );
+
+ /*
+ * Let the other threads start so the thread startup overhead,
+ * is accounted for. When we return, we can start the benchmark.
+ */
+ sched_yield();
+ /* let other threads run */
+
+ benchmark_timer_initialize();
+ status = 0; /* XXX release the resource */
+ end_time = benchmark_timer_read();
+ rtems_test_assert( status == 0 );
+
+ put_time(
+ "@DESC@",
+ end_time,
+ OPERATION_COUNT,
+ 0,
+ 0
+ );
+
+ puts( "*** END OF POSIX TIME TEST MUTEX @TESTNUM@ ***" );
+ rtems_test_exit( 0 );
+
+ return NULL;
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS OPERATION_COUNT + 1
+/* XXX configure one of the resources */
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+ /* end of file */
</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-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* mktest: Add option to put test number in.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/cvs-helpers/ChangeLog.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>cvs-helpers/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/cvs-helpers/mktest.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>cvs-helpers/mktest</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems-testing/cvs-helpers/ChangeLog:1.15 rtems-testing/cvs-helpers/ChangeLog:1.16
--- rtems-testing/cvs-helpers/ChangeLog:1.15 Fri Jan 28 12:21:20 2011
+++ rtems-testing/cvs-helpers/ChangeLog Wed Jul 20 15:48:43 2011
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2011-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * mktest: Add option to put test number in.
+
</font> 2011-01-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* cvscommit: Now running Go tests on PowerPC (2/3 passing) and i386 (in
<font color='#006600'>diff -u rtems-testing/cvs-helpers/mktest:1.5 rtems-testing/cvs-helpers/mktest:1.6
--- rtems-testing/cvs-helpers/mktest:1.5 Mon Aug 2 08:14:03 2010
+++ rtems-testing/cvs-helpers/mktest Wed Jul 20 15:48:43 2011
</font><font color='#997700'>@@ -25,7 +25,7 @@
</font>
usage()
{
<font color='#880000'>- echo "$progname -s SOURCE -d DEST -D description [-v]"
</font><font color='#000088'>+ echo "$progname -s SOURCE -d DEST -D description -n NUMBER [-v]"
</font> echo " OR"
echo "$progname -c -d DEST"
cat <<EOF
<font color='#997700'>@@ -40,14 +40,16 @@
</font> source=
dest=
desc=
<font color='#000088'>+testNum=
</font> verbose=no
<font color='#880000'>-while getopts cd:D:s:v OPT
</font><font color='#000088'>+while getopts cd:D:s:n:v OPT
</font> do
case "$OPT" in<span style="background-color: #FF0000"> </span>
c) addToCVS=`toggle ${addToCVS}` ;;
d) dest=$OPTARG ;;<span style="background-color: #FF0000"> </span>
D) desc=$OPTARG ;;<span style="background-color: #FF0000"> </span>
s) source=$OPTARG ;;<span style="background-color: #FF0000"> </span>
<font color='#000088'>+ n) testNum=$OPTARG ;;<span style="background-color: #FF0000"> </span>
</font> v) verbose=`toggle ${verbose}` ;;
*) usage ;;
esac
<font color='#997700'>@@ -77,6 +79,8 @@
</font> check_status $? No source provided
test -d "${source}"<span style="background-color: #FF0000"> </span>
check_status $? Source directory not present<span style="background-color: #FF0000"> </span>
<font color='#000088'>+test "X${testNum}" != "X"
+check_status $? No test number provided
</font>
test ! -d ${dest}/CVS
check_status $? "Are you sure about ${dest}? Already a CVS directory in it"
<font color='#997700'>@@ -106,6 +110,7 @@
</font> sed -e "s/@LOWER@/${dest}/g" \
-e "s/@UPPER@/${destCaps}/g" \
-e "s/@DESC@/${desc}/g" \
<font color='#000088'>+ -e "s/@TESTNUM@/${testNum}/g" \
</font> <${s} >${d}
check_status $? "Unable to process ${d}"
fi
</pre>
<p> </p>
<a name='cs3'></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-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* gdb-sim-run.in: Add option to skip critical section tests.
* pc386.in: Default to core2duo CPU.
* rtems-gdb-macros-4.11: Update to 4.11.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/sim-scripts/ChangeLog.diff?r1=text&tr1=1.98&r2=text&tr2=1.99&diff_format=h">M</a></td><td width='1%'>1.99</td><td width='100%'>sim-scripts/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/sim-scripts/gdb-sim-run.in.diff?r1=text&tr1=1.54&r2=text&tr2=1.55&diff_format=h">M</a></td><td width='1%'>1.55</td><td width='100%'>sim-scripts/gdb-sim-run.in</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/sim-scripts/pc386.in.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>sim-scripts/pc386.in</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/sim-scripts/rtems-gdb-macros-4.11.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>sim-scripts/rtems-gdb-macros-4.11</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems-testing/sim-scripts/ChangeLog:1.98 rtems-testing/sim-scripts/ChangeLog:1.99
--- rtems-testing/sim-scripts/ChangeLog:1.98 Mon Mar 14 09:40:14 2011
+++ rtems-testing/sim-scripts/ChangeLog Wed Jul 20 15:49:47 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * gdb-sim-run.in: Add option to skip critical section tests.
+ * pc386.in: Default to core2duo CPU.
+ * rtems-gdb-macros-4.11: Update to 4.11.
+
</font> 2011-03-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* gdb-sim-run.in: Add another generic failure message.
<font color='#006600'>diff -u rtems-testing/sim-scripts/gdb-sim-run.in:1.54 rtems-testing/sim-scripts/gdb-sim-run.in:1.55
--- rtems-testing/sim-scripts/gdb-sim-run.in:1.54 Mon Mar 14 09:40:14 2011
+++ rtems-testing/sim-scripts/gdb-sim-run.in Wed Jul 20 15:49:47 2011
</font><font color='#997700'>@@ -32,6 +32,7 @@
</font> -G -- put simulator in GDB server mode (default=no)
-i -- interactive (default=no time limit)
-s -- force System V IPC support (default=no)
<font color='#000088'>+ -S -- skip Interrupt Critical Section Tests (default=no)
</font> -l limit -- specify time limit (default is 'BSP dependent')
-L dir -- specify log directory (default is 'log')
-T -- rtems-test command mode
<font color='#997700'>@@ -88,8 +89,9 @@
</font> enable_display_adapter="no"
enable_network="no"
rtems_test="no"
<font color='#000088'>+skipIntrCriticalTest="no"
</font>
<font color='#880000'>-while getopts "vcCgGil:L:DsNT" OPT
</font><font color='#000088'>+while getopts "vcCgGil:L:DsSNT" OPT
</font> do
case "$OPT" in
v) verbose="yes";;
<font color='#997700'>@@ -103,6 +105,7 @@
</font> l) defaultLimit="$OPTARG";;
L) logdir="$OPTARG";;
s) use_sysv_ipc="yes";;
<font color='#000088'>+ S) skipIntrCriticalTest="yes";;
</font> t) doTrace="yes";;
T) rtems_test="yes";;
*) fatal;;
<font color='#997700'>@@ -409,20 +412,30 @@
</font>
## If the test is known to be interactive or locks up and we are
## in batch mode, skip it.
<font color='#880000'>- case ${toRun} in
</font><font color='#000088'>+ case ${baseToRun} in
</font> monitor*|termios.*|fileio*|capture*)
<font color='#880000'>- warn "skipping interactive ${toRun}"
</font><font color='#000088'>+ warn "skipping interactive ${baseToRun}"
+ continue
+ ;;
+ spintrcritical*|psxintrcritical*)
+ if [ ${skipIntrCriticalTest} = "yes" ] ; then
+ warn "skipping Interrupt Critical Section test ${baseToRun}"
+ continue
+ fi
+ ;;
+ appstart*)
+ warn "skipping intermediate file ${baseToRun}"
</font> continue
;;
*-node2*)
fatal "MP tests not supported"
<font color='#880000'>- warn "Skipping ${toRun}; 'runtest' runs both nodes when for *-node1"
</font><font color='#000088'>+ warn "Skipping ${baseToRun}; 'runtest' runs both nodes when for *-node1"
</font> continue;;
*-node1*)
<font color='#880000'>- warn "Running both nodes associated with ${toRun}"
</font><font color='#000088'>+ warn "Running both nodes associated with ${baseToRun}"
</font> ;;
pppd*)
<font color='#880000'>- warn "skipping long running ${toRun}"
</font><font color='#000088'>+ warn "skipping long running ${baseToRun}"
</font> continue
;;
esac
<font color='#006600'>diff -u rtems-testing/sim-scripts/pc386.in:1.12 rtems-testing/sim-scripts/pc386.in:1.13
--- rtems-testing/sim-scripts/pc386.in:1.12 Sun Mar 13 17:17:11 2011
+++ rtems-testing/sim-scripts/pc386.in Wed Jul 20 15:49:47 2011
</font><font color='#997700'>@@ -59,8 +59,9 @@
</font> # -cpu 486
# can also redirect to file with file:log/"`basename ${1} .exe`
SERIAL_ARG="stdio"
<font color='#880000'>- echo "-m 512 -boot a -cpu 486 -fda ${fd0Image} -hda fat:${hd0Dir} ${COVERAGE_ARG} \
- -monitor null -nographic -serial ${SERIAL_ARG} --no-reboot"
</font><font color='#000088'>+ echo "-m 512 -boot a -cpu core2duo \
+ -fda ${fd0Image} -hda fat:${hd0Dir} ${COVERAGE_ARG} \
+ -monitor null -nographic -serial ${SERIAL_ARG} --no-reboot"
</font> }
checkBSPFaults()
<font color='#006600'>diff -u rtems-testing/sim-scripts/rtems-gdb-macros-4.11:1.1 rtems-testing/sim-scripts/rtems-gdb-macros-4.11:1.2
--- rtems-testing/sim-scripts/rtems-gdb-macros-4.11:1.1 Fri Jun 4 14:32:36 2010
+++ rtems-testing/sim-scripts/rtems-gdb-macros-4.11 Wed Jul 20 15:49:47 2011
</font><font color='#997700'>@@ -55,7 +55,7 @@
</font> # rtems_check_state
#
<font color='#880000'>-echo Loading GDB Macro Package for RTEMS 4.10...\n
</font><font color='#000088'>+echo Loading GDB Macro Package for RTEMS 4.11...\n
</font>
#############################################################################
######## Public Helper Macros ########
<font color='#997700'>@@ -317,8 +317,8 @@
</font> set $queues = &$tq->Queues
while $pri_index < $limit
set $chain = &$queues.Priority[$pri_index]
<font color='#880000'>- set $ptail = &$chain->permanent_null
- set $next = $chain->first
</font><font color='#000088'>+ set $ptail = &$chain->Head.fill
+ set $next = $chain->Head.Node.next
</font> while $next != $ptail
set $t = (struct Thread_Control_struct *)$next
printf "0x%08x@%d ", $t->Object.id, $t->current_priority
<font color='#997700'>@@ -392,8 +392,8 @@
</font> # arg0 = pointer to Watchdog delta chain
#
define rtems_helper_score_watchdog_chain
<font color='#880000'>- set $permt = &$arg0.permanent_null
- set $node = $arg0.first
</font><font color='#000088'>+ set $permt = &$arg0.Tail.Node
+ set $node = $arg0.Head.Node.next
</font>
if $node == $permt
printf "Empty\n"
<font color='#997700'>@@ -908,10 +908,11 @@
</font> #
# ARGUMENTS: NONE
#
<font color='#880000'>-# TODO: For 4.6, check object information table for non-NULL
</font><font color='#000088'>+# TODO: NONE
</font> define rtems_tasks
<font color='#880000'>- printf "Executing: 0x%x, Heir: 0x%x\n", _Thread_Executing->Object.id, \
- _Thread_Heir.Object.id
</font><font color='#000088'>+ printf "Executing: 0x%x, Heir: 0x%x\n", \
+ _Per_CPU[0].executing->Object.id, \
+ _Per_CPU[0].heir.Object.id
</font> printf "================================================================\n"
printf "Internal Tasks\n"
rtems_helper_show_tasks _Thread_Internal_information
</pre>
<p> </p>
<a name='cs4'></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-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxtest/init.c, psxtest_with_thread/init.c, psxtmtest_single/init.c,
smptest/init.c, sptest/init.c, sptest_operation_from_tsr/init.c,
sptest_with_task/init.c, tmtest/init.c: Switch to @TESTNUM@ for start
and ending message.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/ChangeLog.diff?r1=text&tr1=1.16&r2=text&tr2=1.17&diff_format=h">M</a></td><td width='1%'>1.17</td><td width='100%'>rtems-test-template/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/psxtest/init.c.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%'>rtems-test-template/psxtest/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/psxtest_with_thread/init.c.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%'>rtems-test-template/psxtest_with_thread/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/psxtmtest_single/init.c.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%'>rtems-test-template/psxtmtest_single/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/smptest/init.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>rtems-test-template/smptest/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/sptest/init.c.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%'>rtems-test-template/sptest/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/sptest_operation_from_tsr/init.c.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%'>rtems-test-template/sptest_operation_from_tsr/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/sptest_with_task/init.c.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%'>rtems-test-template/sptest_with_task/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems-testing/rtems-test-template/tmtest/init.c.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%'>rtems-test-template/tmtest/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems-testing/rtems-test-template/ChangeLog:1.16 rtems-testing/rtems-test-template/ChangeLog:1.17
--- rtems-testing/rtems-test-template/ChangeLog:1.16 Wed Jul 20 15:48:26 2011
+++ rtems-testing/rtems-test-template/ChangeLog Wed Jul 20 15:51:46 2011
</font><font color='#997700'>@@ -1,5 +1,12 @@
</font> 2011-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#000088'>+ * psxtest/init.c, psxtest_with_thread/init.c, psxtmtest_single/init.c,
+ smptest/init.c, sptest/init.c, sptest_operation_from_tsr/init.c,
+ sptest_with_task/init.c, tmtest/init.c: Switch to @TESTNUM@ for start
+ and ending message.
+
+2011-07-20 Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font> * psxtmtest_blocking/init.c: Add template for POSIX timing test of
unblocking operation with no preemption.
* psxtmtest_unblocking_nopreempt/Makefile.am,
<font color='#006600'>diff -u rtems-testing/rtems-test-template/psxtest/init.c:1.2 rtems-testing/rtems-test-template/psxtest/init.c:1.3
--- rtems-testing/rtems-test-template/psxtest/init.c:1.2 Wed Jun 22 15:53:23 2011
+++ rtems-testing/rtems-test-template/psxtest/init.c Wed Jul 20 15:51:46 2011
</font><font color='#997700'>@@ -16,11 +16,11 @@
</font> rtems_task_argument argument
)
{
<font color='#880000'>- puts( "\n\n*** POSIX TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "\n\n*** POSIX TEST @TESTNUM@ ***" );
</font>
/* XXX test code goes here */
<font color='#880000'>- puts( "*** END OF POSIX TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "*** END OF POSIX TEST @TESTNUM@ ***" );
</font>
rtems_test_exit(0);
}
<font color='#006600'>diff -u rtems-testing/rtems-test-template/psxtest_with_thread/init.c:1.2 rtems-testing/rtems-test-template/psxtest_with_thread/init.c:1.3
--- rtems-testing/rtems-test-template/psxtest_with_thread/init.c:1.2 Wed Jun 22 15:53:23 2011
+++ rtems-testing/rtems-test-template/psxtest_with_thread/init.c Wed Jul 20 15:51:46 2011
</font><font color='#997700'>@@ -28,12 +28,12 @@
</font> {
int status;
<font color='#880000'>- puts( "\n\n*** POSIX TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "\n\n*** POSIX TEST @TESTNUM@ ***" );
</font>
status = pthread_create( &ThreadId, NULL, TestThread, NULL );
rtems_test_assert( !status );
<font color='#880000'>- puts( "*** END OF POSIX TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "*** END OF POSIX TEST @TESTNUM@ ***" );
</font>
rtems_test_exit(0);
}
<font color='#006600'>diff -u rtems-testing/rtems-test-template/psxtmtest_single/init.c:1.4 rtems-testing/rtems-test-template/psxtmtest_single/init.c:1.5
--- rtems-testing/rtems-test-template/psxtmtest_single/init.c:1.4 Tue Jul 12 08:20:03 2011
+++ rtems-testing/rtems-test-template/psxtmtest_single/init.c Wed Jul 20 15:51:46 2011
</font><font color='#997700'>@@ -43,13 +43,13 @@
</font> )
{
<font color='#880000'>- puts( "\n\n*** POSIX TIME TEST @UPPER@ ***" );
</font><font color='#000088'>+ puts( "\n\n*** POSIX TIME TEST @TESTNUMR@ ***" );
</font>
/* XXX any required initialization goes here */
benchmark_NAME_OF_OPERATION();
<font color='#880000'>- puts( "*** END OF POSIX TIME TEST @UPPER@ ***" );
</font><font color='#000088'>+ puts( "*** END OF POSIX TIME TEST @TESTNUMR@ ***" );
</font>
rtems_test_exit(0);
}
<font color='#006600'>diff -u rtems-testing/rtems-test-template/smptest/init.c:1.1 rtems-testing/rtems-test-template/smptest/init.c:1.2
--- rtems-testing/rtems-test-template/smptest/init.c:1.1 Mon Jun 13 14:28:14 2011
+++ rtems-testing/rtems-test-template/smptest/init.c Wed Jul 20 15:51:46 2011
</font><font color='#997700'>@@ -29,7 +29,7 @@
</font> rtems_id id;
rtems_status_code status;
<font color='#880000'>- puts( "\n\n*** TEST @UPPER@ ***" );
</font><font color='#000088'>+ puts( "\n\n*** TEST @TESTNUM@ ***" );
</font>
for ( i=0; i<_SMP_Processor_count-1; i++ ) {
ch = '1' + i;
<font color='#997700'>@@ -53,7 +53,7 @@
</font>
/* XXX something goes here */
<font color='#880000'>- puts( "*** END OF TEST @UPPER@ ***" );
</font><font color='#000088'>+ puts( "*** END OF TEST @TESTNUM@ ***" );
</font> rtems_test_exit(0);
}
<font color='#006600'>diff -u rtems-testing/rtems-test-template/sptest/init.c:1.2 rtems-testing/rtems-test-template/sptest/init.c:1.3
--- rtems-testing/rtems-test-template/sptest/init.c:1.2 Wed Jun 22 15:53:24 2011
+++ rtems-testing/rtems-test-template/sptest/init.c Wed Jul 20 15:51:46 2011
</font><font color='#997700'>@@ -16,11 +16,11 @@
</font> rtems_task_argument argument
)
{
<font color='#880000'>- puts( "\n\n*** TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "\n\n*** TEST @TESTNUM@ ***" );
</font>
/* XXX test code goes here */
<font color='#880000'>- puts( "*** END OF TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "*** END OF TEST @TESTNUM@ ***" );
</font>
rtems_test_exit(0);
}
<font color='#006600'>diff -u rtems-testing/rtems-test-template/sptest_operation_from_tsr/init.c:1.4 rtems-testing/rtems-test-template/sptest_operation_from_tsr/init.c:1.5
--- rtems-testing/rtems-test-template/sptest_operation_from_tsr/init.c:1.4 Wed Jun 22 15:53:24 2011
+++ rtems-testing/rtems-test-template/sptest_operation_from_tsr/init.c Wed Jul 20 15:51:46 2011
</font><font color='#997700'>@@ -31,7 +31,7 @@
</font> rtems_status_code status;
rtems_id timer;
<font color='#880000'>- puts( "\n\n*** TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "\n\n*** TEST @TESTNUM@ ***" );
</font>
/*
* Timer used in multiple ways
<font color='#997700'>@@ -68,7 +68,7 @@
</font> /* XXX also may be able to confirm operation actually was performed */
puts( "Operation from ISR successfully processed" );
<font color='#880000'>- puts( "*** END OF TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "*** END OF TEST @TESTNUM@ ***" );
</font> rtems_test_exit( 0 );
}
<font color='#006600'>diff -u rtems-testing/rtems-test-template/sptest_with_task/init.c:1.2 rtems-testing/rtems-test-template/sptest_with_task/init.c:1.3
--- rtems-testing/rtems-test-template/sptest_with_task/init.c:1.2 Wed Jun 22 15:53:24 2011
+++ rtems-testing/rtems-test-template/sptest_with_task/init.c Wed Jul 20 15:51:46 2011
</font><font color='#997700'>@@ -26,7 +26,7 @@
</font> rtems_status_code status;
rtems_id task_id;
<font color='#880000'>- puts( "\n\n*** TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "\n\n*** TEST @TESTNUM@ ***" );
</font>
status = rtems_task_create(
rtems_build_name( 'T', 'E', 'S', 'T' ),
<font color='#997700'>@@ -41,7 +41,7 @@
</font> status = rtems_task_start( task_id, Test_task, 0 );
directive_failed( status, "rtems_task_start" );
<font color='#880000'>- puts( "*** END OF TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "*** END OF TEST @TESTNUM@ ***" );
</font>
rtems_test_exit(0);
}
<font color='#006600'>diff -u rtems-testing/rtems-test-template/tmtest/init.c:1.2 rtems-testing/rtems-test-template/tmtest/init.c:1.3
--- rtems-testing/rtems-test-template/tmtest/init.c:1.2 Wed Jun 22 15:53:24 2011
+++ rtems-testing/rtems-test-template/tmtest/init.c Wed Jul 20 15:51:46 2011
</font><font color='#997700'>@@ -18,11 +18,11 @@
</font> rtems_task_argument argument
)
{
<font color='#880000'>- puts( "\n\n*** TIME TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "\n\n*** TIME TEST @TESTNUM@ ***" );
</font>
/* XXX test code goes here */
<font color='#880000'>- puts( "*** END OF TIME TEST @DESC@ ***" );
</font><font color='#000088'>+ puts( "*** END OF TIME TEST @TESTNUM@ ***" );
</font>
rtems_test_exit(0);
}
</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>