Commit Graph

102 Commits

Author SHA1 Message Date
Joel Sherrill
59efbdd4e9 malloctest/init.c: Fix use uninitialized warning 2015-03-24 08:16:29 -05:00
Sebastian Huber
01557b0c6e libcsupport: Delete malloc statistics
Use the heap handler statistics instead.  Add heap walk option to MALLOC
shell command.

close #1367
2014-11-28 11:23:53 +01:00
Joel Sherrill
163519a055 libtests/malloctest/init.c: Fix warning
posix_memalign() is prototyped to take a non-NULL parameter. But our
test is deliberately passing one in. With the -Wnon-null warning flag
enabled, we will always get warnings on this test unless we disable
that warning for this single test case.
2014-11-20 12:57:33 -06:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
f8b2eb03f7 tests/libtests: Use <rtems/test.h> 2014-03-20 09:10:26 +01:00
Sebastian Huber
a49bc354a7 score: Add _Heap_Size_with_overhead() 2014-02-04 10:06:34 +01:00
Sebastian Huber
435f2c056b libtests/malloctest: Fix heap extend test case 2013-11-18 14:56:43 +01:00
Sebastian Huber
ae75429ca1 PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 2013-08-08 14:11:22 +02:00
Sebastian Huber
b7cf09c305 libtests/malloctest: Fixes for RTEMS_DEBUG 2013-07-24 11:11:21 +02:00
Sebastian Huber
aaee3a9179 libtests/malloctest: Add test case 2012-12-22 16:41:08 +01:00
Sebastian Huber
d8efe3dc71 libtests/malloctest: Add test case 2012-12-22 16:28:26 +01:00
Sebastian Huber
e4278f2050 score: Append to free list in _Heap_Extend() 2012-10-25 14:54:06 +02:00
Sebastian Huber
6ccfe722bd score: Change _Heap_Extend() API
The _Heap_Extend() has now the same signature as _Heap_Initialize().
The 4th parameter is ignored (page size in _Heap_Initialize()).

Add Heap_Area and Heap_Initialization_or_extend_handler.

Add and test _Heap_No_extend().

This helps to do a table based heap initialization and extension.
Create a table of Heap_Area elements and iterate through it.  Set the
handler to _Heap_Initialize() in the first iteration and then to
_Heap_Extend().
2012-10-25 14:54:06 +02:00
Sebastian Huber
502629707d libcsupport: Adjust malloc_walk() prototype
The header file <rtems/malloc.h> provides now also the malloc_walk()
prototype.

The malloc_walk() prototype reflects now the _Protected_heap_Walk() API.
The return status helps to print only in case of an error.
2012-05-16 12:38:21 +02: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
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
820d82ed8a 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
Joel Sherrill
6f9ce8f4c6 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1589/build
	* block01/Makefile.am, block02/Makefile.am, block03/Makefile.am,
	block04/Makefile.am, block05/Makefile.am, block06/Makefile.am,
	block07/Makefile.am, block08/Makefile.am, block09/Makefile.am,
	block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am,
	devfs01/Makefile.am, devfs02/Makefile.am, devfs03/Makefile.am,
	devfs04/Makefile.am, deviceio01/Makefile.am,
	devnullfatal01/Makefile.am, dumpbuf01/Makefile.am, ftp01/Makefile.am,
	gxx01/Makefile.am, heapwalk/Makefile.am, malloc02/Makefile.am,
	malloc03/Makefile.am, malloc04/Makefile.am, malloc05/Makefile.am,
	malloctest/Makefile.am, monitor/Makefile.am, monitor02/Makefile.am,
	mouse01/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am,
	rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am,
	stringto01/Makefile.am, tar01/Makefile.am, tar02/Makefile.am,
	tar03/Makefile.am, termios/Makefile.am, termios01/Makefile.am,
	termios02/Makefile.am, termios03/Makefile.am, termios04/Makefile.am,
	termios05/Makefile.am, termios06/Makefile.am, termios07/Makefile.am,
	termios08/Makefile.am, tztest/Makefile.am: Remove obsolete optional
	manager capability.
2011-12-08 21:38:12 +00:00
Joel Sherrill
6f27ba8077 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* devnullfatal01/testcase.h, malloc02/init.c, malloc04/init.c,
	malloctest/init.c, termios03/termios_testdriver_polled.c,
	termios04/termios_testdriver_intr.c: Remove warnings.
2011-05-05 16:45:47 +00:00
Sebastian Huber
ce217f9699 2011-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* malloctest/init.c: Improve coverage.
	* malloctest/malloctest.scn: Update.
2011-03-09 15:39:58 +00:00
Ralf Corsepius
7d3f9c646a Add HAVE_CONFIG_H. 2011-02-22 07:37:03 +00:00
Sebastian Huber
cfe3c083cc 2010-08-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* malloctest/init.c: Update for heap API changes.
2010-08-25 12:38:48 +00:00
Joel Sherrill
66ed5ff777 2010-07-15 Bharath Suri <bharath.s.jois@gmail.com>
PR 1617/testing
	* malloctest/init.c: Added new case to exercise _realloc_r.
2010-07-15 13:54:54 +00:00
Sebastian Huber
be4e3d6fbc 2010-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
* malloctest/init.c: Added test for
	rtems_heap_allocate_aligned_with_boundary().
2010-07-15 13:36:25 +00:00
Joel Sherrill
96fc191bb8 2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloctest/system.h: Enable malloc statistics.
2010-07-06 01:02:06 +00:00
Joel Sherrill
33ece501be 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, malloctest/init.c, termios03/init.c,
	termios03/termios03.scn: Handle some of the VKILL and VERASE cases.
2010-06-28 17:05:25 +00:00
Joel Sherrill
ef08dc1f8a 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* block01/Makefile.am, block02/Makefile.am, block03/Makefile.am,
	block04/Makefile.am, block05/Makefile.am, block06/Makefile.am,
	block07/Makefile.am, block08/Makefile.am, block09/Makefile.am,
	block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am,
	heapwalk/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am,
	monitor02/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am,
	rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am,
	stringto01/Makefile.am, termios/Makefile.am, termios01/Makefile.am,
	termios02/Makefile.am: Revert.
2010-06-23 23:26:08 +00:00
Joel Sherrill
ab59de4542 2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* block01/Makefile.am, block02/Makefile.am, block03/Makefile.am,
	block04/Makefile.am, block05/Makefile.am, block06/Makefile.am,
	block07/Makefile.am, block08/Makefile.am, block09/Makefile.am,
	block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am,
	heapwalk/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am,
	monitor02/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am,
	rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am,
	stringto01/Makefile.am, termios/Makefile.am, termios01/Makefile.am,
	termios01/init.c, termios02/Makefile.am: Fix bug so existing test
	code for rtems_termios_baud_to_index() is executed.
2010-06-23 23:24:11 +00:00
Jennifer Averett
91e446f3ab 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* malloctest/init.c: Added error case with malloc of size 0.
2010-06-22 18:20:47 +00:00
Jennifer Averett
81110848dc 2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* malloctest/init.c: Added test to check failure branch on calloc.
2010-06-22 18:09:04 +00:00
Sebastian Huber
b0e81c9689 2010-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* heapwalk/init.c, malloctest/init.c: Update for heap extend changes.
2010-06-07 09:33:32 +00:00
Ralf Corsepius
b1274bd94c Whitespace removal. 2009-11-30 03:33:25 +00:00
Ralf Corsepius
b3b09bccbc Use %zu instead of %d to print size_t's. 2009-10-26 13:35:06 +00:00
Ralf Corsepius
dbd40cad74 Use %zu instead of %d to print size_t's. 2009-10-26 09:35:02 +00:00
Ralf Corsepius
9625b235c5 Fix _Heap_Resize_block args. 2009-10-26 08:24:08 +00:00
Ralf Corsepius
9066bf2085 Eliminate unused vars. 2009-10-26 07:58:21 +00:00
Ralf Corsepius
4088e75402 Add local prototype for malloc_walk, malloc_info. 2009-10-26 05:56:30 +00:00
Ralf Corsepius
2ff6759dab Add local prototype for malloc_walk. 2009-10-26 05:53:29 +00:00
Ralf Corsepius
cbc5c46032 Add missing prototypes. 2009-10-26 05:44:07 +00:00
Joel Sherrill
809fb589fc 2009-09-09 Christian Mauderer <christian.mauderer@embedded-brains.de>
* heapwalk/init.c, heapwalk/heapwalk.scn, malloctest/init.c,
	malloctest/malloctest.scn: New test cases.
	* stackchk/blow.c, stackchk/stackchk.scn: Update for heap API changes.
2009-09-09 14:59:09 +00:00
Joel Sherrill
f6a41d2ea1 2009-09-03 Christian Mauderer <christian.mauderer@embedded-brains.de>
* malloctest/init.c: New test cases. Update for heap API changes.
	* stackchk/blow.c: Update for heap API changes.
2009-09-06 15:24:56 +00:00
Joel Sherrill
de7adafc8c 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloctest/task1.c, stackchk/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-12 20:50:26 +00:00
Joel Sherrill
cd49fdcdcb 2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpuuse/task1.c, cpuuse/tswitch.c, malloctest/task1.c,
	stackchk/task1.c: Convert calls to legacy routine rtems_clock_get(
	RTEMS_CLOCK_GET_TOD, ..) to rtems_clock_get_tod(..).
2009-08-10 14:50:24 +00:00
Joel Sherrill
384f0225e8 2009-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloctest/init.c: Adjust allocation in test so it passes now that
	heap overhead constant has been increased.
2009-08-09 17:31:48 +00:00
Joel Sherrill
66abaa1e20 2009-07-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* malloctest/init.c, malloctest/malloctest.scn: Add heap resize test
	for shrinking a block enough to need to free the newly unused
	portion.
2009-07-09 16:13:06 +00:00
Joel Sherrill
4b6c378fab 2009-07-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* malloctest/init.c, malloctest/malloctest.scn: Add error cases for
	_Protected_heap_Get_information().
2009-07-08 19:15:04 +00:00
Joel Sherrill
d0a263ac1e 2009-05-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloctest/init.c: Fix warning.
2009-05-09 17:19:25 +00:00
Joel Sherrill
3b2edab9ab 2009-05-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloctest/init.c: Fix typo.
2009-05-07 20:18:22 +00:00
Joel Sherrill
8814cf04cc 2009-05-07 Santosh G Vattam <vattam.santosh@gmail.com>
* malloctest/init.c: Add test case for heap resize block when the
	resize creates a free block large enough to free.
2009-05-07 17:08:28 +00:00