summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/monitor/mon-object.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-03-24cpukit/libmisc/monitor/: Manually change to BSD-2 licenseJoel Sherrill1-2/+31
This code did not have any copyrights or licenses and a bit of archeology was needed to determine authorship. This code was in the initial import into the RTEMS CVS repository when it was established in May 1995. There was very little, if any, code not written by OAR Corporation in that initial import. After discussion with Chris Johns, it was determined that this code was from OAR Corporation and that he had added a few features later. Both Chris Johns and OAR Corporation have given permission to relicense. Updates #3053.
2018-10-29posix: Provide threads by defaultSebastian Huber1-6/+2
Update #2514.
2016-03-14monitor: Use object allocator lockSebastian Huber1-1/+1
Use object allocator lock instead of disabled thread dispatching. Update #2555.
2015-07-23score: Introduce Thread_queue_HeadsSebastian Huber1-2/+2
Move the storage for the thread queue heads to the threads. Each thread provides a set of thread queue heads allocated from a dedicated memory pool. In case a thread blocks on a queue, then it lends its heads to the queue. In case the thread unblocks, then it takes a free set of threads from the queue. Since a thread can block on at most one queue this works. This mechanism is used in FreeBSD. The motivation for this change is to reduce the memory demands of the synchronization objects. On a 32-bit uni-processor configuration the Thread_queue_Control size is now 8 bytes, compared to 64 bytes in RTEMS 4.10 (other changes reduced the size as well).
2013-08-08PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__Sebastian Huber1-1/+0
2013-07-23rtems: Create tasks implementation headerSebastian Huber1-0/+1
Move implementation specific parts of tasks.h and tasks.inl into new header file tasksimpl.h. The tasks.h contains now only the application visible API.
2013-07-23rtems: Create region implementation headerSebastian Huber1-0/+1
Move implementation specific parts of region.h and region.inl into new header file regionimpl.h. The region.h contains now only the application visible API.
2013-07-23rtems: Create part implementation headerSebastian Huber1-0/+1
Move implementation specific parts of part.h and part.inl into new header file partimpl.h. The part.h contains now only the application visible API.
2013-07-23sapi: Create extension implementation headerSebastian Huber1-0/+1
Move implementation specific parts of extension.h and extension.inl into new header file extensionimpl.h. The extension.h contains now only the application visible API.
2013-07-22posix: Create pthread implementation headerSebastian Huber1-1/+1
Move implementation specific parts of pthread.h and pthread.inl into new header file pthreadimpl.h. The pthread.h contains now only the application visible API.
2013-07-22rtems: Create message queue implementation headerSebastian Huber1-0/+1
Move implementation specific parts of message.h and message.inl into new header file messageimpl.h. The message.h contains now only the application visible API.
2013-07-18rtems: Create semaphore implementation headerSebastian Huber1-0/+1
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.
2012-11-07monitor: Add const qualifierSebastian Huber1-3/+3
2012-11-07monitor: Avoid unused functionSebastian Huber1-0/+2
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+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.
2011-12-062011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-3/+3
* libmisc/monitor/mon-network.c: Include <rtems/monitor.h>. * libmisc/monitor/mon-object.c: Make rtems_monitor_object_canonical_next_remote, rtems_monitor_object_dump_1, rtems_monitor_object_dump_all static. * libmisc/monitor/mon-prmisc.c: Make rtems_monitor_dump_assoc_bitfield static. * libmisc/monitor/mon-symbols.c: Make rtems_monitor_symbol_dump_all static.
2008-12-182008-12-18 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill1-12/+12
* libmisc/serdbg/termios_printk.c, libmisc/serdbg/termios_printk.h: Fixed incompatible return value. * libmisc/cpuuse/cpuusagereport.c: Changed output format. * libmisc/Makefile.am, libmisc/monitor/mon-editor.c: New file. * libmisc/capture/capture-cli.c, libmisc/monitor/mon-command.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c, libmisc/monitor/mon-prmisc.c, libmisc/monitor/mon-symbols.c, libmisc/monitor/monitor.h, libmisc/shell/cat_file.c, libmisc/shell/cmds.c, libmisc/shell/internal.h, libmisc/shell/main_help.c, libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/shell/shell_cmdset.c, libmisc/shell/shell_getchar.c, libmisc/shell/str2int.c: Various global data is now read only. Added 'const' qualifier to many pointer parameters. It is no longer possible to remove monitor commands. Moved monitor line editor into a separate file to avoid unnecessary dependencies.
2008-09-082008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-2/+2
* 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.
2008-09-01Convert to using "bool".Ralf Corsepius1-3/+3
2008-07-292008-07-29 Tim Cussins <timcussins@eml.cc>Joel Sherrill1-0/+2
* ChangeLog, libmisc/monitor/mon-object.c: Add mising RTEMS_POSIX_API conditional.
2008-07-172008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-0/+11
* libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c, libmisc/monitor/monitor.h, libmisc/shell/main_chmod.c, libmisc/shell/main_tty.c, libmisc/shell/main_umask.c, libmisc/shell/main_whoami.c: Add pthread command to monitor when POSIX is enabled. Remove include of rtems/monitor.h from files not related.
2008-01-292008-01-29 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-9/+14
* itron/src/exd_tsk.c, itron/src/task.c, libmisc/capture/capture.c, libmisc/monitor/mon-config.c, libmisc/monitor/mon-driver.c, libmisc/monitor/mon-itask.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-mpci.c, libmisc/monitor/mon-object.c, libmisc/monitor/mon-symbols.c, posix/src/cancelrun.c, posix/src/pthreadexit.c, rtems/Makefile.am, rtems/preinstall.am, rtems/include/rtems.h, rtems/include/rtems/rtems/support.h, rtems/inline/rtems/rtems/tasks.inl, rtems/src/eventmp.c, rtems/src/msgmp.c, rtems/src/partmp.c, rtems/src/regionmp.c, rtems/src/rtemsobjectgetname.c, rtems/src/semmp.c, rtems/src/signalmp.c, rtems/src/taskdelete.c, rtems/src/taskmp.c, rtems/src/timerserver.c, score/Makefile.am, score/include/rtems/score/object.h, score/inline/rtems/score/object.inl, score/src/Unlimited.txt, score/src/objectgetnameasstring.c, score/src/threadqextractwithproxy.c: Add new Object Services collection. This changed the name of a few previously public but undocumented services and added a some new services. * rtems/include/rtems/rtems/object.h, rtems/src/rtemsbuildid.c, rtems/src/rtemsbuildname.c, rtems/src/rtemsobjectapimaximumclass.c, rtems/src/rtemsobjectapiminimumclass.c, rtems/src/rtemsobjectgetapiclassname.c, rtems/src/rtemsobjectgetapiname.c, rtems/src/rtemsobjectgetclassicname.c, rtems/src/rtemsobjectgetclassinfo.c, rtems/src/rtemsobjectidapimaximum.c, rtems/src/rtemsobjectidapiminimum.c, rtems/src/rtemsobjectidgetapi.c, rtems/src/rtemsobjectidgetclass.c, rtems/src/rtemsobjectidgetindex.c, rtems/src/rtemsobjectidgetnode.c, rtems/src/rtemsobjectsetname.c, score/src/objectapimaximumclass.c, score/src/objectgetinfo.c, score/src/objectgetinfoid.c, score/src/objectsetname.c: New files. * rtems/src/rtemsidtoname.c: Removed.
2007-09-05Added osmonweb support functionality to monitorThomas Doerfler1-0/+24
2007-09-042007-09-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* 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-05-282007-05-28 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-11/+0
* 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-02-06Use size_t for sizes.Ralf Corsepius1-1/+1
2006-01-162006-01-16 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
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.
2004-11-012004-11-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-20/+25
* libmisc/monitor/mon-manager.c, libmisc/monitor/mon-object.c: Remove references to _Object_Is_local in single processor configurations.
2004-04-172004-04-17 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-2/+2
* 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.
2004-04-16Remove stray white spaces.Ralf Corsepius1-11/+11
2004-03-262004-03-26 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius1-6/+6
* 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.
2003-09-262003-09-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill1-3/+3
PR 495/rtems_misc * capture/capture-cli.c, monitor/mon-command.c, monitor/mon-config.c, monitor/mon-monitor.c, monitor/mon-object.c, monitor/mon-symbols.c, monitor/monitor.h, shell/cmds.c: Move to making libmisc 16/32 bit clean.
2003-07-082003-07-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius1-0/+4
* 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.
2002-07-012002-07-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-2/+3
* capture/capture-cli.c, cpuuse/cpuuse.c, monitor/mon-monitor.c, monitor/mon-object.c, monitor/monitor.h: Corrected use of _Objects_Information_table now that it is a two dimensional array based upon API and class. In addition, in the monitor, corrected an error which occured when a target has 64 bit pointers.
1998-11-23Added --disable-multiprocessing flag and modified a lot of files to makeJoel Sherrill1-0/+8
it work.
1997-09-21Cleaned up as part of adding the Monitor test.Joel Sherrill1-3/+1
1996-09-18casts added to numerous arguments, prototypes corrected, andJoel Sherrill1-0/+2
proper include files added.
1996-04-22updates from Tony BennettJoel Sherrill1-4/+1
1996-03-06As part of reducing visibility into rtems and hiding the .inl filesJoel Sherrill1-0/+1
from the application code, this file required more visibility than is given by default to application code.
1996-01-17Update from Tony Bennett (tbennett@divnc.com)Joel Sherrill1-34/+27
1995-09-19Minor bug fixes to get all targets compilable and running. TheJoel Sherrill1-1/+1
single biggest changes were the expansion of the workspace size macro to include other types of objects and the increase in the minimum stack size for most CPUs.
1995-09-11The word "RTEMS" almost completely removed from the core.Joel Sherrill1-1/+4
Configuration Table Template file added and all tests modified to use this. All gvar.h and conftbl.h files removed from test directories. Configuration parameter maximum_devices added. Core semaphore and mutex handlers added and RTEMS API Semaphore Manager updated to reflect this. Initialization sequence changed to invoke API specific initialization routines. Initialization tasks table now owned by RTEMS Tasks Manager. Added user extension for post-switch. Utilized user extensions to implement API specific functionality like signal dispatching. Added extensions to the System Initialization Thread so that an API can register a function to be invoked while the system is being initialized. These are largely equivalent to the pre-driver and post-driver hooks. Added the Modules file oar-go32_p5, modified oar-go32, and modified the file make/custom/go32.cfg to look at an environment varable which determines what CPU model is being used. All BSPs updated to reflect named devices and clock driver's IOCTL used by the Shared Memory Driver. Also merged clock isr into main file and removed ckisr.c where possible. Updated spsize to reflect new and moved variables. Makefiles for the executive source and include files updated to show break down of files into Core, RTEMS API, and Neither. Header and inline files installed into subdirectory based on whether logically in the Core or a part of the RTEMS API.
1995-08-23Moved _Thread_Information -> _RTEMS_tasks_Information.Joel Sherrill1-1/+1
Added a table of object information control blocks. Modified _Thread_Get so it looks up a thread regardless of which thread management "entity" (manager, internal, etc) actually "owns" it.
1995-08-18+ Added object type field to object id.Joel Sherrill1-3/+7
+ Added name pointer to Object_Control. + Modified Object Open and Close to address name field. + Removed name as separate element from Thread and Proxy Control. + Added parameter "object class" to calls to Initialize Information
1995-08-17Numerous miscellaneous features incorporated from Tony BennettJoel Sherrill1-0/+376
(tbennett@divnc.com) including the following major additions: + variable length messages + named devices + debug monitor + association tables/variables