summaryrefslogtreecommitdiffstats
path: root/share/man/man4/ddb.4
Commit message (Collapse)AuthorAgeFilesLines
* MFC r301522 (by bz)hiren2016-09-161-0/+11
| | | | | | | | | | | | | Implement a `show panic` command to DDB which will helpfully print the panic string again if set, in case it scrolled out of the active window. This avoids having to remember the symbol name. Also add a show callout <addr> command to DDB in order to inspect some struct callout fields in case of panics in the callout code. This may help to see if there was memory corruption or to further ease debugging problems. No objection by: bz
* MFC r302797:markj2016-07-201-1/+6
| | | | Document DDB's "alltrace" and "show all trace" commands.
* MFC 290429:jhb2015-12-181-3/+3
| | | | When dumping an rman in DDB, include the RID of each resource.
* MFC r268715,r268722:bdrewery2014-07-221-10/+19
| | | | | Document the 'show bio' command added in 2009. Also link 'show bio' to g_bio(9.)
* Update ddb(9) to show how to print 64-bit values with "examine".rwatson2013-09-301-1/+3
| | | | | MFC after: 3 days Approved by: re (gjb)
* Sort textdump options list.joel2012-11-011-6/+6
| | | | Submitted by: bde
* Small textdump enhancements.alfred2012-11-011-0/+4
| | | | | | | | | | | | | | Allow textdumps to be called explicitly from DDB. If "dump" is called in DDB and textdumps are enabled then abort the dump and tell the user to turn off textdumps. Add options TEXTDUMP_PREFERRED to turn textdumps on by default. Add options TEXTDUMP_VERBOSE to be a bit more verbose while textdumping. Reviewed by: rwatson MFC after: 2 weeks
* Minor mdoc nit.joel2012-05-121-1/+1
|
* General mdoc(7) and typo fixes.gjb2012-05-121-2/+2
| | | | | | PR: 167776 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Document 'findstack'.kib2011-12-161-1/+11
| | | | MFC after: 1 week
* Disconnect sun4v architecture from the three.attilio2011-05-141-1/+1
| | | | | | | | | Some files keep the SUN4V tags as a code reference, for the future, if any rewamped sun4v support wants to be added again. Reviewed by: marius Tested by: sbruno Approved by: re
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-1/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* Document "show cdev" command.kib2010-09-051-1/+7
| | | | MFC after: 3 days
* mdoc: remove duplicate width argumentuqs2010-05-271-1/+1
|
* MFp4 @178364:bz2010-05-241-3/+7
| | | | | | | | | | | | | | | | | | Implement an optional delay to the ddb reset/reboot command. This allows textdumps to be run automatically with unattended reboots after a resonable timeout, while still permitting an administrator to break into debugger if attached to the console at the time of the event for further debugging. Cap the maximum delay at 1 week to avoid highly accidental results, and default to 15s in case of problems parsing the timeout value. Move hex2dec helper function from db_thread.c to db_command.c to make it generally available and prefix it with a "db_" to avoid namespace collisions. Reviewed by: rwatson MFC after: 4 weeks
* Fix several typos in macros or macro misusage.uqs2010-03-121-1/+1
| | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* - Drop a reference to an older 'kdb' debugger that FreeBSD never had.jhb2008-12-121-7/+2
| | | | | - Tweak a word choice. - Drop a reference to Alpha.
* MFp4:bz2008-11-291-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring in updated jail support from bz_jail branch. This enhances the current jail implementation to permit multiple addresses per jail. In addtion to IPv4, IPv6 is supported as well. Due to updated checks it is even possible to have jails without an IP address at all, which basically gives one a chroot with restricted process view, no networking,.. SCTP support was updated and supports IPv6 in jails as well. Cpuset support permits jails to be bound to specific processor sets after creation. Jails can have an unrestricted (no duplicate protection, etc.) name in addition to the hostname. The jail name cannot be changed from within a jail and is considered to be used for management purposes or as audit-token in the future. DDB 'show jails' command was added to aid debugging. Proper compat support permits 32bit jail binaries to be used on 64bit systems to manage jails. Also backward compatibility was preserved where possible: for jail v1 syscalls, as well as with user space management utilities. Both jail as well as prison version were updated for the new features. A gap was intentionally left as the intermediate versions had been used by various patches floating around the last years. Bump __FreeBSD_version for the afore mentioned and in kernel changes. Special thanks to: - Pawel Jakub Dawidek (pjd) for his multi-IPv4 patches and Olivier Houchard (cognet) for initial single-IPv6 patches. - Jeff Roberson (jeff) and Randall Stewart (rrs) for their help, ideas and review on cpuset and SCTP support. - Robert Watson (rwatson) for lots and lots of help, discussions, suggestions and review of most of the patch at various stages. - John Baldwin (jhb) for his help. - Simon L. Nielsen (simon) as early adopter testing changes on cluster machines as well as all the testers and people who provided feedback the last months on freebsd-jail and other channels. - My employer, CK Software GmbH, for the support so I could work on this. Reviewed by: (see above) MFC after: 3 months (this is just so that I get the mail) X-MFC Before: 7.2-RELEASE if possible
* Increase the date in the manual page, which should have been done in r183922.ed2008-10-181-1/+1
| | | | | | | In r183922 I introduced a new DDB command, documented it, but forgot to bump the date in the manual page. Pointed out by: bz
* Import some improvements to the TTY code from the MPSAFE TTY branch.ed2008-10-151-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change the ddb(4) commands to be more useful (by thompsa@): - `show ttys' is now called `show all ttys'. This command will now also display the address where the TTY data structure resides. - Add `show tty <addr>', which dumps the TTY in a readable form. - Place an upper bound on the TTY buffer sizes. Some drivers do not want to care about baud rates. Protect these drivers by preventing the TTY buffers from getting enormous. Right now we'll just clamp it to 64K, which is pretty high, taking into account that these buffers are only used by the built-in discipline. - Only call ttydev_leave() when needed. Back in April/May the TTY reference counting mechanism was a little different, which required us to call ttydev_leave() each time we finished a cdev operation. Nowadays we only need to call ttydev_leave() when we really mark it as being closed. - Improve return codes of read() and write() on TTY device nodes. - Make sure we really wake up all blocked threads when the driver calls tty_rel_gone(). There were some possible code paths where we didn't properly wake up any readers/writers. - Add extra assertions to prevent sleeping on a TTY that has been abandoned by the driver. - Use ttydev_cdevsw as a more reliable method to figure out whether a device node is a real TTY device node. Obtained from: //depot/projects/mpsafetty/... Reviewed by: thompsa
* - Document that 'show alllocks' and 'show locks' are only availablesimon2008-10-041-5/+10
| | | | | | | | | with witness. - Remove references to non-existing witness(9) and replace with witness(4) where appropriate. - Bump document date. MFC after: 3 days
* Add the ffs structures introspection functions for ddb.kib2008-09-161-0/+20
| | | | | | | | | Show the b_dep value for the buffer in the show buffer command. Add a comand to dump the dirty/clean buffer list for vnode. Reviewed by: tegge Tested and used by: pho MFC after: 1 month
* Integrate the new MPSAFE TTY layer to the FreeBSD operating system.ed2008-08-201-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The last half year I've been working on a replacement TTY layer for the FreeBSD kernel. The new TTY layer was designed to improve the following: - Improved driver model: The old TTY layer has a driver model that is not abstract enough to make it friendly to use. A good example is the output path, where the device drivers directly access the output buffers. This means that an in-kernel PPP implementation must always convert network buffers into TTY buffers. If a PPP implementation would be built on top of the new TTY layer (still needs a hooks layer, though), it would allow the PPP implementation to directly hand the data to the TTY driver. - Improved hotplugging: With the old TTY layer, it isn't entirely safe to destroy TTY's from the system. This implementation has a two-step destructing design, where the driver first abandons the TTY. After all threads have left the TTY, the TTY layer calls a routine in the driver, which can be used to free resources (unit numbers, etc). The pts(4) driver also implements this feature, which means posix_openpt() will now return PTY's that are created on the fly. - Improved performance: One of the major improvements is the per-TTY mutex, which is expected to improve scalability when compared to the old Giant locking. Another change is the unbuffered copying to userspace, which is both used on TTY device nodes and PTY masters. Upgrading should be quite straightforward. Unlike previous versions, existing kernel configuration files do not need to be changed, except when they reference device drivers that are listed in UPDATING. Obtained from: //depot/projects/mpsafetty/... Approved by: philip (ex-mentor) Discussed: on the lists, at BSDCan, at the DevSummit Sponsored by: Snow B.V., the Netherlands dcons(4) fixed by: kan
* DDB scripting, textdumps, output capture, etc, all will appear inrwatson2008-08-031-1/+1
| | | | | | | FreeBSD 7.1 before 8.0 ships. Spotted by: Ulrich Spoerlein <uspoerlein at gmail dot com> MFC after: 3 days
* o Document "show conifhk", wording from r180610 commit log.maxim2008-07-211-1/+6
| | | | Reviewed by: rwatson
* Add a `show cpusets' DDB command to print numbered root andbz2008-07-071-1/+8
| | | | | | assigned CPU affinity sets. Reviewed by: brooks
* Change header file references from <filename>.h towkoszek2008-06-081-10/+10
| | | | | | | | | | path relative to /usr/include. It looks much better anyway. Instead of referencing "socket", which is bogus, reference 'sys/socket.h', which is what should be placed here from the beggining. Suggested by: maxim
* Fix the way the date must be specified (leading 0 is redundant).wkoszek2008-06-081-4/+4
| | | | | | | Fix several spelling mistakes brought by my earlier commit. Trim whitespace. Submitted by: maxim
* Bring more commands to the ddb(4) manual page. This should be consideredwkoszek2008-06-081-32/+494
| | | | | | "complete" list, but some commands might be still missing. Reviewed by: julian
* Document 'show mount' command.pjd2008-04-281-1/+7
|
* Correct an obvious typo.pjd2008-04-121-1/+1
|
* Update ddb.4 to reflect addition of /S (symbol name) printing mode forrwatson2008-03-071-0/+2
| | | | | | | examine. MFC after: 3 days PR: 57976
* Minor formatting tweaks; recommend "call doadump; reset" over "panic"rwatson2007-12-261-2/+2
| | | | | | from a script as the DDB panic command is unreliable. MFC after: 3 months
* Add textdump(4) man page to describe the textdump facility and providerwatson2007-12-261-0/+31
| | | | | | | | | | | | some stock formulas for use. Update ddb(4) to reference the textdump(4) page, list the textdump commands, and suggest using them with scripts and output capture. Update HISTORY section. Hook up textdump(4) to build. MFC after: 3 months
* Add SCRIPTING section to describe new DDB scripting facilities.rwatson2007-12-261-2/+147
| | | | Update copyright.
* Add description of 'debug.ddb.capture.data' sysctl to DBD outputrwatson2007-12-261-0/+4
| | | | | | capture section, missed in previous commit. MFC after: 3 months
* Document DDB capture facility.rwatson2007-12-251-1/+34
| | | | MFC after: 3 months
* Add "show sysregs" command to ddb. On i386, this gives gdt, idt, ldt,njl2007-08-091-1/+7
| | | | | | | | cr0-4, etc. Support should be added for other platforms that have a different set of registers for system use. Loosely based on: OpenBSD Approved by: re
* The first (optional) argument of the "trace" command is either theru2006-10-301-5/+5
| | | | | | process or thread ID. PR: docs/61859
* Fix the prompt string.ru2006-10-111-1/+1
|
* Document the `kill' command.bde2006-10-101-8/+19
| | | | | Submitted by: Allan Fields <bsd@afields.ca> PR: 82779
* Sort some of the most inconsistently ordered descriptions of commandsbde2006-10-101-36/+36
| | | | | | | | | | | | | (the group of watchpoint commands, and the `reset' command). NetBSD has sorted everything alphabetically, but I think we would have too many commands for that if all commands were actually documented here, so this commit moves towards alphabetical order in several sections: - section for pure ddb (non-"show") commands. Now contains the watchpoint commands and is mostly in "logical" order. - section for pure ddb "show" commands - similarly for auxilary commands. Most of these are currently missing here.
* Fix markup.ru2006-10-091-192/+212
|
* Document new aliases `b', `t' and `registers'. Document old aliasesbde2006-10-091-1/+33
| | | | `bt', `c', `d', `p', `s', `w' and `where'.
* Format the list of commands so that the output looks nicer,ru2006-10-031-1/+27
| | | | | | by putting command aliases on the adjacent lines. Prodded by: bde
* Markup fixes.ru2006-09-181-9/+3
|
* Add 'show geom [addr]' ddb(4) command, which prints entire GEOM topology ifpjd2006-09-151-1/+12
| | | | | | | no additional argument is given or details about the given GEOM object (class, geom, provider or consumer). Approved by: phk
* Document 'show vnode'.pjd2006-09-051-0/+5
| | | | Reminded by: ru
* Remove reference to the Alpha architecture.wilko2006-05-151-3/+1
|
* DDB depends on KDB for some time now.brueffer2006-02-271-1/+2
| | | | | Submitted by: Kent Stewart <kstewart@owt.com> MFC after: 3 days
OpenPOWER on IntegriCloud