Commit Graph

43 Commits

Author SHA1 Message Date
mrg d1b98547c9 more updates for the vnode and mount list iterator changes
that happened a while back.  also, port to 64 bit properly.
now these all appear to work again.
2019-12-06 02:37:53 +00:00
mrg 76df07a4cf it's mountlist not mount_list. now 'mountdump' works again. 2019-12-06 01:01:02 +00:00
skrll e1e3440e40 Remove the 'procs' from lwps and use the one from procs.
OK mrg@
2019-07-17 09:14:24 +00:00
skrll 38b361513b Add devs 2019-07-17 09:10:28 +00:00
skrll 9d860ed6ae kdump was remove some time ago 2019-07-17 09:08:57 +00:00
mrg 29b95c3674 fix some minor issues in these user functions, and add more to
investigate lwps/processes:

- fix header formatting
- separate proc and thread info
- add per-thread and per-proc functions, use them as building
  blocks for the existing functions;
  - 'threadinfo' to display just one thread,
  - 'procthreadsaddr' to display one process by struct proc *
  - 'procthreadspid' to find process by pid
- add 'procs' as a ps(1) a-like
2019-05-30 07:17:35 +00:00
mrg 13e211962f document 'devs' and 'procs' commands. 2019-05-09 07:59:49 +00:00
mrg 0f723754e6 add a 'devs' script to display a list of all devices by device_t,
name, parent, private data.

for procs, put the printf \n into the same line.  non trivial
speed up with large process table.
2019-05-06 02:41:02 +00:00
skrll 1b73604dfa Typo in previous 2017-06-05 18:44:13 +00:00
skrll 98483f23e8 Make cpus MI 2017-06-05 18:34:16 +00:00
hannken cb023de545 Change command mountdump to evaluate mountlist_entry. 2017-04-13 09:52:18 +00:00
hannken 70ec436e39 Move vnode members "v_freelisthd" and "v_freelist" from "struct vnode"
to "struct vnode_impl" and rename to "vi_lrulisthd" and "vi_lrulist".

No functional change intended.

Welcome to 7.99.48
2016-12-14 15:48:54 +00:00
maxv 42e304b16d Remove the last references to KMEMSTATS. 2016-08-19 18:08:50 +00:00
mrg 27dfcf5333 make '$e' in here the whole structure instead of a pointer, to combine
several pointer derefs into one speaking this up significantly.
2016-05-12 00:35:10 +00:00
skrll 55aaabd6e7 Add kernhist to SYS_GDBINIT 2016-05-11 10:39:31 +00:00
mrg 97e7e7950b add a gdb script to dump kernel histories. based upon a script by skrll,
updated by myself to run faster and more stupidly (but more workingly.)

normal gdb scripts don't seem to be able to call printf with the format
string as a variable, so we simply print the format itself as a string
and the (upto 4) arguments as unsigned long (how they're strored.)
2016-05-11 09:22:55 +00:00
riz 4d884f3fb4 Since mountlist is now a TAILQ, convert some missed usages
so things build again.
2013-11-23 16:15:24 +00:00
yamt 551f5a37f9 update script
comment and example
2013-03-06 11:26:22 +00:00
yamt a7d503490f a macro to dump kernel modules 2011-11-02 16:51:21 +00:00
yamt 25c71c5e71 fix format 2011-02-05 14:12:05 +00:00
eeh 4758e23503 Add a command to dump all thread stacks in the system and a command to dump
lockdebug state.
2009-11-18 18:12:00 +00:00
eeh 4d55497aed Add the lwp address so you don't have to leave gdb and use ps to grab an lwp's
stack.
2009-11-18 18:05:51 +00:00
eeh eea5c3505f Print out all 64-bits of 64-bit values on 64-bit machines and add documentation
of these commands to gdb.
2009-11-18 18:04:26 +00:00
eeh e2017f3504 Get gdb to document the command. 2009-11-18 18:02:00 +00:00
skrll 55222df828 Use the right pointer to traverse the proc's lwp list.
From PR 41788.
2009-07-28 10:38:20 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
ad 0a71f5fe72 +cpus 2008-02-20 21:01:23 +00:00
ad 9c235d70b6 - Replace 'xps' with 'procs' and 'lwps'.
- Needs a bit more work.
2008-02-20 20:56:35 +00:00
ad d2133b5aec stats is gone 2008-02-20 20:43:40 +00:00
ad fb60c04396 This is useless! 2008-02-20 20:36:29 +00:00
pooka 78e8aceaac adapt to mnt_vnodelist being TAILQ 2006-11-04 20:33:17 +00:00
pooka 88134b62a2 add mountdump, prints mount point information a little like mount(8) 2006-11-04 20:29:30 +00:00
pooka 751537fe38 Make these work again. I know, I'm a bit impatient, since they've
only been broken for 12 years, but some things are better done
sooner than later.

While meddling here, introduce mp_vchain, which prints the vnode
chain given a mount point.
2006-09-29 15:43:06 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
perry 477853c351 nuke trailing whitespace 2005-02-26 22:58:54 +00:00
briggs 1f20c98b90 Clean up the output a little and print the lwp pointer. 2003-04-28 01:43:48 +00:00
lha 59dc4c7d0f adapt to lwp-world 2003-02-26 21:36:14 +00:00
thorpej 556a752996 Build a .gdbinit in the kernel build directory. The new .gdbinit
will source all of the system-provided gdb scrips in sys/gdbscripts,
as well as any files specified by the user in the GDBINIT make var.
2002-09-01 23:04:47 +00:00
deberg 85c0b91ee4 fix pointer arithmetic 2001-01-11 05:31:02 +00:00
jhawk 59f702f762 gdb macro to print the kernel message buffer 2000-06-08 14:45:24 +00:00
cgd faccc00a5a widen proc pointer and wchan pointer fields from 10 to 18 characters, so
that pointers on 64-bit systems are printed properly.  This means that
there'll be a lot of extra space on 32-bit systems, but gdb's printf doesn't
support * for width or precision specifiers, so it can't really be done much
better.
1997-04-16 00:58:26 +00:00
gwr 69506806ea Add NetBSD cvs id lines. 1997-02-12 23:35:06 +00:00
gwr 48faabf317 Macros for gdb when debugging the kernel (from 4.4-Lite2). 1997-02-12 22:09:45 +00:00