Patch rtems-rc-19991105-3.diff.gz from Ralf Corsepius

<corsepiu@faw.uni-ulm.de> which turns OPERATION_COUNT into a configure
time option.
This commit is contained in:
Joel Sherrill
1999-11-18 13:58:02 +00:00
parent 40fe60a3cb
commit b7852c27b1
34 changed files with 77 additions and 49 deletions

View File

@@ -37,6 +37,9 @@ AC_SUBST(CC_CFLAGS_DEBUG_V)
AC_SUBST(CC_CFLAGS_PROFILE_V)
AC_SUBST(CC_LDFLAGS_PROFILE_V)
OPERATION_COUNT=${OPERATION_COUNT-100}
AC_SUBST(OPERATION_COUNT)
# Try to explicitly list a Makefile here
AC_OUTPUT(
Makefile

View File

@@ -21,15 +21,14 @@
* blocking tasks to determine the execution time of blocking
* services. By default, the blocking time of 100 tasks will
* be measured. Small targets often do not have enough memory
* to create 100 tasks. By setting the BSP_MAXIMUM_OPERATION_COUNT
* to a lower number (typically 10), all of the time tests can be
* run.
* to create 100 tasks. By overriding the default OPERATION_COUNT
* with a lower number (typically 10 or less), all of the time tests
* can usually be run. This is stil not very fine-grained but
* is enough to significantly reduce memory consumption.
*/
#ifndef BSP_MAXIMUM_OPERATION_COUNT
#ifndef OPERATION_COUNT
#define OPERATION_COUNT 100
#else
#define OPERATION_COUNT BSP_MAXIMUM_OPERATION_COUNT
#endif
/*
@@ -41,10 +40,8 @@
* not increase memory usage -- only execution time.
*/
#ifndef BSP_ITERATION_COUNT
#ifndef IT_COUNT
#define IT_COUNT 100
#else
#define IT_COUNT BSP_ITERATION_COUNT
#endif
/* functions */

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
# since we essentially are building an interrupt handler, must use CFLAGS_OS_V

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -44,8 +44,9 @@ PACKHEX = @PACKHEX@
# (OPTIONAL) Add local stuff here using +=
#
OPERATION_COUNT = @OPERATION_COUNT@
DEFINES +=
CPPFLAGS += -I$(srcdir)/../include
CPPFLAGS += -I$(srcdir)/../include -DOPERATION_COUNT=$(OPERATION_COUNT)
CFLAGS +=
LD_PATHS +=

View File

@@ -21,15 +21,14 @@
* blocking tasks to determine the execution time of blocking
* services. By default, the blocking time of 100 tasks will
* be measured. Small targets often do not have enough memory
* to create 100 tasks. By setting the BSP_MAXIMUM_OPERATION_COUNT
* to a lower number (typically 10), all of the time tests can be
* run.
* to create 100 tasks. By overriding the default OPERATION_COUNT
* with a lower number (typically 10 or less), all of the time tests
* can usually be run. This is stil not very fine-grained but
* is enough to significantly reduce memory consumption.
*/
#ifndef BSP_MAXIMUM_OPERATION_COUNT
#ifndef OPERATION_COUNT
#define OPERATION_COUNT 100
#else
#define OPERATION_COUNT BSP_MAXIMUM_OPERATION_COUNT
#endif
/*
@@ -41,10 +40,8 @@
* not increase memory usage -- only execution time.
*/
#ifndef BSP_ITERATION_COUNT
#ifndef IT_COUNT
#define IT_COUNT 100
#else
#define IT_COUNT BSP_ITERATION_COUNT
#endif
/* functions */