Commit Graph

58 Commits

Author SHA1 Message Date
Simon L. B. Nielsen
f4b548d73e - Document that 'show alllocks' and 'show locks' are only available
with witness.
- Remove references to non-existing witness(9) and replace with
  witness(4) where appropriate.
- Bump document date.

MFC after:	3 days
2008-10-04 14:12:09 +00:00
Konstantin Belousov
52dfc8d7da Add the ffs structures introspection functions for ddb.
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
2008-09-16 11:19:38 +00:00
Ed Schouten
bc093719ca Integrate the new MPSAFE TTY layer to the FreeBSD operating system.
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
2008-08-20 08:31:58 +00:00
Robert Watson
0dda506c4c DDB scripting, textdumps, output capture, etc, all will appear in
FreeBSD 7.1 before 8.0 ships.

Spotted by:	Ulrich Spoerlein <uspoerlein at gmail dot com>
MFC after:	3 days
2008-08-03 14:14:43 +00:00
Maxim Konovalov
dc5aa2110e o Document "show conifhk", wording from r180610 commit log.
Reviewed by:	rwatson
2008-07-21 10:03:02 +00:00
Bjoern A. Zeeb
dea0ed6690 Add a `show cpusets' DDB command to print numbered root and
assigned CPU affinity sets.

Reviewed by:	brooks
2008-07-07 21:32:02 +00:00
Wojciech A. Koszek
e14e342b14 Change header file references from <filename>.h to
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
2008-06-08 21:08:20 +00:00
Wojciech A. Koszek
cad20b04fe Fix the way the date must be specified (leading 0 is redundant).
Fix several spelling mistakes brought by my earlier commit.
Trim whitespace.

Submitted by:	maxim
2008-06-08 21:01:39 +00:00
Wojciech A. Koszek
b1772905eb Bring more commands to the ddb(4) manual page. This should be considered
"complete" list, but some commands might be still missing.

Reviewed by:	julian
2008-06-08 09:09:08 +00:00
Pawel Jakub Dawidek
f6a83858fc Document 'show mount' command. 2008-04-28 14:11:23 +00:00
Pawel Jakub Dawidek
3c35ee2c30 Correct an obvious typo. 2008-04-12 05:49:05 +00:00
Robert Watson
31dd4200da Update ddb.4 to reflect addition of /S (symbol name) printing mode for
examine.

MFC after:	3 days
PR:		57976
2008-03-07 18:14:29 +00:00
Robert Watson
f5ccc06760 Minor formatting tweaks; recommend "call doadump; reset" over "panic"
from a script as the DDB panic command is unreliable.

MFC after:	3 months
2007-12-26 12:18:21 +00:00
Robert Watson
0ff94fb659 Add textdump(4) man page to describe the textdump facility and provide
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
2007-12-26 11:35:07 +00:00
Robert Watson
32e0b903c3 Add SCRIPTING section to describe new DDB scripting facilities.
Update copyright.
2007-12-26 09:51:37 +00:00
Robert Watson
a6905d79a4 Add description of 'debug.ddb.capture.data' sysctl to DBD output
capture section, missed in previous commit.

MFC after:	3 months
2007-12-26 09:45:34 +00:00
Robert Watson
21262c0993 Document DDB capture facility.
MFC after:	3 months
2007-12-25 23:25:04 +00:00
Nate Lawson
3b3f28135f Add "show sysregs" command to ddb. On i386, this gives gdt, idt, ldt,
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
2007-08-09 20:14:35 +00:00
Ruslan Ermilov
5d1f75f10d The first (optional) argument of the "trace" command is either the
process or thread ID.

PR:		docs/61859
2006-10-30 12:55:06 +00:00
Ruslan Ermilov
4de836fce3 Fix the prompt string. 2006-10-11 07:07:31 +00:00
Bruce Evans
4ef33d554a Document the `kill' command.
Submitted by:	Allan Fields <bsd@afields.ca>
PR:		82779
2006-10-10 23:09:10 +00:00
Bruce Evans
6e4da6de20 Sort some of the most inconsistently ordered descriptions of commands
(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.
2006-10-10 11:07:37 +00:00
Ruslan Ermilov
e230c2c3ca Fix markup. 2006-10-09 15:21:50 +00:00
Bruce Evans
355938faba Document new aliases b', t' and `registers'. Document old aliases
`bt', `c', `d', `p', `s', `w' and `where'.
2006-10-09 02:27:55 +00:00
Ruslan Ermilov
aed19ad525 Format the list of commands so that the output looks nicer,
by putting command aliases on the adjacent lines.

Prodded by:	bde
2006-10-03 21:06:19 +00:00
Ruslan Ermilov
81ae4b8da9 Markup fixes. 2006-09-18 15:24:20 +00:00
Pawel Jakub Dawidek
679f8b7e7a Add 'show geom [addr]' ddb(4) command, which prints entire GEOM topology if
no additional argument is given or details about the given GEOM object
(class, geom, provider or consumer).

Approved by:	phk
2006-09-15 16:36:45 +00:00
Pawel Jakub Dawidek
03b33e9928 Document 'show vnode'.
Reminded by:	ru
2006-09-05 12:17:53 +00:00
Wilko Bulte
49d6fadab6 Remove reference to the Alpha architecture. 2006-05-15 20:51:53 +00:00
Christian Brueffer
a29370deb3 DDB depends on KDB for some time now.
Submitted by:	Kent Stewart <kstewart@owt.com>
MFC after:	3 days
2006-02-27 21:56:24 +00:00
Ruslan Ermilov
36a142c455 Expand contractions. 2005-02-13 23:45:54 +00:00
Ruslan Ermilov
0227791b40 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
Simon L. B. Nielsen
be9920e44a DDB_UNATTENDED is now called KDB_UNATTENDED.
MFC after:	3 days
2004-12-05 12:48:07 +00:00
Ruslan Ermilov
bf7f20c2b6 Assorted markup, spelling, and grammar fixes. 2004-06-16 08:33:57 +00:00
Hiten Pandya
727119d5cd Mdoc Janitor:
* cleanup hard sentence breaks.

	* sprinle some .Dq macros.
2003-11-12 02:35:20 +00:00
Warner Losh
010ebba66c Replace the VAX and MIPS alternate formats with the architectures that
FreeBSD supports.  None of them support an alternate formats, except
the alpha (which prints extra register information).

# if we get a mips port, we can put the mips case back to document the
# actual behavior.
2003-10-14 02:47:23 +00:00
Ruslan Ermilov
b5e7e99950 Hiten's patchset for section four manpages, slightly edited by me. 2003-06-28 23:53:39 +00:00
Mike Pritchard
f87717fa8b Ispell sweep of share/man/man4. 2002-01-21 12:09:13 +00:00
Peter Wemm
d16d31f42e Document the reset command. I would have thought it blatently obvious,
but here it is:  reset - Hard reset the system
2001-11-05 23:46:10 +00:00
Ruslan Ermilov
753d686d34 mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
Ruslan Ermilov
de4ee6fc38 mdoc(7) police: we use .Va for sysctl(8) MIB variables. 2001-08-07 13:21:15 +00:00
Sheldon Hearn
60b6effdc2 Document the debug.debugger_on_panic tunable, for those poor souls
who didn't realize that DDB_UNATTENDED just sets its starting
value.

This change is over 5 years late, and documents the original
semantics of debug.debugger_on_panic, which may have been changed
by the (again undocumented) change in rev 1.44 of kern_shutdown.c.
2001-07-30 22:03:58 +00:00
Jens Schweikhardt
c1f3e4bf21 Removed whitespace at end-of-line; no content changes. I simply did
cd src/share; find man[1-9] -type f|xargs perl -pi -e 's/[ \t]+$//'

BTW, what editors are the culprits? I'm using vim and it shows
me whitespace at EOL in troff files with a thick blue block...

Reviewed by:	Silence from cvs diff -b
MFC after:	7 days
2001-07-14 19:41:16 +00:00
Brian S. Dean
17c360935d Document new hwatch/dhwatch commands. 2001-07-13 02:30:52 +00:00
Ruslan Ermilov
3d45e180f4 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 15:31:11 +00:00
Warner Losh
adfdb4ae20 Add hint about how to build an ISA NMI card and why you'd want to do so.
Reviewed by: bde, dima dorfman
2001-05-02 03:26:10 +00:00
John Baldwin
3ddf9cce52 The 'gdb' command works on the alpha as well as the i386. 2001-03-09 03:07:53 +00:00
Ruslan Ermilov
c2d03ea879 Eliminate mdocNG warnings caused by misplaced or extraneous macro calls. 2001-02-28 17:38:53 +00:00
Ruslan Ermilov
d0353b836e mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
Ruslan Ermilov
ba9b8036bd Simplify some mdoc(7) constructs. 2001-01-15 17:22:16 +00:00