aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Implement the PT_LWPINFO request. This request can be used by theMarcel Moolenaar2004-07-125-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tracing process to obtain information about the LWP that caused the traced process to stop. Debuggers can use this information to select the thread currently running on the LWP as the current thread. The request has been made compatible with NetBSD for as much as possible. This implementation differs from NetBSD in the following ways: 1. The data argument is allowed to be smaller than the size of the ptrace_lwpinfo structure known to the kernel, but not 0. This is opposite to what NetBSD allows. The reason for this is that we can extend the structure without affecting older binaries. 2. On NetBSD the tracing process is to set the pl_lwpid field to the Id of the LWP it wants information of. We don't do that. Our ptrace interface allows passing the LWP Id instead of the PID. The tracing process is to set the PID to the LWP Id it wants information of. 3. When the PID is actually the PID of the tracing process, this request returns the information about the LWP that caused the process to stop. This was the whole purpose of the request in the first place. When the traced process has exited, this request will return the LWP Id 0, indicating that the process state is not the result of an event specific to a LWP. Notes: svn path=/head/; revision=132016
* Cache a pointer to the old proc (as well as negative cache) to makeAlfred Perlstein2004-07-121-2/+13
| | | | | | | | | computing the io statistics over and over not as expensive. This is a bit of a cop out, as I should just allocate a struct with the computed values, but this will do for now. Notes: svn path=/head/; revision=132015
* Reserve a pointer "ki_udata" in kinfo_proc as a convenience for userland.Alfred Perlstein2004-07-121-3/+4
| | | | Notes: svn path=/head/; revision=132014
* Introduce a global mtx 'ngsocketlist_mtx' to protect the globalRobert Watson2004-07-121-0/+8
| | | | | | | ng_socket list during insert/delete. Notes: svn path=/head/; revision=132013
* Document the new PT_LWPINFO request. In fact, the request is so newMarcel Moolenaar2004-07-121-0/+19
| | | | | | | | it hasn't even been implemented yet. I just wanted to be the first to try a new approach to development ;-) Notes: svn path=/head/; revision=132012
* pmap_remove_pages() must not remove wired mappings. SinceAlan Cox2004-07-123-12/+0
| | | | | | | | | pmap_remove_pages() is an optimization, its implementation is optional. Discussed with: grehan Notes: svn path=/head/; revision=132011
* Mark 'makeup' in ng_frame_relay as const, as its values are immutable.Robert Watson2004-07-121-1/+1
| | | | Notes: svn path=/head/; revision=132010
* Remove spl's from netatalk in preparation to merge locking.Robert Watson2004-07-122-30/+1
| | | | Notes: svn path=/head/; revision=132009
* Call setlocale() with category LC_ALL instead of LC_MESSAGES. We needTim J. Robbins2004-07-121-1/+1
| | | | | | | | | LC_CTYPE and LC_COLLATE to correctly interpret regular expressions returned by nl_langinfo(YESEXPR), and it doesn't hurt to include the rest. Notes: svn path=/head/; revision=132008
* Dump the actual bad values when this assertion is tripped.Alfred Perlstein2004-07-121-1/+3
| | | | Notes: svn path=/head/; revision=132007
* Chase the docproj ports required to build a release with NOPORTS butMurray Stokely2004-07-121-1/+6
| | | | | | | | | | without NODOCS. PR: ports/68153 Submitted by: Dmitry Morozovsky <marck@rinet.ru> Notes: svn path=/head/; revision=132006
* Make 'S' in interactive mode toggle display of system processes.Alfred Perlstein2004-07-123-3/+11
| | | | Notes: svn path=/head/; revision=132005
* Respect locale settings from the environment.Tim J. Robbins2004-07-121-0/+3
| | | | Notes: svn path=/head/; revision=132004
* Update the README notes to include the current list of supportedTim Kientzle2004-07-121-49/+47
| | | | | | | formats and remove some outdated comments about library limitations. Notes: svn path=/head/; revision=132003
* Re-add the gdb command. It was removed to be replaced by somethingMarcel Moolenaar2004-07-121-0/+12
| | | | | | | | | | | | more generic, but that didn't actually happen. Since the feature to switch backends (and historically this means from DDB to GDB) is important, make sure people can do just that until such the generic mechanism actually sees the light of day. Suggested by: rwatson@ Notes: svn path=/head/; revision=132002
* Make kdb_dbbe_select() available as an interface function. This allowsMarcel Moolenaar2004-07-122-9/+21
| | | | | | | | | changing the backend from outside the KDB frontend. For example from within a backend. Rewrite kdb_sysctl_current to make use of this function as well. Notes: svn path=/head/; revision=132001
* Fix a typo that slipped in during my last commit to this file.Giorgos Keramidas2004-07-121-1/+1
| | | | | | | Submitted by: fox@vader.aacc.cc.md.us Notes: svn path=/head/; revision=132000
* Use sockbuf_pushsync() to synchronize stack and socket buffer stateRobert Watson2004-07-111-34/+47
| | | | | | | | | | | | | | | | | | | | | | | | in soreceive() after removing an MT_SONAME mbuf from the head of the socket buffer. When processing MT_CONTROL mbufs in soreceive(), first remove all of the MT_CONTROL mbufs from the head of the socket buffer to a local mbuf chain, then feed them into dom_externalize() as a set, which both avoids thrashing the socket buffer lock when handling multiple control mbufs, and also avoids races with other threads acting on the socket buffer when the socket buffer mutex is released to enter the externalize code. Existing races that might occur if the protocol externalize method blocked during processing have also been closed. Now that we synchronize socket buffer and stack state following modifications to the socket buffer, turn the manual synchronization that previously followed control mbuf processing with a set of assertions. This can eventually be removed. The soreceive() code is now substantially more MPSAFE. Notes: svn path=/head/; revision=131999
* Remove the last bits of SPECHASH.Poul-Henning Kamp2004-07-111-6/+0
| | | | Notes: svn path=/head/; revision=131998
* Add sockbuf_pushsync(), an inline function that, following a change toRobert Watson2004-07-111-0/+38
| | | | | | | | | | | | | the head of the mbuf chains in a socket buffer, re-synchronizes the cache pointers used to optimize socket buffer appends. This will be used by soreceive() before dropping socket buffer mutexes to make sure a consistent version of the socket buffer is visible to other threads. While here, update copyright to account for substantial rewrite of much socket code required for fine-grained locking. Notes: svn path=/head/; revision=131997
* Better descriptions of the cdev malloc class and mutex.Poul-Henning Kamp2004-07-111-2/+2
| | | | Notes: svn path=/head/; revision=131996
* Whitespace cleanup. This will simplify a future merge fromColin Percival2004-07-111-166/+161
| | | | | | | IANA's official list of port assignments. Notes: svn path=/head/; revision=131994
* Add additional annotations to soreceive(), documenting the effects ofRobert Watson2004-07-111-1/+35
| | | | | | | | | | | | | | locking on 'nextrecord' and concerns regarding potentially inconsistent or stale use of socket buffer or stack fields if they aren't carefully synchronized whenever the socket buffer mutex is released. Document that the high-level sblock() prevents races against other readers on the socket. Also document the 'type' logic as to how soreceive() guarantees that it will only return one of normal data or inline out-of-band data. Notes: svn path=/head/; revision=131993
* MFi386: rev 1.213 -- fix DELAY while the debugger is active.Marcel Moolenaar2004-07-111-12/+23
| | | | | | | | | This also fixes the (runtime) breakage introduced in the previous commit that was the result of a botched merge. This hasn't even been compile-tested... Notes: svn path=/head/; revision=131992
* Partially revert previous commit. Calling getit() unconditionally fixedMarcel Moolenaar2004-07-112-22/+44
| | | | | | | | | | | | | | | | | a problem that could also be fixed differently without reverting previous attempts to fix DELAY while the debugger is active (rev 1.204). The bug was that the i8254 implements a countdown timer, while for (k)db_active a countup timer was implemented. This resulted in premature termination and consequently the breakage of DELAY. The fix (relative to rev 1.211) is to implement a countdown timer for the kdb_active case. As such the ability to step clock initialization is preserved and DELAY does what is expected of it. Blushed: bde :-) Submitted by: bde Notes: svn path=/head/; revision=131991
* Fix a few cases that relied on 'implicit int' (constraint violation in C99).Stefan Farfeleder2004-07-115-3/+5
| | | | Notes: svn path=/head/; revision=131990
* Resolve a couple of warnings and bump WARNS to 6.Stefan Farfeleder2004-07-112-10/+12
| | | | Notes: svn path=/head/; revision=131989
* Expand and rewrite documentation using doxygen markup so that we canDoug Rabson2004-07-111-49/+206
| | | | | | | generate funky web pages from it. Notes: svn path=/head/; revision=131988
* Pass doxygen doc comments through to the output.Doug Rabson2004-07-111-8/+33
| | | | Notes: svn path=/head/; revision=131987
* Experimental support for using doxygen to generate kernel documentation.Doug Rabson2004-07-114-0/+482
| | | | Notes: svn path=/head/; revision=131986
* Document that sx_unlock() exists as a macro.Darren Reed2004-07-111-6/+23
| | | | | | | | Remove redundant include file, <sys/kernel.h>, and clean up the function list at the top with the addition of a "Sx utility macro" section. Notes: svn path=/head/; revision=131985
* Add sx_unlock() macro as a frontend to both sx_sunlock() and sx_xunlock(),Darren Reed2004-07-111-0/+7
| | | | | | | | using sx_cnt to determine what state the lock is in and call the respective function appropriately. Notes: svn path=/head/; revision=131984
* Until I'm ready to commit the better pccard probe/attach routines, effectivelyWarner Losh2004-07-111-0/+2
| | | | | | | comment them out. Notes: svn path=/head/; revision=131983
* Fix braino: Make sure there is a current backend before we return itsMarcel Moolenaar2004-07-111-2/+5
| | | | | | | | | | name in the debug.kdb.current sysctl. All other dereferences are properly guarded, but this one was overlooked. Reported by: Morten Rodal (morten at rodal dot no) Notes: svn path=/head/; revision=131982
* Introduce ttygone() which indicates that the hardware is detached.Poul-Henning Kamp2004-07-1116-375/+117
| | | | | | | Move dtrwait logic to the generic TTY level. Notes: svn path=/head/; revision=131981
* Fix document year.Tim J. Robbins2004-07-111-1/+1
| | | | | | | Noticed by: simon Notes: svn path=/head/; revision=131980
* Add fairly standard ENVIRONMENT and DIAGNOSTICS sections.Tim J. Robbins2004-07-111-1/+12
| | | | Notes: svn path=/head/; revision=131979
* Respect locale settings from the environment.Tim J. Robbins2004-07-111-0/+3
| | | | Notes: svn path=/head/; revision=131978
* MFi386: revision 1.212.Yoshihiro Takahashi2004-07-113-39/+33
| | | | Notes: svn path=/head/; revision=131977
* MFi386: revision 1.406Yoshihiro Takahashi2004-07-111-1/+3
| | | | Notes: svn path=/head/; revision=131976
* Fix typo in 20040702 entry.Simon L. B. Nielsen2004-07-111-1/+1
| | | | | | | Noticed by: Andre Guibert de Bruet <andy@siliconlandmark.com> Notes: svn path=/head/; revision=131975
* Clean up a bunch of white-space difference with IPFilter source as well asDarren Reed2004-07-111-9/+8
| | | | | | | | remove some superfluous assignments for .d_version/.d_flags in a cdevsw structure initialisation that never sees the light of day in FreeBSD. Notes: svn path=/head/; revision=131974
* Remove incomplete support for multi-character collating elements. RemoveTim J. Robbins2004-07-112-262/+8
| | | | | | | unused character category calculations. Notes: svn path=/head/; revision=131973
* Add 3 new entries:Marcel Moolenaar2004-07-111-0/+30
| | | | | | | | | | | o __FreeBSD_version bumped to 502122 o Alpha console initialization requires the same sio(4) hints as on other platforms. Options NO_SIO and DEV_SC removed. o KDB framework: Added KDB and GDB; Renamed WITNESS_DDB, DDB_TRACE DDB_UNATTENDED. Removed GDB_REMOTE_CHAT and DDB_NOKLDSYM. Notes: svn path=/head/; revision=131972
* Bump __FreeBSD_version for the following (weak) reasons:Marcel Moolenaar2004-07-111-1/+1
| | | | | | | | | | | | | o Sources that are shared between kernel and userland and that may contain references to DDB or any of its functions may need to know this. o Userland tools may include <machine/gdb_machdep.h> from now on. Think kernel debugger... o The kernel core file now contains the TID of the kernel thread that made the dump. Notes: svn path=/head/; revision=131971
* The SC_DISABLE_DDBKEY options has been renamed to SC_DISABLE_KDBKEY.Marcel Moolenaar2004-07-111-1/+1
| | | | Notes: svn path=/head/; revision=131970
* Add options KDB and GDB. KDB takes on the function of what DDB usedMarcel Moolenaar2004-07-115-5/+15
| | | | | | | to be. Both DDB and GDB specify which KDB backends to include. Notes: svn path=/head/; revision=131969
* Now that the console setup is identical to that on other platforms,Marcel Moolenaar2004-07-111-0/+2
| | | | | | | | | we also need to have the right sio(4) flags: sio0: flags=0x10 so that it will be console. sio1: flags=0x80 so that it can be used as debug port. Notes: svn path=/head/; revision=131968
* Add options KDB and GDB. KDB takes on the function of what DDB usedMarcel Moolenaar2004-07-111-1/+3
| | | | | | | to be. Both DDB and GDB specify which KDB backends to include. Notes: svn path=/head/; revision=131967
* KANJI and DSPMBYTE are now "on" by default in the tcsh 6.13.00 distribution.Mark Peek2004-07-112-24/+34
| | | | Notes: svn path=/head/; revision=131966