summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spwatchdog (follow)
Commit message (Collapse)AuthorAgeFilesLines
* testsuites/sptests/sp[i-z]*/*.doc: Change license to BSD-2Joel Sherrill2022-04-051-3/+22
| | | | Updates #3053.
* testsuites/sptests/sp[s-z]*: Change license to BSD-2Joel Sherrill2022-04-055-15/+110
| | | | Updates #3053.
* tests: Use rtems_task_exit()Sebastian Huber2018-10-051-5/+2
| | | | Update #3533.
* testsuite/sptests: Merged nested Makefile.am files into one Makefile.amChris Johns2018-04-101-22/+0
| | | | | | This change is part of the testsuite Makefile.am reorganization. Update #3382
* score: Introduce new monotonic clockSebastian Huber2018-02-021-1/+0
| | | | | | | | Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS. Add new PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured by timecounter). Close #3264.
* score: Optimize watchdog tickleSebastian Huber2018-02-021-1/+9
| | | | | | | Avoid unnecessary lock acquire/release operations. Get realtime via timecounter only if necessary. Update #3264.
* tests: Use simple console driverSebastian Huber2017-11-061-1/+1
| | | | | Update #3170. Update #3199.
* tests: Remove TEST_INITSebastian Huber2017-10-281-2/+0
| | | | | | | | The TEST_EXTERN is a used only by the system.h style tests and they use CONFIGURE_INIT appropriately. Update #3170. Update #3199.
* rtems: rtems_clock_get_ticks_per_second()Sebastian Huber2017-10-251-0/+3
| | | | | | | Add macro implementation for rtems_clock_get_ticks_per_second() for C/C++ to avoid the function call overhead. A rtems_clock_get_ticks_per_second() is still provided for language bindings (e.g. Ada).
* score: Add _Watchdog_Nanoseconds_per_tickSebastian Huber2017-10-241-0/+1
| | | | | | | Move it from the configuration to a separate variable. Update #3117. Update #3182.
* score: _Watchdog_Is_far_future_monotonic_timespecSebastian Huber2017-10-241-0/+1
| | | | | Update #3117. Update #3182.
* score: Add _Watchdog_Ticks_per_secondSebastian Huber2017-10-241-0/+6
| | | | | | | | This value is frequently used. Avoid the function call overhead and the integer division at run-time. Update #3117. Update #3182.
* testsuite: Use printk for all test output where possible.Chris Johns2017-10-231-0/+2
| | | | | | | | | | - Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
* score: Replace watchdog handler implementationSebastian Huber2016-03-041-216/+165
| | | | | | | | | Use a red-black tree instead of delta chains. Close #2344. Update #2554. Update #2555. Close #2606.
* score: Fix watchdog insertSebastian Huber2016-01-041-4/+44
| | | | | | | | | Under certain conditions a new watchdog was inserted with a wrong and very large delta interval due to a wrong iterator update. Bug was introduced by 1ccbd052910ed16131c74b0d5595c8a94066942d. Close #2507.
* score: Fix watchdog removalSebastian Huber2015-12-211-5/+57
| | | | | | | | | Under certain conditions a new watchdog was inserted with a wrong and very large delta interval due to an incomplete iterator update. Bug was introduced by 1ccbd052910ed16131c74b0d5595c8a94066942d. Close #2501.
* score: Add _Watchdog_Preinitialize()Sebastian Huber2015-06-131-4/+4
| | | | | | Add an assert to ensure that the watchdog is the proper state for a _Watchdog_Initialize(). This helps to detect invalid initializations which may lead to a corrupt watchdog chain.
* score: Add Watchdog_IteratorSebastian Huber2015-05-191-0/+114
| | | | | | | | | | Rewrite the _Watchdog_Insert(), _Watchdog_Remove() and _Watchdog_Tickle() functions to use iterator items to synchronize concurrent operations. This makes it possible to get rid of the global variables _Watchdog_Sync_level and _Watchdog_Sync_count which are a blocking point for scalable SMP solutions. Update #2307.
* sptests/spwatchdog/init.c: Avoid integer overflowJoel Sherrill2015-03-241-2/+8
|
* sptests/spwatchdog: Fix for short enumsSebastian Huber2014-04-071-4/+11
|
* score: Delete _Watchdog_Report()Sebastian Huber2014-03-254-37/+0
| | | | | | | Delete _Watchdog_Report_chain(). These two functions use printk() with thread dispatching and interrupts disabled. So they are pretty useless in real applications. They are not part of the application APIs. They are only used in one test and do nothing useful in this test.
* tests/sptests: Use <rtems/test.h>Sebastian Huber2014-03-253-2/+6
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-216-6/+6
|
* score: Add WATCHDOG_INITIALIZER()Sebastian Huber2013-07-221-0/+24
|
* score: Create watchdog implementation headerSebastian Huber2013-07-222-0/+4
| | | | | | Move implementation specific parts of watchdog.h and watchdog.inl into new header file watchdogimpl.h. The watchdog.h contains now only the application visible API.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-117-17/+0
| | | | | | | | | | | | 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.
* Revert: Remove CVS IdsJoel Sherrill2012-05-071-0/+5
| | | | | See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
* Remove CVS-Ids.Ralf Corsépius2012-05-041-5/+0
|
* Remove all .cvsignore files.Joel Sherrill2012-02-011-2/+0
|
* 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-12-081-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR 1589/build * sp01/Makefile.am, sp02/Makefile.am, sp03/Makefile.am, sp04/Makefile.am, sp05/Makefile.am, sp06/Makefile.am, sp07/Makefile.am, sp08/Makefile.am, sp09/Makefile.am, sp10/Makefile.am, sp11/Makefile.am, sp12/Makefile.am, sp13/Makefile.am, sp14/Makefile.am, sp15/Makefile.am, sp16/Makefile.am, sp17/Makefile.am, sp18/Makefile.am, sp19/Makefile.am, sp20/Makefile.am, sp2038/Makefile.am, sp21/Makefile.am, sp22/Makefile.am, sp23/Makefile.am, sp24/Makefile.am, sp25/Makefile.am, sp26/Makefile.am, sp27/Makefile.am, sp27a/Makefile.am, sp28/Makefile.am, sp29/Makefile.am, sp30/Makefile.am, sp31/Makefile.am, sp32/Makefile.am, sp33/Makefile.am, sp34/Makefile.am, sp35/Makefile.am, sp36/Makefile.am, sp37/Makefile.am, sp38/Makefile.am, sp39/Makefile.am, sp40/Makefile.am, sp41/Makefile.am, sp42/Makefile.am, sp43/Makefile.am, sp44/Makefile.am, sp45/Makefile.am, sp46/Makefile.am, sp47/Makefile.am, sp48/Makefile.am, sp49/Makefile.am, sp50/Makefile.am, sp51/Makefile.am, sp52/Makefile.am, sp53/Makefile.am, sp54/Makefile.am, sp55/Makefile.am, sp56/Makefile.am, sp57/Makefile.am, sp58/Makefile.am, sp59/Makefile.am, sp60/Makefile.am, sp62/Makefile.am, sp63/Makefile.am, sp64/Makefile.am, sp65/Makefile.am, sp66/Makefile.am, sp67/Makefile.am, sp68/Makefile.am, sp69/Makefile.am, sp70/Makefile.am, sp71/Makefile.am, sp72/Makefile.am, sp73/Makefile.am, sp74/Makefile.am, sp75/Makefile.am, sp76/Makefile.am, spassoc01/Makefile.am, spcbssched01/Makefile.am, spcbssched02/Makefile.am, spcbssched03/Makefile.am, spchain/Makefile.am, spclockget/Makefile.am, spcoverage/Makefile.am, spedfsched01/Makefile.am, spedfsched02/Makefile.am, spedfsched03/Makefile.am, sperror01/Makefile.am, sperror02/Makefile.am, sperror03/Makefile.am, spfatal01/Makefile.am, spfatal02/Makefile.am, spfatal03/Makefile.am, spfatal04/Makefile.am, spfatal05/Makefile.am, spfatal06/Makefile.am, spfatal07/Makefile.am, spfatal08/Makefile.am, spfatal09/Makefile.am, spfatal10/Makefile.am, spfatal11/Makefile.am, spfatal12/Makefile.am, spfatal13/Makefile.am, spfatal14/Makefile.am, spfatal15/Makefile.am, spfatal16/Makefile.am, spfatal17/Makefile.am, spfatal18/Makefile.am, spfatal19/Makefile.am, spfatal20/Makefile.am, spfatal21/Makefile.am, spfatal22/Makefile.am, spfatal23/Makefile.am, spfatal24/Makefile.am, spfatal25/Makefile.am, spfifo01/Makefile.am, spfifo02/Makefile.am, spfifo03/Makefile.am, spfifo04/Makefile.am, spfifo05/Makefile.am, spheapprot/Makefile.am, spintrcritical01/Makefile.am, spintrcritical02/Makefile.am, spintrcritical03/Makefile.am, spintrcritical04/Makefile.am, spintrcritical05/Makefile.am, spintrcritical06/Makefile.am, spintrcritical07/Makefile.am, spintrcritical08/Makefile.am, spintrcritical09/Makefile.am, spintrcritical10/Makefile.am, spintrcritical11/Makefile.am, spintrcritical12/Makefile.am, spintrcritical13/Makefile.am, spintrcritical14/Makefile.am, spintrcritical15/Makefile.am, spintrcritical16/Makefile.am, spintrcritical17/Makefile.am, spmkdir/Makefile.am, spmountmgr01/Makefile.am, spnotepad01/Makefile.am, spnsext01/Makefile.am, spobjgetnext/Makefile.am, spprintk/Makefile.am, spprivenv01/Makefile.am, sprbtree01/Makefile.am, spsimplesched01/Makefile.am, spsimplesched02/Makefile.am, spsimplesched03/Makefile.am, spsize/Makefile.am, spstkalloc/Makefile.am, spthreadq01/Makefile.am, spwatchdog/Makefile.am, spwkspace/Makefile.am: Remove obsolete optional manager capability.
* Add HAVE_CONFIG_H.Ralf Corsepius2011-02-224-0/+16
|
* 2010-10-25 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2010-10-251-2/+2
| | | | * spchain/init.c, spwatchdog/task1.c: Do not violate chain API.
* 2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-11-092-0/+27
| | | | | | | | | | | | | | | | | | | | * sp32/Makefile.am, sp33/Makefile.am, sp37/Makefile.am, sp38/Makefile.am, sp39/Makefile.am, sp43/Makefile.am, sp44/Makefile.am, spfatal01/Makefile.am, spfatal02/Makefile.am, spfatal03/Makefile.am, spfatal04/Makefile.am, spfatal05/Makefile.am, spfatal06/Makefile.am, spfatal07/Makefile.am, spfatal08/Makefile.am, spfatal09/Makefile.am, spobjgetnext/Makefile.am, spprintk/Makefile.am, spsize/Makefile.am, spwatchdog/Makefile.am, spwkspace/Makefile.am: Add documentation files for multiple tests. * sp32/sp32.doc, sp33/sp33.doc, sp37/sp37.doc, sp38/sp38.doc, sp39/sp39.doc, sp43/sp43.doc, sp44/sp44.doc, spfatal01/spfatal01.doc, spfatal02/spfatal02.doc, spfatal03/spfatal03.doc, spfatal04/spfatal04.doc, spfatal05/spfatal05.doc, spfatal06/spfatal06.doc, spfatal07/spfatal07.doc, spfatal08/spfatal08.doc, spfatal09/spfatal09.doc, spobjgetnext/spobjgetnext.doc, spprintk/spprintk.doc, spsize/spsize.doc, spwatchdog/spwatchdog.doc, spwkspace/spwkspace.doc: New files.
* Use PRIxrtems_id to print rtems_ids.Ralf Corsepius2009-10-262-2/+2
|
* Remove unused vars.Ralf Corsepius2009-10-241-1/+0
|
* 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-192-91/+22
| | | | | | * spwatchdog/spwatchdog.scn, spwatchdog/task1.c: Add test for _Watchdog_Report() when name is not NULL. This case was covered at -Os on erc32 but at -O2 we had more code.
* 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-08-121-5/+5
| | | | | | | | | | | | | | | * sp02/task1.c, sp02/task2.c, sp02/task3.c, sp03/task2.c, sp05/task1.c, sp05/task2.c, sp05/task3.c, sp06/task1.c, sp06/task2.c, sp09/screen02.c, sp09/screen04.c, sp09/screen06.c, sp09/screen07.c, sp09/screen10.c, sp09/screen12.c, sp09/screen13.c, sp09/screen14.c, sp11/task1.c, sp11/task2.c, sp12/pridrv.c, sp12/pritask.c, sp12/task1.c, sp13/task1.c, sp13/task2.c, sp14/task1.c, sp16/task1.c, sp16/task4.c, sp19/fptask.c, sp19/task1.c, sp22/task1.c, sp24/task1.c, sp26/task1.c, sp29/init.c, sp30/task1.c, sp31/task1.c, sp33/init.c, sp45/init.c, sp46/init.c, sp50/init.c, spintrcritical06/init.c, spwatchdog/task1.c: Eliminate test routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new rtems_clock_get_ticks_per_second().
* 2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-08-103-10/+10
| | | | | | | | | | | | * sp01/sp01.scn, sp01/task1.c, sp03/task1.c, sp03/task2.c, sp04/task1.c, sp04/tswitch.c, sp09/screen02.c, sp09/screen13.c, sp09/screen14.c, sp09/sp09.scn, sp11/sp11.scn, sp11/task1.c, sp11/task2.c, sp19/fptask.c, sp19/sp19.scn, sp19/task1.c, sp22/prtime.c, sp22/sp22.scn, sp22/task1.c, sp24/sp24.scn, sp24/task1.c, sp30/task1.c, sp31/prtime.c, sp31/sp31.scn, sp31/task1.c, spwatchdog/prtime.c, spwatchdog/spwatchdog.scn, spwatchdog/task1.c: Convert calls to legacy routine rtems_clock_get( RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
* 2009-07-01 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-012-12/+26
| | | | | * spwatchdog/init.c, spwatchdog/spwatchdog.scn: Add test case of empty chain for coverage.
* 2009-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-05-141-1/+1
| | | | | | | | | * Makefile.am, configure.ac, spwatchdog/system.h, spwkspace/Makefile.am, spwkspace/init.c: Add shell of test for printk. These will help coverage. Simplify spwkspace. * spprintk/.cvsignore, spprintk/Makefile.am, spprintk/init.c, spprintk/spprintk.scn: New files. * spwkspace/system.h: Removed.
* Eliminate _exe_/.exe.Ralf Corsepius2009-04-031-7/+7
|
* 2009-01-16 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett2009-01-168-0/+398
* Makefile.am, configure.ac: Add new test to test Watchdog display helper routines. These reach into the SuperCore. * spwatchdog/.cvsignore, spwatchdog/Makefile.am, spwatchdog/delay.c, spwatchdog/init.c, spwatchdog/prtime.c, spwatchdog/spwatchdog.scn, spwatchdog/system.h, spwatchdog/task1.c: New files.