| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* libmisc/stackchk/check.c: Make compile again.
* sapi/src/io.c, score/src/heap.c: Address dead assignment
issues found by clang.
|
|
|
|
|
| |
* libmisc/stackchk/check.c: Address casting issue highlighted by clang.
There was no need for an intermediate cast to a structure pointer.
|
|
|
|
|
|
| |
Coverity Id 169
* libmisc/stackchk/check.c: Readd line accidentally deleted between
1.67 and 1.68.
|
|
|
|
|
| |
Coverity Id 163
* libmisc/stackchk/check.c: Adjust conditional compilation.
|
|
|
|
|
|
| |
* libmisc/stackchk/check.c: If this port does not allocate the
interrupt stack, then it must always be a thread stack. Do not
include code to print the interrupt stack information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libblock/include/rtems/ide_part_table.h, libblock/src/bdbuf.c,
libcsupport/src/__times.c, libcsupport/src/libio_init.c,
libcsupport/src/mallocfreespace.c, libcsupport/src/mount-mgr.c,
libcsupport/src/mount.c, libcsupport/src/rewinddir.c,
libcsupport/src/seekdir.c, libcsupport/src/telldir.c,
libcsupport/src/unmount.c, libfs/src/dosfs/fat.c,
libfs/src/dosfs/fat_fat_operations.c, libfs/src/dosfs/msdos_create.c,
libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c,
libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c,
libfs/src/dosfs/msdos_fsunmount.c, libfs/src/dosfs/msdos_initsupp.c,
libfs/src/dosfs/msdos_rename.c, libmisc/cpuuse/cpuusagereport.c,
libmisc/shell/vis.c, libmisc/stackchk/check.c, sapi/src/posixapi.c,
telnetd/telnetd.c: Remove include of assert.h when it is not needed.
|
|
|
|
| |
* libmisc/stackchk/check.c: More clean up and coverage improvements..
|
|
|
|
| |
* libmisc/stackchk/check.c: Clean up to improve coverage.
|
|
|
|
|
| |
* libmisc/stackchk/check.c: Remove bogus casts.
Use PRIxPTR to printk pointers.
|
|
|
|
| |
* libmisc/stackchk/check.c: Fix warning.
|
|
|
|
|
|
|
|
|
|
| |
Coverity Id 12
Coverity Id 13
Coverity Id 14
Coverity Id 15
* libmisc/stackchk/check.c: Rewrote loop to avoid possible buffer
overruns when the pattern area size is not a multiple of 16. There
were no current ports impacted by this but better to be safe.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* score/include/rtems/score/heap.h, score/inline/rtems/score/heap.inl,
score/src/heapallocate.c, score/src/heap.c, score/src/heapextend.c,
score/src/heapresizeblock.c, score/src/heapwalk.c: Documenation.
Simplified block resize. Improved heap walk. Changed heap layout to
avoid a special case for _Heap_Is_used() and _Heap_Is_free().
* libmisc/stackchk/check.c: Update for heap API changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/src/free.c, libmisc/stackchk/check.c,
rtems/include/rtems/rtems/region.h, rtems/src/regioncreate.c,
rtems/src/regionextend.c, rtems/src/regiongetinfo.c,
rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c,
rtems/src/regionresizesegment.c, score/src/pheapallocate.c,
score/src/pheapallocatealigned.c, score/src/pheapextend.c,
score/src/pheapfree.c, score/src/pheapgetblocksize.c,
score/src/pheapgetfreeinfo.c, score/src/pheapgetinfo.c,
score/src/pheapgetsize.c, score/src/pheapinit.c,
score/src/pheapresizeblock.c, score/src/pheapwalk.c:
Update for heap API changes.
* score/include/rtems/score/apimutex.h,
score/include/rtems/score/object.h: Documentation.
* score/include/rtems/score/heap.h,
score/include/rtems/score/protectedheap.h,
score/inline/rtems/score/heap.inl, score/src/heap.c,
score/src/heapallocate.c, score/src/heapallocatealigned.c,
score/src/heapextend.c, score/src/heapfree.c,
score/src/heapgetfreeinfo.c, score/src/heapgetinfo.c,
score/src/heapresizeblock.c, score/src/heapsizeofuserarea.c,
score/src/heapwalk.c: Overall cleanup. Added boundary constraint to
allocation function. More changes follow.
|
|
|
|
|
|
| |
* libcsupport/src/malloc_initialize.c, sapi/src/exinit.c,
score/src/threadstartmultitasking.c: Fix spacing.
* libmisc/stackchk/check.c: Move variable into compiler specific conditional.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libmisc/stackchk/check.c, rtems/src/regionreturnsegment.c,
rtems/src/regiongetsegmentsize.c, src/heapalignupuptr.c,
src/heapallocatealigned.c, src/heapallocate.c, src/heap.c,
src/heapextend.c, src/heapfree.c, src/heapgetfreeinfo.c,
src/heapgetinfo.c, src/heapresizeblock.c, src/heapsizeofuserarea.c,
src/heapwalk.c, src/pheapgetblocksize.c, inline/rtems/score/heap.inl,
include/rtems/score/heap.h: Overall cleanup. Changed all types for
addresses, sizes, offsets and alignments to uintptr_t. Reformatted.
Added variables for clarity. Renamed various objects. Enabled
_HAssert() for all instances. More changes follow.
|
|
|
|
| |
* libmisc/shell/shell.c, libmisc/stackchk/check.c: Eliminate warnings.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Makefile.am, preinstall.am, libmisc/Makefile.am,
libmisc/shell/shell.c, libmisc/shell/shell.h, telnetd/check_passwd.c,
telnetd/telnetd.c, telnetd/telnetd.h:
Generalized login check.
* libmisc/shell/login.h, libmisc/shell/login_check.c,
libmisc/shell/login_prompt.c: New files.
* libmisc/stackchk/check.c: Changed format for blown stack message.
* libcsupport/src/libio_sockets.c: Removed superfluous cast.
* libnetworking/rtems/ftpfs.h: Documentation.
|
|
|
|
|
| |
PR 1374/misc
* libmisc/stackchk/check.c: Fix printk formatting string.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libio_.h, libcsupport/src/libio_sockets.c,
libfs/src/dosfs/fat.h, libfs/src/dosfs/msdos.h,
libfs/src/imfs/deviceio.c, libmisc/monitor/mon-monitor.c,
libmisc/monitor/mon-object.c, libmisc/monitor/mon-symbols.c,
libmisc/monitor/monitor.h, libmisc/stackchk/internal.h,
rtems/inline/rtems/rtems/part.inl, score/include/rtems/system.h,
score/include/rtems/score/bitfield.h, score/src/mpci.c,
score/src/objectextendinformation.c, score/src/threadmp.c: Remove
extraneous spaces.
|
| |
|
|
|
|
| |
* libmisc/shell/shellconfig.h, libmisc/stackchk/stackchk.h: Fix typos.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* itron/include/rtems/itron/object.h, itron/src/cre_tsk.c,
libblock/src/show_bdbuf.c, libmisc/capture/capture-cli.c,
libmisc/capture/capture.c, libmisc/monitor/mon-manager.c,
libmisc/stackchk/check.c, posix/src/condinit.c,
posix/src/keycreate.c, posix/src/mqueuecreatesupp.c,
posix/src/mqueuedeletesupp.c, posix/src/mqueuenametoid.c,
posix/src/mqueueopen.c, posix/src/mqueueunlink.c,
posix/src/mutexinit.c, posix/src/pbarrierinit.c,
posix/src/prwlockinit.c, posix/src/pspininit.c,
posix/src/pthreadcreate.c, posix/src/pthreadexit.c,
posix/src/semaphorecreatesupp.c, posix/src/semaphorenametoid.c,
posix/src/timercreate.c, rtems/src/barrierident.c,
rtems/src/dpmemident.c, rtems/src/msgqident.c, rtems/src/partident.c,
rtems/src/ratemonident.c, rtems/src/regionident.c,
rtems/src/semident.c, rtems/src/taskident.c, rtems/src/timerident.c,
sapi/src/extensionident.c, score/Makefile.am,
score/include/rtems/score/object.h,
score/inline/rtems/score/object.inl, score/src/apimutexallocate.c,
score/src/objectextendinformation.c,
score/src/objectgetnameasstring.c, score/src/objectmp.c,
score/src/objectnametoid.c: Convert the Objects_Name type from a
simple type to a union of an unsigned 32 bit integer and a pointer.
This should help eliminate weird casts between u32 and pointers in
various places. The APIs now have to explicitly call _u32 or _string
versions of helper routines. This should also simplify things and
eliminate the need for ugly casts in some cases.
* score/src/objectclearname.c, score/src/objectcomparenameraw.c,
score/src/objectcomparenamestring.c, score/src/objectcopynameraw.c,
score/src/objectcopynamestring.c: Removed.
|
|
|
|
|
| |
* libmisc/stackchk/check.c: Add print of current stack pointer and
stack info even if stack checker is not initialized.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* libmisc/stackchk/check.c: Fix alignment of output.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* libmisc/stackchk/check.c: Make checking the integrity of the pattern
area contingent on the stack checker user extension having been
initialized.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* libmisc/stackchk/check.c: Add code to check validity of frame pointer
in addition to the pattern area being overwritten. Also do some
cleanup.
|
|
|
|
|
| |
* libmisc/stackchk/check.c, libmisc/stackchk/internal.h,
libmisc/stackchk/stackchk.h: Change dump usage to report usage.
|
|
|
|
|
|
| |
* 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_.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* monitor/monitor.h: Let rtems_monitor_config_dump return int.
* monitor/mon-config.c: Ditto. Use PRI*N macros.
* monitor/mon-itask.c, monitor/mon-prmisc.c: Use PRI*N macros.
|
|
|
|
|
|
|
| |
* configure.ac, libmisc/cpuuse/README, libmisc/stackchk/README,
librpc/src/xdr/xdr_float.c, score/cpu/Makefile.am,
score/include/rtems/score/mppkt.h: i960 obsoleted and all references
removed.
|
|
|
|
| |
* libmisc/stackchk/check.c: Spacing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libmisc/capture/capture-cli.c, libmisc/cpuuse/cpuuse.c,
libmisc/dumpbuf/dumpbuf.c, libmisc/fsmount/fsmount.c,
libmisc/monitor/mon-command.c, libmisc/monitor/mon-config.c,
libmisc/monitor/mon-dname.c, libmisc/monitor/mon-driver.c,
libmisc/monitor/mon-extension.c, libmisc/monitor/mon-itask.c,
libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-mpci.c,
libmisc/monitor/mon-object.c, libmisc/monitor/mon-prmisc.c,
libmisc/monitor/mon-queue.c, libmisc/monitor/mon-symbols.c,
libmisc/monitor/mon-task.c, libmisc/rtmonuse/rtmonuse.c,
libmisc/shell/cmds.c, libmisc/shell/shell.c, libmisc/shell/shell.h,
libmisc/stackchk/check.c, libmisc/untar/untar.c: Use
fprintf(stdout,...) instead of printf.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libmisc/capture/capture-cli.c, libmisc/capture/capture.c,
libmisc/capture/capture.h, libmisc/cpuuse/cpuuse.c,
libmisc/devnull/devnull.c, libmisc/fsmount/fsmount.h,
libmisc/monitor/mon-config.c, libmisc/monitor/mon-dname.c,
libmisc/monitor/mon-driver.c, libmisc/monitor/mon-extension.c,
libmisc/monitor/mon-itask.c, libmisc/monitor/mon-monitor.c,
libmisc/monitor/mon-mpci.c, libmisc/monitor/mon-object.c,
libmisc/monitor/mon-prmisc.c, libmisc/monitor/mon-queue.c,
libmisc/monitor/mon-server.c, libmisc/monitor/mon-symbols.c,
libmisc/monitor/monitor.h, libmisc/monitor/symbols.h,
libmisc/mw-fb/mw_uid.c, libmisc/rtmonuse/rtmonuse.c,
libmisc/serdbg/serdbg.h, libmisc/serdbg/serdbgio.c,
libmisc/serdbg/termios_printk.c, libmisc/serdbg/termios_printk.h,
libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/stackchk/check.c,
libmisc/stackchk/internal.h: Convert to using c99 fixed size types.
|
| |
|
|
|
|
|
| |
PR 531/rtems_misc
* rtmonuse/rtmonuse.c, stackchk/check.c: Correct indexing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* capture/Makefile.am: Remove.
* cpuuse/Makefile.am: Remove.
* devnull/Makefile.am: Remove.
* dummy/Makefile.am: Remove.
* dumpbuf/Makefile.am: Remove.
* fsmount/Makefile.am: Remove.
* monitor/Makefile.am: Remove.
* mw-fb/Makefile.am: Remove.
* rtmonuse/Makefile.am: Remove.
* serdbg/Makefile.am: Remove.
* shell/Makefile.am: Remove.
* stackchk/Makefile.am: Remove.
* untar/Makefile.am: Remove.
* Makefile.am: Merge-in the Makefile.ams above.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* capture/config.h: Remove.
* capture/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* cpuuse/config.h: Remove.
* cpuuse/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* devnull/config.h: Remove.
* devnull/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* dummy/config.h: Remove.
* dummy/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* dumpbuf/config.h: Remove.
* dumpbuf/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* monitor/config.h: Remove.
* monitor/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* mw-fb/config.h: Remove.
* mw-fb/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* rtmonuse/config.h: Remove.
* rtmonuse/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* serdbg/config.h: Remove.
* serdbg/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* shell/config.h: Remove.
* shell/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* stackchk/config.h: Remove.
* stackchk/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
* untar/config.h: Remove.
* untar/Makefile.am: Remove config.h.
AM_CPPFLAGS += -I$(top_builddir).
|
|
|
|
|
|
|
|
|
| |
* cpuuse/cpuuse.c, cpuuse/cpuuse.h, devnull/devnull.c,
devnull/devnull.h, dummy/dummy.c, dumpbuf/dumpbuf.c,
dumpbuf/dumpbuf.h, fsmount/fsmount.c, fsmount/fsmount.h,
serdbg/serdbgio.c, serdbg/termios_printk.c, stackchk/check.c,
stackchk/internal.h, stackchk/stackchk.h, untar/untar.c,
untar/untar.h: URL for license changed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Remove (Merged into ../configure.ac).
* Makefile.am:
Reflect having merged configure.ac into ../configure.ac.
* capture/config.h: New.
* capture/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* cpuuse/config.h: New.
* cpuuse/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* devnull/config.h: New.
* devnull/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* dummy/config.h: New.
* dummy/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* dumpbuf/config.h: New.
* dumpbuf/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* monitor/config.h: New.
* monitor/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* mw-fb/config.h: New.
* mw-fb/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* rtmonuse/config.h: New.
* rtmonuse/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* serdbg/config.h: New.
* serdbg/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* shell/config.h: New.
* shell/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* stackchk/config.h: New.
* stackchk/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* untar/config.h: New.
* untar/Makefile.am: Add config.h.
Reflect having merged configure.ac into ../configure.ac.
* wrapup/Makefile.am:
Reflect having merged configure.ac into ../configure.ac.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* capture/capture-cli.c: Add config-header support.
* capture/capture.c: Add config-header support.
* cpuuse/cpuuse.c: Add config-header support.
* devnull/devnull.c: Add config-header support.
* dummy/dummy.c: Add config-header support.
* dumpbuf/dumpbuf.c: Add config-header support.
* monitor/mon-command.c: Add config-header support.
* monitor/mon-config.c: Add config-header support.
* monitor/mon-dname.c: Add config-header support.
* monitor/mon-driver.c: Add config-header support.
* monitor/mon-extension.c: Add config-header support.
* monitor/mon-itask.c: Add config-header support.
* monitor/mon-manager.c: Add config-header support.
* monitor/mon-monitor.c: Add config-header support.
* monitor/mon-mpci.c: Add config-header support.
* monitor/mon-object.c: Add config-header support.
* monitor/mon-prmisc.c: Add config-header support.
* monitor/mon-queue.c: Add config-header support.
* monitor/mon-server.c: Add config-header support.
* monitor/mon-symbols.c: Add config-header support.
* monitor/mon-task.c: Add config-header support.
* mw-fb/mw_fb.c: Add config-header support.
* mw-fb/mw_uid.c: Add config-header support.
* rtmonuse/rtmonuse.c: Add config-header support.
* serdbg/serdbg.c: Add config-header support.
* serdbg/serdbgio.c: Add config-header support.
* serdbg/termios_printk.c: Add config-header support.
* shell/cmds.c: Add config-header support.
* stackchk/check.c: Add config-header support.
* untar/untar.c: Add config-header support.
|