Commit Graph

255 Commits

Author SHA1 Message Date
Glenn Humphrey
0f4f543279 2007-10-26 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* libmisc/cpuuse/cpuusagereport.c, rtems/src/ratemonreportstatistics.c:
	Cleaned up reports and fixed a bug related the printf format which
	resulted in lack of leading zeroes and misleading magnitude.
	* score/src/timespecdivide.c: Fixed bugs related to zero divide case.
2007-10-26 21:31:04 +00:00
Joel Sherrill
11d617593f 2007-09-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Eliminate output with little information.
	Always print a blown message using the same routine. Now works with
	GNAT RTS -fstack-checking if you have patch for the RTEMS specific
	support in your GCC version.
2007-09-28 15:03:48 +00:00
Joel Sherrill
a6d5ea6b6b 2007-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/dumpbuf/dumpbuf.c: Use printk.
2007-09-17 14:28:41 +00:00
Joel Sherrill
33eeeb28dc 2007-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Fix alignment of output.
2007-09-14 22:53:39 +00:00
Joel Sherrill
15a47934fb 2007-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/monitor.h: Add network commands that were in the
	network supplement but not in the code.
	* libmisc/monitor/mon-network.c: New file.
2007-09-14 22:52:53 +00:00
Thomas Doerfler
908d6ed9d6 Corrected linked list of monitor commands 2007-09-10 06:43:18 +00:00
Joel Sherrill
90a5d194a2 2007-09-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/Makefile.am, libcsupport/src/printk.c:
	* libcsupport/src/printk_plugin.c: New file.
	include/rtems/bspIo.h, libmisc/cpuuse/cpuusagereport.c,
	libmisc/cpuuse/cpuuse.h, libmisc/stackchk/check.c,
	libmisc/stackchk/stackchk.h: rtems/include/rtems/rtems/ratemon.h,
	rtems/src/ratemonreportstatistics.c: Added capability to specify
	your own "printf" routine to various reporting functions.  This
	added an XXX_with_plugin as the underlying implementation for
	  + rtems_rate_monotonic_report_statistics
	  + rtems_stack_checker_report_usage
	  + rtems_cpu_usage_report
	As demonstration, the http netdemo can now print out stack
	and cpu usage reports.
2007-09-06 22:51:25 +00:00
Joel Sherrill
e4204366ea 2007-09-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c: Fix warnings and typo.
2007-09-06 15:45:45 +00:00
Joel Sherrill
acc9f0ab7d 2007-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/untar/untar.c, libmisc/untar/untar.h: Clean up prototype.
2007-09-05 23:46:36 +00:00
Joel Sherrill
856aef8fb3 2007-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am: Add new files.
2007-09-05 22:55:38 +00:00
Thomas Doerfler
501ab69168 Added osmonweb support functionality to monitor 2007-09-05 20:35:36 +00:00
Joel Sherrill
70443b4034 2007-09-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c,
	libmisc/monitor/monitor.h: Merge minor parts of Thomas' improvements
	that are needed by osmonweb.
2007-09-04 23:19:47 +00:00
Joel Sherrill
5fb9e2fc36 2007-09-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/untar/untar.c, libmisc/untar/untar.h: Add const to char *.
	Use printk.
2007-09-04 19:32:54 +00:00
Chris Johns
1374fd3f07 2007-08-17 Chris Johns <chrisj@rtems.org>
* libmisc/capture/README: Minor copyright change.
	* libmisc/capture/capture-cli.c, libmisc/capture/capture.c,
	libmisc/capture/capture.h: Fixed the memory leak when lots of
	tasks are being created and deleted. Improved the trigger
	interface so all task type actions can be caught.
2007-08-17 00:54:16 +00:00
Joel Sherrill
3462c34326 2007-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c,
	score/src/timespecdivide.c: Fix various math and reporting bugs. Now
	the time appears to be reported correctly and add up to what is
	expected.
2007-07-24 21:37:39 +00:00
Joel Sherrill
793dd46d64 2007-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am, libmisc/cpuuse/cpuusagereport.c,
	libmisc/cpuuse/cpuusagereset.c: Fix bug where cpu usage calculation
	was always using uptime not time since last cpu usage reset when
	using nanoseconds granularity.
	* libmisc/cpuuse/cpuusagedata.c: New file.
2007-07-18 21:31:49 +00:00
Joel Sherrill
2b596c6986 2007-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/stackchk/check.c: Make checking the integrity of the pattern
	area contingent on the stack checker user extension having been
	initialized.
2007-07-06 21:11:36 +00:00
Joel Sherrill
ff3f8c85c3 2007-05-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* libmisc/Makefile.am, libmisc/monitor/mon-object.c,
	libmisc/monitor/monitor.h, sapi/include/confdefs.h,
	sapi/include/rtems/config.h, sapi/include/rtems/io.h,
	sapi/src/exinit.c, sapi/src/io.c: Eliminate maximum_drivers
	configuration parameter since it was used to configure a no longer
	used feature. Device names are now part of the filesystem not in a
	table. This also eliminated the variables _IO_Number_of_devices and
	_IO_Driver_name_table from RTEMS as well as the memory allocation
	used to populate _IO_Driver_name_table.
	* libmisc/monitor/mon-dname.c: Removed.
2007-05-28 15:51:01 +00:00
Joel Sherrill
e49e84c9ab 2007-05-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/Makefile.am, libmisc/cpuuse/README: Split remaining CPU Usage
	functionality into multiple files to eliminate unnecessary cohesion.
	Update README.
	* libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c:
	New files.
	* libmisc/cpuuse/cpuuse.c: Removed.
2007-05-21 20:28:02 +00:00
Joel Sherrill
c3330a88ee 2007-05-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, configure.ac, libcsupport/src/__times.c,
	libmisc/cpuuse/cpuuse.c, libmisc/stackchk/check.c,
	rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c,
	rtems/src/ratemonperiod.c, rtems/src/ratemonreportstatistics.c,
	rtems/src/ratemonresetall.c, rtems/src/ratemontimeout.c,
	score/Makefile.am, score/include/rtems/score/thread.h,
	score/include/rtems/score/timespec.h, score/src/threaddispatch.c,
	score/src/threadinitialize.c, score/src/threadtickletimeslice.c,
	score/src/timespecdivide.c: Add nanoseconds granularity to the rate
	monotonic period statistics and CPU usage statistics. This capability
	is enabled by default although may be conditionally disabled by the
	user. It could be too much overhead on small targets but it does not
	appear to be bad in early testing. Its impact on code size has not
	been evaluated either. It is possible that both forms of statistics
	gathering could be disabled with further tweaking of the conditional
	compilation.
	* score/src/timespecdividebyinteger.c: New file.
2007-05-17 22:46:45 +00:00
Joel Sherrill
eb64f2c6ff 2007-05-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/cpuuse/cpuuse.c: Use rtems_object_get_name and eliminate
	functionally similar code here. Also cleanup print formats.
2007-05-16 16:25:05 +00:00
Joel Sherrill
e1bce866cf 2007-05-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, preinstall.am, libmisc/Makefile.am, rtems/Makefile.am,
	rtems/include/rtems.h, rtems/include/rtems/rtems/ratemon.h,
	rtems/inline/rtems/rtems/ratemon.inl, rtems/src/ratemoncancel.c,
	rtems/src/ratemoncreate.c, rtems/src/ratemondelete.c,
	rtems/src/ratemongetstatus.c, rtems/src/ratemonident.c,
	rtems/src/ratemonperiod.c, rtems/src/ratemontimeout.c,
	score/Makefile.am, score/include/rtems/score/object.h,
	score/src/threadhandler.c, wrapup/Makefile.am: Integrate Rate
	Monotonic Statistics and Period Usage into Rate Monotonic Manager.
	Added the following directives: rtems_rate_monotonic_get_statistics,
	rtems_rate_monotonic_reset_statistics,
	rtems_rate_montonic_reset_all_statistics,
	rtems_rate_montonic_report_statistics, and rtems_object_get_name.
	Obsoleted the rtems/rtmonuse.h file as a public interface.
	* rtems/src/ratemongetstatistics.c,
	rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c,
	rtems/src/ratemonresetstatistics.c, rtems/src/rtemsobjectgetname.c,
	score/src/objectgetnameasstring.c: New files.
	* libmisc/rtmonuse/rtmonuse.c, libmisc/rtmonuse/rtmonuse.h: Removed.
2007-05-15 20:16:16 +00:00
Joel Sherrill
4da36c1af3 2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* libmisc/cpuuse/cpuuse.c, libmisc/stackchk/check.c,
	libmisc/stackchk/stackchk.h: Clean up as side-effect of making them
	suitable for inclusion in the Users Guide.
2007-05-11 20:01:37 +00:00
Joel Sherrill
361457db8e 2007-05-09 Joel Sherrill <joel.sherrill@OARcorp.com>
* libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-server.c: Do not
	reference _Configuration_MP_table if multiprocessing is disabled.
2007-05-09 17:55:37 +00:00
Joel Sherrill
d8ec87b49c 2007-04-02 Joel Sherrill <joel@OARcorp.com>
* libmisc/stackchk/check.c: Add code to check validity of frame pointer
	in addition to the pattern area being overwritten. Also do some
	cleanup.
2007-04-02 14:33:59 +00:00
Joel Sherrill
dfb3c2b71f 2007-03-12 Joel Sherrill <joel@OARcorp.com>
* libmisc/dumpbuf/dumpbuf.c, libmisc/dumpbuf/dumpbuf.h: Rename
	Dump_Buffer to rtems_print_buffer.
2007-03-12 20:23:58 +00:00
Joel Sherrill
8583f82da0 2007-03-08 Joel Sherrill <joel@OARcorp.com>
* libmisc/stackchk/check.c, libmisc/stackchk/internal.h,
	libmisc/stackchk/stackchk.h: Change dump usage to report usage.
2007-03-08 21:43:05 +00:00
Ralf Corsepius
c8b0f1cbbd Use size_t for sizes. 2007-02-06 05:57:07 +00:00
Ralf Corsepius
7c7aabd0f8 2007-01-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/mw-fb/mw_fb.h: Eliminate __u32, __u16.
2007-01-29 04:27:26 +00:00
Joel Sherrill
bf89c76217 2006-11-17 Joel Sherrill <joel@OARcorp.com>
* libmisc/rtmonuse/rtmonuse.c: Do not use float for calculations.
2006-11-17 22:55:51 +00:00
Ralf Corsepius
4a6fd1801c 2006-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/capture/capture-cli.c: Use size_t instead of int.
2006-10-17 17:21:18 +00:00
Chris Johns
8dec18146c Flush stdout after updating the command line. 2006-09-28 14:44:50 +00:00
Joel Sherrill
bc11ec273d 2006-09-14 Joel Sherrill <joel@OARcorp.com>
* libmisc/cpuuse/cpuuse.c, libmisc/cpuuse/cpuuse.h: Promote CPU Usage
	to first class citizen. Rename to start with rtems_ and include
	documentation in user guide.
2006-09-14 15:07:19 +00:00
Joel Sherrill
7ac4ae92d0 2006-09-13 Joel Sherrill <joel@OARcorp.com>
* libmisc/stackchk/check.c, libmisc/stackchk/internal.h,
	libmisc/stackchk/stackchk.h: Move stack to first class citizen
	status. Include it in User Manual and rename to start with rtems_.
2006-09-13 16:22:24 +00:00
Joel Sherrill
957d886a8f 2006-09-11 Joel Sherrill <joel@OARcorp.com>
* libmisc/mw-fb/mw_fb.c, libmisc/mw-fb/mw_fb.h, libmisc/mw-fb/mw_uid.c,
	libmisc/mw-fb/mw_uid.h: Remove warning.
2006-09-11 21:42:23 +00:00
Joel Sherrill
352332193c 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-command.c,
	libmisc/monitor/mon-driver.c, libmisc/monitor/mon-symbols.c,
	libmisc/rtmonuse/rtmonuse.c, libmisc/stackchk/check.c,
	libnetworking/libc/res_debug.c, telnetd/telnetd.c: Remove printf
	format warnings.
2006-08-30 13:53:02 +00:00
Joel Sherrill
8a1ae878d4 2006-08-29 Joel Sherrill <joel@OARcorp.com>
* libmisc/capture/capture-cli.c: Remove printf format warnings.
2006-08-29 21:55:30 +00:00
Thomas Doerfler
c9b005a9d2 applied patches for PR1117/1118/1119/1120 2006-07-09 10:05:27 +00:00
Eric Norum
32293d6929 Add ability to free information on task delete. 2006-04-27 18:17:20 +00:00
Eric Norum
03f246fb58 Eliminate undesired sign-extension. 2006-03-27 15:14:07 +00:00
Joel Sherrill
6a074363a2 2006-01-16 Joel Sherrill <joel@OARcorp.com>
Large patch to improve Doxygen output.  As a side-effect, grammar and
	spelling errors were corrected, spacing errors were address, and some
	variable names were improved.
	* libmisc/monitor/mon-object.c, libmisc/monitor/monitor.h:
	Account for changing OBJECTS_NO_CLASS to OBJECTS_CLASSIC_NO_CLASS.
	* score/Doxyfile: Set output directory.  Predefine some macro values.
	Turn on graphical output.
	* score/include/rtems/debug.h, score/include/rtems/seterr.h,
	score/include/rtems/system.h, score/include/rtems/score/address.h,
	score/include/rtems/score/apiext.h,
	score/include/rtems/score/apimutex.h,
	score/include/rtems/score/bitfield.h,
	score/include/rtems/score/chain.h,
	score/include/rtems/score/context.h,
	score/include/rtems/score/coremsg.h,
	score/include/rtems/score/coremutex.h,
	score/include/rtems/score/coresem.h,
	score/include/rtems/score/heap.h, score/include/rtems/score/interr.h,
	score/include/rtems/score/isr.h, score/include/rtems/score/mpci.h,
	score/include/rtems/score/mppkt.h,
	score/include/rtems/score/object.h,
	score/include/rtems/score/objectmp.h,
	score/include/rtems/score/priority.h,
	score/include/rtems/score/stack.h,
	score/include/rtems/score/states.h,
	score/include/rtems/score/sysstate.h,
	score/include/rtems/score/thread.h,
	score/include/rtems/score/threadmp.h,
	score/include/rtems/score/threadq.h, score/include/rtems/score/tod.h,
	score/include/rtems/score/tqdata.h,
	score/include/rtems/score/userext.h,
	score/include/rtems/score/watchdog.h,
	score/include/rtems/score/wkspace.h,
	score/inline/rtems/score/address.inl,
	score/inline/rtems/score/chain.inl,
	score/inline/rtems/score/coremutex.inl,
	score/inline/rtems/score/coresem.inl,
	score/inline/rtems/score/heap.inl,
	score/inline/rtems/score/object.inl,
	score/inline/rtems/score/stack.inl,
	score/inline/rtems/score/thread.inl,
	score/inline/rtems/score/tqdata.inl, score/macros/README,
	score/src/heap.c, score/src/threadmp.c, score/src/threadready.c,
	score/src/threadstartmultitasking.c: Improve generated Doxygen
	output. Fix spelling and grammar errors in comments. Correct names of
	some variables and propagate changes.
2006-01-16 15:13:58 +00:00
Ralf Corsepius
6be04ed043 New. 2006-01-12 10:01:38 +00:00
Ralf Corsepius
4e971660a1 Remove all-local. 2006-01-12 09:57:43 +00:00
Eric Norum
1a561f8130 Remove floating point calculations and the C preprocessor conditions which enabled them. 2005-09-29 14:20:21 +00:00
Chris Johns
a4ad7597d1 2005-05-18 Chris Johns <chrisj@rtems.org>
* libmisc/capture/capture-cli.c: Fix the output of ctload when
	there exists a large number of tasks.
2005-05-18 00:04:17 +00:00
Ralf Corsepius
edbd3df670 2005-04-09 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/monitor/mon-symbols.c: size_t.
2005-04-09 05:19:45 +00:00
Ralf Corsepius
f3ad98f483 2005-02-09 Ralf Corsepius <ralf.corsepius@rtems.org>
* libmisc/untar/untar.c (_rtems_octal2ulong): Replace.
2005-02-09 03:24:29 +00:00
Ralf Corsepius
017ec60782 New header guards. 2005-02-07 13:26:23 +00:00
Ralf Corsepius
1996aee7f0 2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c,
	libmisc/untar/untar.c, libmisc/untar/untar.h:
	Various generalizations and fixes.
2005-02-07 13:25:14 +00:00
Ralf Corsepius
9d0e65ed92 2005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
* Makefile.am: Add include/rtems/tar.h.
	Merge-in header rules from libmisc/Makefile.am
	* libmisc/Makefile.am: Remove header rules.
	Remove lib-specific CPPFLAGS.
	* configure.ac: Add checks for <tar.h>
2005-02-07 13:19:45 +00:00