change log for rtems (2011-07-19)
rtems-vc at rtems.org
rtems-vc at rtems.org
Tue Jul 19 13:10:17 UTC 2011
*joel*:
2011-07-19 Ricardo Aguirre <el.mastin at ymail.com>
PR 1840/tests
* Makefile.am, configure.ac, psxtmtests_plan.csv: Add benchmark of key
set and get.
* psxtmkey02/.cvsignore, psxtmkey02/Makefile.am, psxtmkey02/init.c,
psxtmkey02/psxtmkey02.doc: New files.
M 1.21 testsuites/psxtmtests/ChangeLog
M 1.8 testsuites/psxtmtests/Makefile.am
M 1.11 testsuites/psxtmtests/configure.ac
A 1.1 testsuites/psxtmtests/psxtmkey02/.cvsignore
A 1.1 testsuites/psxtmtests/psxtmkey02/Makefile.am
A 1.1 testsuites/psxtmtests/psxtmkey02/init.c
A 1.1 testsuites/psxtmtests/psxtmkey02/psxtmkey02.doc
M 1.12 testsuites/psxtmtests/psxtmtests_plan.csv
diff -u rtems/testsuites/psxtmtests/ChangeLog:1.20 rtems/testsuites/psxtmtests/ChangeLog:1.21
--- rtems/testsuites/psxtmtests/ChangeLog:1.20 Mon Jul 18 08:59:59 2011
+++ rtems/testsuites/psxtmtests/ChangeLog Tue Jul 19 08:04:19 2011
@@ -1,3 +1,11 @@
+2011-07-19 Ricardo Aguirre <el.mastin at ymail.com>
+
+ PR 1840/tests
+ * Makefile.am, configure.ac, psxtmtests_plan.csv: Add benchmark of key
+ set and get.
+ * psxtmkey02/.cvsignore, psxtmkey02/Makefile.am, psxtmkey02/init.c,
+ psxtmkey02/psxtmkey02.doc: New files.
+
2011-07-18 Jennifer Averett <Jennifer.Averett at OARcorp.com>
* configure.ac: Remove psxtmmutex04 until PR 1836 is processed.
diff -u rtems/testsuites/psxtmtests/Makefile.am:1.7 rtems/testsuites/psxtmtests/Makefile.am:1.8
--- rtems/testsuites/psxtmtests/Makefile.am:1.7 Fri Jul 15 14:33:48 2011
+++ rtems/testsuites/psxtmtests/Makefile.am Tue Jul 19 08:04:19 2011
@@ -7,6 +7,7 @@
SUBDIRS =
if HAS_POSIX
+SUBDIRS += psxtmkey02
SUBDIRS += psxtmmutex01
SUBDIRS += psxtmmutex02
SUBDIRS += psxtmmutex03
diff -u rtems/testsuites/psxtmtests/configure.ac:1.10 rtems/testsuites/psxtmtests/configure.ac:1.11
--- rtems/testsuites/psxtmtests/configure.ac:1.10 Mon Jul 18 08:59:59 2011
+++ rtems/testsuites/psxtmtests/configure.ac Tue Jul 19 08:04:20 2011
@@ -79,6 +79,7 @@
# Explicitly list all Makefiles here
AC_CONFIG_FILES([Makefile
+psxtmkey02/Makefile
psxtmmutex01/Makefile
psxtmmutex02/Makefile
psxtmmutex03/Makefile
diff -u /dev/null rtems/testsuites/psxtmtests/psxtmkey02/.cvsignore:1.1
--- /dev/null Tue Jul 19 08:10:16 2011
+++ rtems/testsuites/psxtmtests/psxtmkey02/.cvsignore Tue Jul 19 08:04:20 2011
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff -u /dev/null rtems/testsuites/psxtmtests/psxtmkey02/Makefile.am:1.1
--- /dev/null Tue Jul 19 08:10:16 2011
+++ rtems/testsuites/psxtmtests/psxtmkey02/Makefile.am Tue Jul 19 08:04:20 2011
@@ -0,0 +1,30 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = psxtmkey02
+psxtmkey02_SOURCES = init.c ../../tmtests/include/timesys.h \
+ ../../support/src/tmtests_empty_function.c \
+ ../../support/src/tmtests_support.c
+
+dist_rtems_tests_DATA = psxtmkey02.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .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 = $(psxtmkey02_OBJECTS) $(psxtmkey02_LDADD)
+LINK_LIBS = $(psxtmkey02_LDLIBS)
+
+psxtmkey02$(EXEEXT): $(psxtmkey02_OBJECTS) $(psxtmkey02_DEPENDENCIES)
+ @rm -f psxtmkey02$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
diff -u /dev/null rtems/testsuites/psxtmtests/psxtmkey02/init.c:1.1
--- /dev/null Tue Jul 19 08:10:16 2011
+++ rtems/testsuites/psxtmtests/psxtmkey02/init.c Tue Jul 19 08:04:20 2011
@@ -0,0 +1,99 @@
+/*
+ * 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 <errno.h>
+#include <pthread.h>
+#include "test_support.h"
+
+pthread_key_t Key;
+int Value1;
+
+void benchmark_pthread_setspecific( void *value_p )
+{
+ long end_time;
+ int status;
+
+ benchmark_timer_initialize();
+ status = pthread_setspecific( Key, value_p );
+ end_time = benchmark_timer_read();
+ rtems_test_assert( status == 0 );
+
+ put_time(
+ "pthread_setspecific",
+ end_time,
+ 1, /* Only executed once */
+ 0,
+ 0
+ );
+
+}
+
+void benchmark_pthread_getspecific( void *expected )
+{
+ long end_time;
+ void *value_p;
+
+ benchmark_timer_initialize();
+ value_p = pthread_getspecific( Key );
+ end_time = benchmark_timer_read();
+ rtems_test_assert( value_p == expected );
+
+ put_time(
+ "pthread_getspecific",
+ end_time,
+ 1, /* Only executed once */
+ 0,
+ 0
+ );
+}
+
+void *POSIX_Init(
+ void *argument
+)
+{
+ int status;
+
+ puts( "\n\n*** POSIX TIME TEST PSXTMKEY02 ***" );
+
+ /* create the key */
+ status = pthread_key_create( &Key, NULL );
+ rtems_test_assert( status == 0 );
+
+ benchmark_pthread_getspecific( NULL );
+ benchmark_pthread_setspecific( &Value1 );
+ benchmark_pthread_getspecific( &Value1 );
+
+ /* destroy the key */
+ status = pthread_key_delete( Key );
+ rtems_test_assert( status == 0 );
+
+ puts( "*** END OF POSIX TIME TEST PSXTMKEY02 ***" );
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
+
+#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
+#define CONFIGURE_MAXIMUM_POSIX_KEYS 1
+#define CONFIGURE_POSIX_INIT_THREAD_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */
diff -u /dev/null rtems/testsuites/psxtmtests/psxtmkey02/psxtmkey02.doc:1.1
--- /dev/null Tue Jul 19 08:10:16 2011
+++ rtems/testsuites/psxtmtests/psxtmkey02/psxtmkey02.doc Tue Jul 19 08:04:20 2011
@@ -0,0 +1,16 @@
+#
+# $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:
+
++ pthread_setspecific
++ pthread_getspecific
+
diff -u rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.11 rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.12
--- rtems/testsuites/psxtmtests/psxtmtests_plan.csv:1.11 Fri Jul 15 14:33:48 2011
+++ rtems/testsuites/psxtmtests/psxtmtests_plan.csv Tue Jul 19 08:04:20 2011
@@ -37,8 +37,8 @@
"pthread_once",,,
,,,
"pthread_key_create","psxtmkey01","psxtmtest_init_destroy",
-"pthread_setspecific","psxtmkey02","psxtmtest_single",
-"pthread_getspecific","psxtmkey02","psxtmtest_single",
+"pthread_setspecific","psxtmkey02","psxtmtest_single","Yes"
+"pthread_getspecific","psxtmkey02","psxtmtest_single","Yes"
"pthread_key_delete","psxtmkey01","psxtmtest_init_destroy",
,,,
"pthread_cancel",,,
*sh*:
2011-07-19 Sebastian Huber <sebastian.huber at embedded-brains.de>
* rtems/src/msgqcreate.c: Make packet size check consistent with
_Message_queue_MP_Send_request_packet().
M 1.2880 cpukit/ChangeLog
M 1.16 cpukit/rtems/src/msgqcreate.c
diff -u rtems/cpukit/ChangeLog:1.2879 rtems/cpukit/ChangeLog:1.2880
--- rtems/cpukit/ChangeLog:1.2879 Mon Jul 18 10:25:32 2011
+++ rtems/cpukit/ChangeLog Tue Jul 19 07:19:05 2011
@@ -1,3 +1,8 @@
+2011-07-19 Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+ * rtems/src/msgqcreate.c: Make packet size check consistent with
+ _Message_queue_MP_Send_request_packet().
+
2011-07-18 Sebastian Huber <sebastian.huber at embedded-brains.de>
* libnetworking/lib/ftpfs.c: Fixed reply parsing.
diff -u rtems/cpukit/rtems/src/msgqcreate.c:1.15 rtems/cpukit/rtems/src/msgqcreate.c:1.16
--- rtems/cpukit/rtems/src/msgqcreate.c:1.15 Tue Dec 15 12:26:41 2009
+++ rtems/cpukit/rtems/src/msgqcreate.c Tue Jul 19 07:19:05 2011
@@ -66,6 +66,7 @@
CORE_message_queue_Attributes the_msgq_attributes;
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
+ size_t max_packet_payload_size;
#endif
if ( !rtems_is_name_valid( name ) )
@@ -94,7 +95,9 @@
* and then just send smaller msgs from remote (or all) nodes.
*/
- if ( is_global && (_MPCI_table->maximum_packet_size < max_message_size) )
+ max_packet_payload_size = _MPCI_table->maximum_packet_size
+ - sizeof ( Message_queue_MP_Packet );
+ if ( is_global && max_packet_payload_size < max_message_size )
return RTEMS_INVALID_SIZE;
#endif
#endif
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110719/0d35b71f/attachment.html>
More information about the vc
mailing list