Commit Graph

220 Commits

Author SHA1 Message Date
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
53ad908a64 score: Add SMP lock profiling support 2014-03-14 08:46:49 +01:00
Sebastian Huber
28779c70ff score: Add function to destroy SMP locks 2014-03-11 10:58:09 +01:00
Sebastian Huber
d50acdbb6c score: Add local context to SMP lock API
Add a local context structure to the SMP lock API for acquire and
release pairs.  This context can be used to store the ISR level and
profiling information.  It may be later used to enable more
sophisticated lock algorithms, e.g. MCS locks.

There is only one lock that cannot be used with a local context.  This
is the per-CPU lock since here we would have to transfer the local
context through a context switch which is very complicated.
2014-03-11 10:58:09 +01:00
Sebastian Huber
825cb1f196 score: Delete _Thread_Dispatch_set_disable_level()
This function was only used in some tests and can be replaced with other
functions.
2014-03-06 09:43:59 +01:00
Sebastian Huber
b323e1fb41 tmtests/tm26: Fix deadlock for SMP configurations
Some _Context_Switch() invocations end up in _Thread_Handler().  Create
the right context for this function.
2014-03-06 09:43:59 +01:00
Sebastian Huber
9abbb6ab97 tmtests/tmcontext01: New test 2014-02-28 09:06:20 +01:00
Cynthia Rempel
4e108d7919 tmtests: Add contents to multiple documentation files 2014-01-09 09:42:01 -06:00
Daniel Ramirez
371f32f48e tmtests: refactored timesys.h, removed declarations 2013-12-09 19:55:35 -06:00
Joel Sherrill
6d730e919f tmtests_plan.csv: New planning file 2013-12-07 19:49:40 -06:00
Joel Sherrill
a98d5fc291 tmoverhd/testtask.c: Fix output to be consistent 2013-12-07 19:45:11 -06:00
Joel Sherrill
dab34ec9e6 tmoverhd/empty.c: formatting 2013-12-07 19:44:20 -06:00
Joel Sherrill
bcc45a8142 tm19: Clean up output 2013-12-07 19:39:48 -06:00
Joel Sherrill
2e50dcec70 timesys.h: Benchmark output now includes a dash for easier parsing 2013-12-07 19:10:35 -06:00
Joel Sherrill
9410d01196 tmtests: Make output more uniform 2013-12-07 19:10:35 -06:00
Sebastian Huber
bf30999cc6 smp: Add and use _Assert_Owner_of_giant()
Add and use _ISR_Disable_without_giant() and
_ISR_Enable_without_giant() if RTEMS_SMP is defined.

On single processor systems the ISR disable/enable was the big hammer
which ensured system-wide mutual exclusion.  On SMP configurations this
no longer works since other processors do not care about disabled
interrupts on this processor and continue to execute freely.

On SMP in addition to ISR disable/enable an SMP lock must be used.
Currently we have only the Giant lock so we can check easily that ISR
disable/enable is used only in the right context.
2013-08-30 11:16:28 +02:00
Sebastian Huber
d19cce29dc score: Per-CPU thread dispatch disable level
Use a per-CPU thread dispatch disable level.  So instead of one global
thread dispatch disable level we have now one instance per processor.
This is a major performance improvement for SMP.  On non-SMP
configurations this may simplifiy the interrupt entry/exit code.

The giant lock is still present, but it is now decoupled from the thread
dispatching in _Thread_Dispatch(), _Thread_Handler(),
_Thread_Restart_self() and the interrupt entry/exit.   Access to the
giant lock is now available via _Giant_Acquire() and _Giant_Release().
The giant lock is still implicitly acquired via
_Thread_Dispatch_decrement_disable_level().

The giant lock is only acquired for high-level operations in interrupt
handlers (e.g. release of a semaphore, sending of an event).

As a side-effect this change fixes the lost thread dispatch necessary
indication bug in _Thread_Dispatch().

A per-CPU thread dispatch disable level greatly simplifies the SMP
support for the interrupt entry/exit code since no spin locks have to be
acquired in this area.  It is only necessary to get the current
processor index and use this to calculate the address of the own per-CPU
control.  This reduces the interrupt latency considerably.

All elements for the interrupt entry/exit code are now part of the
Per_CPU_Control structure: thread dispatch disable level, ISR nest level
and thread dispatch necessary.  Nothing else is required (except CPU
port specific stuff like on SPARC).
2013-08-09 23:02:38 +02:00
Sebastian Huber
09c00eea70 tmtests/tm27: Fixes for RTEMS_DEBUG 2013-08-01 16:45:44 +02:00
Sebastian Huber
e31a9c8b0d tmtests/tm26: Fixes for RTEMS_DEBUG 2013-07-31 15:09:04 +02:00
Sebastian Huber
d7ce33f17e testsuites: Use _Thread_Get_executing() 2013-07-22 16:46:00 +02:00
Sebastian Huber
2bbea657ae rtems: Create semaphore implementation header
Move implementation specific parts of sem.h and sem.inl into new header
file semimpl.h.  The sem.h contains now only the application visible
API.
2013-07-18 09:58:56 +02:00
Sebastian Huber
b4062c3f7f tmtests/tm20: Change allocation sizes
This avoids problems with debugging enabled.
2013-06-25 17:06:24 +02:00
Gedare Bloom
fad2d38a9f RTEMS: Delete ChangeLog files.
This commit deletes all RTEMS ChangeLog files. These files have been abandoned
since converting to git version control. The historical data may be recovered
by checking out any commit before this one. Most of the contents of these
ChangeLog files can also be found in the git log.

Two external ChangeLog files, ChangeLog.slac and ChangeLog.zlib, remain.
2013-03-08 15:55:06 -05:00
Cynthia Rempel
3169affa16 tmoverhd.doc
Hi,
Adding test documentation...
2013-01-06 08:26:21 -05:00
Gedare Bloom
57e922c799 Revert "Add config.h.in."
This reverts commit cf42a6ea9d.
2012-08-06 13:04:24 -04:00
Ralf Corsépius
bb2b8259ea Require automake-1.12.2. 2012-07-19 15:47:55 +02:00
Ralf Corsépius
0f772813aa Require autoconf-2.69. 2012-07-19 15:44:32 +02:00
Ralf Corsépius
cf42a6ea9d Add config.h.in. 2012-05-24 07:17:05 +02:00
Joel Sherrill
a03d4453dd tmoverhd - Eliminate warnings 2012-05-11 09:25:49 -05:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Joel Sherrill
865bffd1c7 tm30 - Fix warning for Init needed prototype 2012-05-07 16:57:35 -05:00
Joel Sherrill
33a105fb69 Revert: Remove CVS Ids
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.
2012-05-07 11:08:48 -05:00
Ralf Corsépius
9f4e8fbc63 Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Joel Sherrill
61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Ralf Corsepius
ee22b256be 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* tm30/init.c: Make benchmark_barrier_create,
	benchmark_barrier_ident, benchmark_barrier_delete static.
2011-12-13 09:54:51 +00:00
Joel Sherrill
448f6577fb 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1589/build
	* tm01/Makefile.am, tm02/Makefile.am, tm03/Makefile.am,
	tm04/Makefile.am, tm05/Makefile.am, tm06/Makefile.am,
	tm07/Makefile.am, tm08/Makefile.am, tm09/Makefile.am,
	tm10/Makefile.am, tm11/Makefile.am, tm12/Makefile.am,
	tm13/Makefile.am, tm14/Makefile.am, tm15/Makefile.am,
	tm16/Makefile.am, tm17/Makefile.am, tm18/Makefile.am,
	tm19/Makefile.am, tm20/Makefile.am, tm21/Makefile.am,
	tm22/Makefile.am, tm23/Makefile.am, tm24/Makefile.am,
	tm25/Makefile.am, tm26/Makefile.am, tm27/Makefile.am,
	tm28/Makefile.am, tm29/Makefile.am, tm30/Makefile.am,
	tmck/Makefile.am, tmoverhd/Makefile.am: Remove obsolete optional
	manager capability.
2011-12-08 21:38:46 +00:00
Ralf Corsepius
c0b35f9385 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* tm26/fptest.h: Use PRIu32 to print uint32_t.
2011-10-18 08:42:57 +00:00
Joel Sherrill
aecbde54e3 2011-05-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* tm26/system.h, tm27/system.h: Ensure these tests use the correct
	scheduler.
2011-05-09 19:43:04 +00:00
Joel Sherrill
3f42f12c9f 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm15/task1.c: Remove
	warnings.
2011-05-05 16:46:00 +00:00
Jennifer Averett
1c95d94af6 2011-04-21 Jennifer Averett <Jennifer.Averett@OARcorp.com
PR 1777/cpukit
	* support/include/tmacros.h, tmtests/tm26/task1.c,
	tmtests/tm27/task1.c: Consolidated access to
	_Thread_Dispatch_disable_level.
2011-04-21 19:05:34 +00:00
Joel Sherrill
a1a5f9225c 2011-03-16 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1743/cpu
	* tm26/task1.c, tm27/task1.c: Add Simple Priority Scheduler as
	complement to existing Deterministic Priority Scheduler. Modify these
	tests to verify the scheduler they are designed to work with is the
	default scheduler.
2011-03-16 17:11:32 +00:00
Sebastian Huber
67cf697636 2011-03-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* tm26/task1.c: Update for API change.
2011-03-16 09:14:37 +00:00
Ralf Corsepius
3d5d192477 Add config.h.in 2011-03-01 15:27:02 +00:00
Ralf Corsepius
027e40dc03 2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add AC_CONFIG_HEADER(config.h).
2011-02-22 14:56:36 +00:00
Ralf Corsepius
a4bc4d6e29 Add HAVE_CONFIG_H. 2011-02-22 10:00:39 +00:00
Ralf Corsepius
d4e62bb7df 2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c,
	tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c,
	tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c,
	tm16/task1.c, tm17/task1.c, tm18/task1.c, tm19/task1.c, tm20/task1.c,
	tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c,
	tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tm30/init.c,
	tmck/task1.c, tmoverhd/empty.c, tmoverhd/testtask.c: Add HAVE_CONFIG_H.
2011-02-22 09:57:25 +00:00
Joel Sherrill
df0f27f655 2011-02-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* tm26/task1.c, tm27/task1.c: Adjust for name changes.
2011-02-18 15:12:55 +00:00
Ralf Corsepius
8ee3775f30 2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
2011-02-02 15:01:43 +00:00
Joel Sherrill
65b185eaf6 2010-12-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* README: Add initial small set of POSIX Timing Tests.
2010-12-06 16:35:53 +00:00
Sebastian Huber
b758b90679 2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* tm26/task1.c, tm27/task1.c: Update for API changes.
2010-11-25 13:26:45 +00:00