summaryrefslogtreecommitdiff
path: root/sys/ddb
AgeCommit message (Collapse)Author
2009-08-17dd 'show all bufs' to show all the buffers in the systemJasper Lievisse Adriaanse
ok beck@ thib@
2009-08-14add ddb functions to be able to show all the nfsnodes in the systemThordur I. Bjornsson
and rewrite the nfsreq code to use pool_walk(). OK beck@, blambert@
2009-08-13fix a typo its supposed to be show all vnodes not show all vnodes,Thordur I. Bjornsson
ddb does keyword matching so i missed this. spotted by jasper@
2009-08-13add a show all vnodes command, use dlg's nice pool_walk() to accomplishThordur I. Bjornsson
this. ok beck@, dlg@
2009-08-09Introduce option DDB_STRUCT. Kernels compiled with this option (except onMiod Vallat
a few arches where toolchain limitations apply) will embed some symbolic information about the various structs used within the kernel, and have new ddb commands allowing struct display and some useful information gathering. Kernel rodata increase varies accross platforms from ~150KB to ~300KB. This option is not enabled by default.
2009-08-08two things:Bob Beck
1) fix buffer cache low water mark to allow for extremely low memory machines without dying 2) Add "show bcstats" to ddb to allow for looking at the buffer cache statistics in ddb ok art@ oga@
2009-07-15Check db_recover for NULL before longjmp(db_recover) in db_error(), as it canMiod Vallat
be NULL on panic. Of course, panic usually never produce enough output to hit db_more(), except when it's cold and we run an automatic traceback; aborting the traceback with `q' would then lead to undefined behaviour.
2009-06-17Revert bufq's. this is inline with the major midlayer reverts thatThordur I. Bjornsson
have been going on. this appears to bring us back to stable state. lots of testing by oga and ariane and my self.
2009-06-03add a flexible buffer queue (bufq) api, based on the never usedThordur I. Bjornsson
one by tedu@. It doesn't do anything smart yet, it just uses plain old disksort. we also keep the old method of queueing bufs since some miods have crazy MD drivers that need some love. ok beck@, art@ tested by many on many archs.
2009-05-30Allow 8 byte writes from ddb (w/q) on 64 bit platforms, just like we allowMiod Vallat
8 byte reads (x/q) already.
2009-01-20Let this compile on landisk (and other configs) by wrapping the nfsThordur I. Bjornsson
debug stuff inside #ifdef NFSCLIENT. prompted by todd, miod
2009-01-18Add nfs ddb hooks, for now only to show all the outstanding nfsreq'sThordur I. Bjornsson
and to print out struct nfsreq. "get it in so people can pound on it" blambert@ OK and information_s_ on the manpage from miod@
2008-11-08Add a new sysctl ``ddb.trigger''Marco Pfatschbacher
Writing to it, will bring the system into the kernel debugger. ddb.console=1 is required and the sysctl command has to be executed from the actual console tty. If the securelevel is < 1, the tty check is ignored. Feedback and OK ckuethe@, deraadt@.
2008-10-26for MP, ask people to try to trace the other cpus tooTheo de Raadt
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-04-18use arc4random_uniform() for random number requests that are not aDamien Miller
power of two. use arc4random_bytes() when requesting more than a word of PRNG output. ok deraadt@
2008-03-23show all mounts command for ddb. From mickey a long time ago.Miod Vallat
2007-11-14Be consistent in db_cmd_loop_done declaration.Miod Vallat
2007-11-05temporary ddb buffers need to be a bit larger on 64 bit systems to cope withMiod Vallat
some radix configurations.
2007-10-06Use db_printf instead of printf, to prevent problems with lockingMark Kettenis
kprintf_mutex in the early stages of booting. ok miod@ (a while ago)
2007-09-13A few %n/%r/%z format strings were missed, convert these to db_format().Miod Vallat
2007-09-01Use db_format() instead of ddb-specific format specifiers; no functionalMiod Vallat
change inteded. ok ray@
2007-06-04Ten lines of backtrace should be better on 25-line screens, so that the panicMiod Vallat
message is still visible.
2007-06-04If it's cold at panic time, attempt to show a small backtrace, there are tooMiod Vallat
many machines where glass console does not work correctly at this stage. By popular demand...
2007-03-15Disable x/q functionnality on 32bit platforms, because the examination codeMiod Vallat
is not supposed to work on values larger than db_expr_t.
2006-09-30no malloc debug but configured kmemstats allow 'sh mal' to print smth ↵Michael Shalayeff
useful; miod@ ok
2006-08-24Off-by-one in ``dmesg'' command; it takes a vax to find such bugs.Miod Vallat
2006-07-12fake structs to let kernels compile on architectures that some germanTheo de Raadt
companies do not use. Mickey, why did you break the tree for us like this, all after not showing the diffs to lots of people? Are you that special that you can get away with this? Do you really want to bet on that, again?
2006-07-11add mount/vnode/buf and softdep printing commands; tested on a few archs and ↵Michael Shalayeff
will make pedro happy too (;
2006-07-07only count right guess when had been guessed right; from Leonardo Chiquitto ↵Michael Shalayeff
Filho <leonardo@iken.com.br>
2006-07-06Make sure we alter ddb variables as ints, not longs; only matters on 64 bitMiod Vallat
platforms.
2006-07-06Make the ddb.log sysctl available as an in-ddb variable, $log, for consistency.Miod Vallat
2006-07-06Remove db_check_interrupt() related logic, since it was dummied in practice.Miod Vallat
2006-07-06ALIGNED_POINTER is defined on all platforms.Miod Vallat
2006-05-20add show all pools command listing all pools as vmstat -m does; miod@ okMichael Shalayeff
2006-05-16fix commentsMichael Shalayeff
2006-03-15Still allow ddb.console and ddb.panic to be raised if securelevel <= 0;Miod Vallat
ok deraadt@
2006-03-15use sysctl_int_lower (old code had the negative bug)Theo de Raadt
2006-03-13ansi/deregister. No binary change.Jonathan Gray
2006-03-09Do not include <lib/libkern/libkern.h> explicitely, get it via <sys/systm.h>.Miod Vallat
2005-09-29char end[] vs long end, bad; pr 4288Theo de Raadt
2005-09-06Remove old m88k workaround, now that we have SET_PC_REGS().Miod Vallat
2005-05-10db_printf(s) -> db_printf("%s", s) from NetBSDUwe Stuehler
2005-04-19Do not bother looking for symbols if either esym is zero or the computedMiod Vallat
symbol table length is zero.
2005-04-19Nuke DB_NO_AOUT, and have platforms with a.out symbols explicitely provideMiod Vallat
DB_AOUT_SYMBOLS.
2005-01-08radical size reduction from andreas@Michael Shalayeff
2005-01-04switch to SET_PC_REGS if available, okay miod@Marc Espie
2005-01-03Add "show panic" command to ddb, to easily retrieve the panic message.Miod Vallat
Will hopefully bring us better panic reports. From Joris Vink.
2004-08-09mips/sgi uses same symbol table style setup as sparc64Per Fogelstrom
OK mickey@
2004-06-25Instead of accessing ci_dev (that's an MI field), provide a marco thatArtur Grabowski
translates a cpu_info structure into a human-readable cpu number. drahn@ deraadt@ ok