The NetBSD Project

CVS log for src/sys/ddb/db_command.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / ddb

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.181 / (download) - annotate - [select for diffs], Thu Apr 28 07:08:38 2022 UTC (9 months, 1 week ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.180: +3 -3 lines
Diff to previous 1.180 (colored)

Remove 'a' modifier from "show vmem". It was removed in sbur_vmem.c rev. 1.55.

Revision 1.180 / (download) - annotate - [select for diffs], Wed Apr 20 19:06:35 2022 UTC (9 months, 2 weeks ago) by uwe
Branch: MAIN
Changes since 1.179: +6 -5 lines
Diff to previous 1.179 (colored)

ddb: guard invocation of db_cmd_on_enter properly.

db_command_loop - do not ignore the return value from setjmp used to
guard db_cmd_on_enter.  We do not want to re-execute the enter command
if it fails.  Note that "fails" includes e.g. aborting long output
from the enter command with "q" at the --db more-- prompt, which is
quite likely as the default enter command is "bt".

While here, don't even bother with the whole song and dance if the
enter command is not set.

Revision 1.179 / (download) - annotate - [select for diffs], Sun Oct 10 18:08:12 2021 UTC (15 months, 4 weeks ago) by thorpej
Branch: MAIN
Changes since 1.178: +28 -2 lines
Diff to previous 1.178 (colored)

Add a "show kqueue <addr>" command.

Revision 1.178 / (download) - annotate - [select for diffs], Sat Aug 21 23:00:31 2021 UTC (17 months, 2 weeks ago) by andvar
Branch: MAIN
Changes since 1.177: +3 -3 lines
Diff to previous 1.177 (colored)

fix mainly same typos as in my previous commit but outside sys/dev/dm.

Revision 1.177 / (download) - annotate - [select for diffs], Fri Aug 13 20:47:55 2021 UTC (17 months, 3 weeks ago) by andvar
Branch: MAIN
Changes since 1.176: +3 -3 lines
Diff to previous 1.176 (colored)

fix typos in words "pointer" and s/fram /frame/

Revision 1.175.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:42 2021 UTC (22 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.175: +4 -4 lines
Diff to previous 1.175 (colored) next main 1.176 (colored)

Sync with HEAD.

Revision 1.176 / (download) - annotate - [select for diffs], Tue Feb 23 07:13:53 2021 UTC (23 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.175: +4 -4 lines
Diff to previous 1.175 (colored)

introduce DDB_END_CMD and replace more than 20 copies of the same
list of NULLs and 0.  idea from rillig@.

all touched ports built, several booted.

Revision 1.175 / (download) - annotate - [select for diffs], Fri Oct 30 16:29:49 2020 UTC (2 years, 3 months ago) by skrll
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.174: +2 -3 lines
Diff to previous 1.174 (colored)

Remove "also;"

Revision 1.174 / (download) - annotate - [select for diffs], Fri Oct 30 16:08:44 2020 UTC (2 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.173: +36 -2 lines
Diff to previous 1.173 (colored)

Add a "show fdt" ddb command

Revision 1.173 / (download) - annotate - [select for diffs], Fri Oct 30 07:17:29 2020 UTC (2 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.172: +39 -39 lines
Diff to previous 1.172 (colored)

Sort the db_show_cmd entries

Revision 1.172 / (download) - annotate - [select for diffs], Fri Oct 30 07:03:50 2020 UTC (2 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.171: +6 -4 lines
Diff to previous 1.171 (colored)

Put the 'added from all sub cmds' comment above the four commands that
were added as part of the work in r1.98

Revision 1.171 / (download) - annotate - [select for diffs], Fri Oct 30 06:57:08 2020 UTC (2 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.170: +3 -3 lines
Diff to previous 1.170 (colored)

Trailing whitespace

Revision 1.153.2.4 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:14 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.153.2.3: +4 -0 lines
Diff to previous 1.153.2.3 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored)

Sync with HEAD

Revision 1.169.2.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:02 2020 UTC (2 years, 9 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.169: +6 -2 lines
Diff to previous 1.169 (colored) next main 1.170 (colored)

Sync with HEAD

Revision 1.170 / (download) - annotate - [select for diffs], Mon Apr 13 11:43:27 2020 UTC (2 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.169: +6 -2 lines
Diff to previous 1.169 (colored)

Handle "no count" properly in db_kernhist_print_cmd

Revision 1.153.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:17 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.153.2.2: +11 -10 lines
Diff to previous 1.153.2.2 (colored) to branchpoint 1.153 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.153.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:02 2020 UTC (2 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.153.2.1: +74 -10 lines
Diff to previous 1.153.2.1 (colored) to branchpoint 1.153 (colored)

Merge changes from current as of 20200406

Revision 1.169 / (download) - annotate - [select for diffs], Tue Mar 10 15:58:36 2020 UTC (2 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.168: +2 -7 lines
Diff to previous 1.168 (colored)

Make the db_kernelonly() macro visible to all files and re-use it.
Register access is kernel only.

Revision 1.168 / (download) - annotate - [select for diffs], Mon Mar 9 01:46:24 2020 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.167: +46 -7 lines
Diff to previous 1.167 (colored)

print a message for the commands crash does not support.
Allow "show lock"

Revision 1.160.4.1 / (download) - annotate - [select for diffs], Sun Jan 26 11:28:11 2020 UTC (3 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.160: +11 -12 lines
Diff to previous 1.160 (colored) next main 1.161 (colored)

Pull up following revision(s) (requested by uwe in ticket #656):

	sys/ddb/db_command.c: revision 1.162
	sys/ddb/db_command.c: revision 1.163
	sys/ddb/db_command.c: revision 1.164

db_command - make sure count is always initialized.
db_command - make setting have_addr more clear.
Don't set it to false that it's already initialized to.
db_command - don't hide local static variable in the middle of other
local variable definitions.  While here, get rid of the alignment of
variable names.

Revision 1.167 / (download) - annotate - [select for diffs], Wed Jan 1 22:57:17 2020 UTC (3 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.166: +4 -4 lines
Diff to previous 1.166 (colored)

- Introduce a new global kernel variable "shutting_down" to indicate that
  the system is shutting down or rebooting.
- Set this global in a new function called kern_reboot(), which is currently
  just a basic wrapper around cpu_reboot().
- Call kern_reboot() instead of cpu_reboot() almost everywhere; a few
  places remain where it's still called directly, but those are in early
  pre-main() machdep locations.

Eventually, all of the various cpu_reboot() functions should be re-factored
and common functionality moved to kern_reboot(), but that's for another day.

Revision 1.166 / (download) - annotate - [select for diffs], Fri Dec 27 12:51:56 2019 UTC (3 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.165: +17 -3 lines
Diff to previous 1.165 (colored)

Redo the page allocator to perform better, especially on multi-core and
multi-socket systems.  Proposed on tech-kern.  While here:

- add rudimentary NUMA support - needs more work.
- remove now unused "listq" from vm_page.

Revision 1.165 / (download) - annotate - [select for diffs], Sun Dec 15 20:29:08 2019 UTC (3 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.164: +18 -2 lines
Diff to previous 1.164 (colored)

Teach ddb(4) about printing the full mount list.

Revision 1.164 / (download) - annotate - [select for diffs], Sun Sep 29 02:49:59 2019 UTC (3 years, 4 months ago) by uwe
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.163: +7 -7 lines
Diff to previous 1.163 (colored)

db_command - don't hide local static variable in the middle of other
local variable definitions.  While here, get rid of the alignment of
variable names.

Revision 1.163 / (download) - annotate - [select for diffs], Sun Sep 29 02:42:12 2019 UTC (3 years, 4 months ago) by uwe
Branch: MAIN
Changes since 1.162: +5 -6 lines
Diff to previous 1.162 (colored)

db_command - make setting have_addr more clear.
Don't set it to false that it's already initialized to.

Revision 1.162 / (download) - annotate - [select for diffs], Sun Sep 29 02:35:39 2019 UTC (3 years, 4 months ago) by uwe
Branch: MAIN
Changes since 1.161: +4 -4 lines
Diff to previous 1.161 (colored)

db_command - make sure count is always initialized.

Revision 1.161 / (download) - annotate - [select for diffs], Sun Sep 22 12:57:34 2019 UTC (3 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.160: +4 -2 lines
Diff to previous 1.160 (colored)

fix "show kernhist".

set addr = 0 if we don't have_addr and avoid using random garbage in addr.

Revision 1.153.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:04 2019 UTC (3 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.153: +33 -6 lines
Diff to previous 1.153 (colored)

Sync with HEAD

Revision 1.149.2.4 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:49 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.149.2.3: +16 -7 lines
Diff to previous 1.149.2.3 (colored) to branchpoint 1.149 (colored) next main 1.150 (colored)

Ssync with HEAD

Revision 1.148.8.5 / (download) - annotate - [select for diffs], Thu Sep 27 14:52:26 2018 UTC (4 years, 4 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.148.8.4: +14 -5 lines
Diff to previous 1.148.8.4 (colored) to branchpoint 1.148 (colored) next main 1.149 (colored)

Pull up following revision(s) (requested by mrg in ticket #1037):

	sys/dev/usb/uhub.c: revision 1.139
	sys/external/bsd/dwc2/dwc2.c: revision 1.55
	sys/ddb/db_output.c: revision 1.34
	sys/ddb/db_command.c: revision 1.160
	sys/dev/usb/ehci.c: revision 1.264
	sys/dev/usb/xhci.c: revision 1.99
	sys/dev/usb/ehci.c: revision 1.265
	sys/kern/subr_userconf.c: revision 1.27
	sys/dev/usb/ehcivar.h: revision 1.46
	sys/dev/usb/ohci.c: revision 1.287
	sys/dev/usb/uhci.c: revision 1.284
	sys/dev/usb/usbdi.c: revision 1.178
	sys/dev/usb/usb.c: revision 1.172
	sys/dev/pci/xhci_pci.c: revision 1.14
	sys/dev/usb/usb.c: revision 1.173
	sys/dev/usb/usb.c: revision 1.174
	share/man/man4/usb.4: revision 1.110
	sys/ddb/db_command.c: revision 1.159
	sys/dev/usb/usb_subr.c: revision 1.227
	sys/dev/usb/uhcivar.h: revision 1.56
	(all via patch)

consolidate the handling of polling across HC drivers, and generic USB:
- don't take mutexes if polling
- normalise the code across all drivers
- add some not yet code to block discovery to/from polling
- minor CSE
- adjust comment for usbd_set_polling() to reality now i properly
  understand what it is used for and why.

this, with a hack to make RB_ASKNAME to wait 5 seconds allows boot -a
work with USB keyboards.  there are still multiple issues remaining:
- discovery and polling need to be mutually exclusive
- attachment of ukbd and wskbd is not handled by config_pending, and
  the 5 second delay isn't going to always be enough.

call cnpollc(1) and cnpollc(0) around cngetc().
(christos has a good idea to add a function that does all 3,
and we should switch all the callers in this sequence to use
it (and fix the MD ones missing it still).  not all can, as
eg, line-grabbing functions can use cngetsn(), which only
calls cnpollc() twice.)


When this file is used when not building the kernel (eg: /usr/sbin/crash)
make cnpollc() go away.


reorder some struct members to remove holes.


add config_pending usage to uhub and general USB device attachment.
- call config_pending_incr() and config_pending_decr() around attaching
  devices against "usbdevif" attribute.

uhub:
- convert sc_explorepending and sc_running to bool.  add new sc_first_explore.
- call config_pending_incr() at the start of uhub_attach().  dropped in
  uhub_explore(), if this is the first explore.


implement a gross hack to fix "boot -a" on systems with usb keyboards on
systems with ehci handover to uhci (and maybe ohci), and fix a similar
problem for "boot -s".

there is effort to ensure that all devices attached via USB are probed
before RB_ASKNAME or RB_SINGLE attempts to ask any questions on the console,
and largely this works, often by chance, today, for USB disks and root.
i've recently pushed this more into uhub and general USB device attachment
as well, and kept a config_pending reference across the first explore of
a bus.  these fix many issues with directly attached hubs.

however, on systems where devices connected to ehci ports are handed over
to a companion uhci or ohci port, it may not be the first, or even second,
bus explore that finds the device finally before attachment, and at this
point all config_pending references are dropped.

there is no direct communication between drivers, the potentials are
looked up but their device_t is only used for generic things like the name,
so informing the correct companion to expect a device and deal with the
config_pending references is not possible without some fairly ugly layer
violations or multi-level callbacks (eg, we have "ehci0", and usually an
the relevant companion, eg, "uhci2", but it is the uhub that uhci2 has
attached that will deal with the device attachment.)

with the above fixes to generic USB code, the disown happens during the
first explore.  the hack works by, at this point, checking if (a) root
is not mounted, (b) single user or ask name are set, and (c) if the hack
as not been triggered already.  if all 3 conditions are true, then a
config_pending_incr() is called and a callback is triggered for (default)
5 seconds to call config_pending_decr().  ehci detach pauses waiting for
this callback if scheduled.

this allows enough time for the uhub and the ukbd/wskbd to attach before
the RK_ASKROOT prompts appear.  testing shows it takes between 1.5 and
2 seconds for the keyboard to appear after the disown occurs.

Index: dev/usb/ehcivar.c
- new sc_compcallout, sc_compcallout, sc_complock, and a state for th
  handover hack.

Index: dev/usb/ehci.c
ehci_init():
- use aprint_normal_dev() instead of manual device_xname().
- initialise sc_compcallout, sc_compcallout, sc_complock, and sc_comp_state.
ehci_detach():
- if there are companion controllers, tear own the above, including waiting
  if there is a callback scheduled.
ehci_disown_callback():
- new callout to call config_pending_decr() in the the future.
  schedule this ca
ehci_disown_sched_callback():
- if booting to single user or asking names, call config_pending_incr() and
  schedule the callout above, default 5 second delay.
ehci_disown():
- if disowning a port call ehci_disown_sched_callback().
deal with partial attach failures in usb_attach vs usb_detach aka PR 53598.
- make sure xhci's sc->sc_ios is NULL if failure happens.
- rearrange usb_attach() / usb_doattach() to make it simpler to clean up.
- move usb_async_intr softint into usb_once_init().  previously, each USB
  controller would start a new one, and leave the old one leaked.
- handle controller interrupts without a bus attached


remove usb(4)'s "flags 1" code.  it has been dead for a while,
as it runs during the interrupts part of configuration now,
and all the devices try attach as early as possible, including
any root or boot required disk or keyboard device, which is
what this flag was for.

Revision 1.148.8.4 / (download) - annotate - [select for diffs], Sun Sep 23 17:28:25 2018 UTC (4 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.148.8.3: +4 -4 lines
Diff to previous 1.148.8.3 (colored) to branchpoint 1.148 (colored)

Pull up following revision(s) (requested by mrg in ticket #1024):

	sys/ddb/db_command.c: revision 1.157
	sys/ddb/db_command.c: revision 1.158
	sys/kern/subr_lockdebug.c: revision 1.67

always call lockdebug_dismiss() from DDB -- there are always some
minimal lockdebug checks in place, even without LOCKDEBUG.

adjust lockdebug_abort() to ignore problems after ld_panic is set

so that there's a chance of this working.
this fixes ddb 'reboot' on softiron od1000.

call spl0() before cpu_reboot(), so that there's a chance that:
- interrupts can work afterwards
- this also means if IO stalls, serial break might work again.

this mimics how reboot(2) ends up calling cpu_reboot().

Revision 1.160 / (download) - annotate - [select for diffs], Mon Sep 17 01:49:54 2018 UTC (4 years, 4 months ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, netbsd-9-base, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.159: +6 -2 lines
Diff to previous 1.159 (colored)


When this file is used when not building the kernel (eg: /usr/sbin/crash)
make cnpollc() go away.

Revision 1.159 / (download) - annotate - [select for diffs], Sun Sep 16 23:18:55 2018 UTC (4 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.158: +10 -5 lines
Diff to previous 1.158 (colored)

call cnpollc(1) and cnpollc(0) around cngetc().

(christos has a good idea to add a function that does all 3,
and we should switch all the callers in this sequence to use
it (and fix the MD ones missing it still).  not all can, as
eg, line-grabbing functions can use cngetsn(), which only
calls cnpollc() twice.)

Revision 1.158 / (download) - annotate - [select for diffs], Sat Sep 15 08:48:18 2018 UTC (4 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.157: +4 -2 lines
Diff to previous 1.157 (colored)

call spl0() before cpu_reboot(), so that there's a chance that:
- interrupts can work afterwards
- this also means if IO stalls, serial break might work again.

this mimics how reboot(2) ends up calling cpu_reboot().

Revision 1.157 / (download) - annotate - [select for diffs], Thu Sep 13 01:55:16 2018 UTC (4 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.156: +2 -4 lines
Diff to previous 1.156 (colored)

always call lockdebug_dismiss() from DDB -- there are always some
minimal lockdebug checks in place, even without LOCKDEBUG.

adjust lockdebug_abort() to ignore problems after ld_panic is set
so that there's a chance of this working.

this fixes ddb 'reboot' on softiron od1000.

Revision 1.148.8.3 / (download) - annotate - [select for diffs], Fri Sep 7 12:34:18 2018 UTC (4 years, 5 months ago) by martin
Branch: netbsd-8
Changes since 1.148.8.2: +6 -2 lines
Diff to previous 1.148.8.2 (colored) to branchpoint 1.148 (colored)

Pull up following revision(s) (requested by mrg in ticket #1013):

	sys/sys/lockdebug.h: revision 1.20
	sys/ddb/db_command.c: revision 1.155
	sys/kern/subr_lockdebug.c: revision 1.65

add a lockdebug_dismiss() function for DDB to use that tells
lockdebug to avoid asserts.  use it for the ddb "reboot"
command, so that it doesn't matter how ddb was entered, the
reboot not trigger mutex checks and not work.

Revision 1.149.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:47 2018 UTC (4 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.149.2.2: +7 -3 lines
Diff to previous 1.149.2.2 (colored) to branchpoint 1.149 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.156 / (download) - annotate - [select for diffs], Mon Aug 13 03:20:19 2018 UTC (4 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored)

extend the ddb "show kernhist" command.  the synopsis is now:

     show kernhist[/i] [addr[,count]]

the i modifier means display info instead of entries, and the count
restricts to the last count entries.

the count option is only supported for specified histories.  it
could be extended but requires more logic than the single history,
as multiple histories are merged during display.

Revision 1.155 / (download) - annotate - [select for diffs], Sun Aug 12 22:05:29 2018 UTC (4 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.154: +6 -2 lines
Diff to previous 1.154 (colored)

add a lockdebug_dismiss() function for DDB to use that tells
lockdebug to avoid asserts.  use it for the ddb "reboot"
command, so that it doesn't matter how ddb was entered, the
reboot not trigger mutex checks and not work.

Revision 1.148.8.2 / (download) - annotate - [select for diffs], Tue Jul 31 17:01:20 2018 UTC (4 years, 6 months ago) by martin
Branch: netbsd-8
Changes since 1.148.8.1: +16 -2 lines
Diff to previous 1.148.8.1 (colored) to branchpoint 1.148 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #954):

	sys/sys/socketvar.h: revision 1.157
	share/man/man4/ddb.4: revision 1.180
	share/man/man4/ddb.4: revision 1.181
	sys/kern/uipc_socket2.c: revision 1.131
	sys/ddb/db_command.c: revision 1.154

Add "show socket" command written by Hiroki SUENAGA. It prints usage of
system's socket buffers.
Improve wording.

Revision 1.149.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:43 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.149.2.1: +16 -2 lines
Diff to previous 1.149.2.1 (colored) to branchpoint 1.149 (colored)

Sync with HEAD

Revision 1.154 / (download) - annotate - [select for diffs], Fri Jul 20 08:26:25 2018 UTC (4 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.153: +16 -2 lines
Diff to previous 1.153 (colored)

 Add "show socket" command written by Hiroki SUENAGA. It prints usage of
system's socket buffers.

Revision 1.148.8.1 / (download) - annotate - [select for diffs], Mon Apr 2 09:07:52 2018 UTC (4 years, 10 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.148: +31 -3 lines
Diff to previous 1.148 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #687):
	sys/kern/kern_rwlock_obj.c: revision 1.4
	sys/rump/librump/rumpkern/locks.c: revision 1.80
	sys/kern/kern_rwlock.c: revision 1.50
	sys/arch/x86/x86/db_memrw.c: revision 1.5,1.6
	sys/ddb/db_command.c: revision 1.150-1.153
	share/man/man4/ddb.4: revision 1.175 (via patch),1.176-1.178
	sys/kern/kern_mutex_obj.c: revision 1.6
	sys/kern/subr_lockdebug.c: revision 1.61-1.64
	sys/sys/lockdebug.h: revision 1.17
	sys/kern/kern_mutex.c: revision 1.71
	sys/sys/lockdebug.h: revision 1.18,1.19
	sys/kern/subr_xcall.c: revision 1.26

Obtain proper initialized addresses of locks allocated by mutex_obj_alloc or rw_obj_alloc

Initialized addresses of locks allocated by mutex_obj_alloc or rw_obj_alloc
were not useful because the addresses were mutex_obj_alloc or rw_obj_alloc
itself. What we want to know are callers of them.

Spinkle ASSERT_SLEEPABLE to xcall functions

Use db_printf instead of printf in ddb

Add a new command, show lockstat, which shows statistics of locks
Currently the command shows the number of allocated locks.
The command is useful only if LOCKDEBUG is enabled.

Add a new command, show all locks, which shows information of active locks

The command shows information of all active (i.e., being held) locks that are
tracked through either of LWPs or CPUs by the LOCKDEBUG facility.  The /t
modifier additionally shows a backtrace for each LWP additionally.  This
feature is useful for debugging especially to analyze deadlocks.
The command is useful only if LOCKDEBUG is enabled.

Don't pass a unset address to lockdebug_lock_print

x86: avoid accessing invalid addresses in ddb like arm32
This avoids that a command stops in the middle of an execution if
a fault occurs due to an access to an invalid address.

Get rid of a redundant output

Improve wording. Fix a Cm argument.

ddb: rename "show lockstat" to "show lockstats" to avoid conflicting with lockstat(8)
Requested by mrg@

Revision 1.149.2.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:47 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.149: +31 -3 lines
Diff to previous 1.149 (colored)

Synch with HEAD, resolve conflicts

Revision 1.153 / (download) - annotate - [select for diffs], Mon Mar 19 08:41:21 2018 UTC (4 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Branch point for: phil-wifi
Changes since 1.152: +7 -7 lines
Diff to previous 1.152 (colored)

ddb: rename "show lockstat" to "show lockstats" to avoid conflicting with lockstat(8)

Requested by mrg@

Revision 1.152 / (download) - annotate - [select for diffs], Fri Mar 16 04:45:20 2018 UTC (4 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.151: +4 -3 lines
Diff to previous 1.151 (colored)

Don't pass a unset address to lockdebug_lock_print

Revision 1.151 / (download) - annotate - [select for diffs], Fri Mar 16 04:44:51 2018 UTC (4 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.150: +15 -2 lines
Diff to previous 1.150 (colored)

Add a new command, show all locks, which shows information of active locks

The command shows information of all active (i.e., being held) locks that are
tracked through either of LWPs or CPUs by the LOCKDEBUG facility.  The /t
modifier additionally shows a backtrace for each LWP additionally.  This
feature is useful for debugging especially to analyze deadlocks.

The command is useful only if LOCKDEBUG is enabled.

Revision 1.150 / (download) - annotate - [select for diffs], Fri Mar 16 04:37:55 2018 UTC (4 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.149: +16 -2 lines
Diff to previous 1.149 (colored)

Add a new command, show lockstat, which shows statistics of locks

Currently the command shows the number of allocated locks.

The command is useful only if LOCKDEBUG is enabled.

Revision 1.149 / (download) - annotate - [select for diffs], Sun Mar 4 07:14:50 2018 UTC (4 years, 11 months ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.148: +3 -2 lines
Diff to previous 1.148 (colored)

Add command to print device list.

Revision 1.138.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:58 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.138.2.2: +32 -10 lines
Diff to previous 1.138.2.2 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored)

update from HEAD

Revision 1.147.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:26 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.147: +22 -2 lines
Diff to previous 1.147 (colored) next main 1.148 (colored)

Sync with HEAD

Revision 1.143.6.5 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:26 2017 UTC (6 years ago) by skrll
Branch: nick-nhusb
Changes since 1.143.6.4: +22 -2 lines
Diff to previous 1.143.6.4 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

Sync with HEAD

Revision 1.148 / (download) - annotate - [select for diffs], Wed Jan 11 12:17:34 2017 UTC (6 years ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.147: +22 -2 lines
Diff to previous 1.147 (colored)

Add ddb command to find a vnode by the address of its lock.
This makes it much easier to convert lockstat traces into understandable
data.

Revision 1.143.6.4 / (download) - annotate - [select for diffs], Fri Apr 22 15:44:12 2016 UTC (6 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.143.6.3: +6 -5 lines
Diff to previous 1.143.6.3 (colored) to branchpoint 1.143 (colored)

Sync with HEAD

Revision 1.147 / (download) - annotate - [select for diffs], Wed Apr 13 00:47:02 2016 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.146: +6 -5 lines
Diff to previous 1.146 (colored)

ddb: rename show arptab to show routes

show arptab command of ddb is now inappropriate because it actually dumps
routes but arp entries aren't routes anymore. So rename it to show routes
and move the code from if_arp.c to route.c.

ok christos@

Revision 1.143.6.3 / (download) - annotate - [select for diffs], Wed Apr 6 22:00:02 2016 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.143.6.2: +3 -3 lines
Diff to previous 1.143.6.2 (colored) to branchpoint 1.143 (colored)

Pull across ddb(4) show kernhist updates from HEAD

Revision 1.146 / (download) - annotate - [select for diffs], Wed Apr 6 21:56:24 2016 UTC (6 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.145: +3 -3 lines
Diff to previous 1.145 (colored)

Improve ddb(4) show kernhist

1) really prints all the histories merged together (rather than just the
   "first" when no argument specified
2) dumps a single history when an argument is given, e.g.
   "show kernhist usbhist"
3) uses db_printf correctly

Revision 1.143.6.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:06 2015 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.143.6.1: +12 -7 lines
Diff to previous 1.143.6.1 (colored) to branchpoint 1.143 (colored)

Sync with HEAD

Revision 1.145 / (download) - annotate - [select for diffs], Thu May 21 08:23:22 2015 UTC (7 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.144: +9 -4 lines
Diff to previous 1.144 (colored)

only call the on-enter commands if we're not recursing.
avoids having a fault in the on-enter commands repeating.

Revision 1.143.6.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:07 2015 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.143: +2 -6 lines
Diff to previous 1.143 (colored)

Sync with HEAD

Revision 1.144 / (download) - annotate - [select for diffs], Sun Feb 8 19:41:39 2015 UTC (8 years ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.143: +2 -6 lines
Diff to previous 1.143 (colored)

we can use show callout now from crash

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:35 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.138.2.1: +8 -8 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.136.4.4 / (download) - annotate - [select for diffs], Thu May 22 11:40:19 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.136.4.3: +8 -8 lines
Diff to previous 1.136.4.3 (colored) to branchpoint 1.136 (colored) next main 1.137 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:34 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.142: +8 -8 lines
Diff to previous 1.142 (colored) next main 1.143 (colored)

sync with head

Revision 1.143 / (download) - annotate - [select for diffs], Sat Oct 19 15:20:52 2013 UTC (9 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.142: +8 -8 lines
Diff to previous 1.142 (colored)

fix userland build, by moving all the unused stuff inside ifdef _KERNEL

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:10 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.138: +4 -2 lines
Diff to previous 1.138 (colored)

resync with head

Revision 1.136.4.3 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:03 2013 UTC (10 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.136.4.2: +4 -2 lines
Diff to previous 1.136.4.2 (colored) to branchpoint 1.136 (colored)

sync with head

Revision 1.142 / (download) - annotate - [select for diffs], Sun Jan 6 04:17:27 2013 UTC (10 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.141: +2 -2 lines
Diff to previous 1.141 (colored)

remove the new command not the old one.

Revision 1.141 / (download) - annotate - [select for diffs], Sun Jan 6 03:34:52 2013 UTC (10 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.140: +2 -4 lines
Diff to previous 1.140 (colored)

remove previous, dmesg just works.

Revision 1.140 / (download) - annotate - [select for diffs], Sun Jan 6 03:23:55 2013 UTC (10 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.139: +4 -2 lines
Diff to previous 1.139 (colored)

Add "show dmesg" that prints the contents of the message buffer.

Revision 1.139 / (download) - annotate - [select for diffs], Sat Jan 5 15:23:27 2013 UTC (10 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.138: +4 -2 lines
Diff to previous 1.138 (colored)

Add "show panic" that shows the current panic string. two ports had it, and
it could be easily made MI.

Revision 1.136.4.2 / (download) - annotate - [select for diffs], Wed May 23 10:07:54 2012 UTC (10 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.136.4.1: +2 -21 lines
Diff to previous 1.136.4.1 (colored) to branchpoint 1.136 (colored)

sync with head.

Revision 1.137.4.1 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:46 2012 UTC (10 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.137: +2 -21 lines
Diff to previous 1.137 (colored) next main 1.138 (colored)

sync to latest -current.

Revision 1.138 / (download) - annotate - [select for diffs], Sat Apr 28 23:03:39 2012 UTC (10 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.137: +2 -21 lines
Diff to previous 1.137 (colored)

Remove MALLOC_DEBUG and MALLOCLOG, which is dead code after malloc(9) move
to kmem(9).  Note: kmem(9) has debugging facilities under DEBUG/DIAGNOSTIC.
However, expensive kmguard and debug_freecheck have to be enabled manually.

Revision 1.136.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:24 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.136: +3 -2 lines
Diff to previous 1.136 (colored)

sync with head

Revision 1.137 / (download) - annotate - [select for diffs], Sun Nov 13 03:21:51 2011 UTC (11 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.136: +3 -2 lines
Diff to previous 1.136 (colored)

set panicstr to "reboot forced via kernel debugger" when rebooting
from ddb, similar to how sync from ddb works.

this avoids various asserts and other issues during ddb reboot.

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:37 2011 UTC (11 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.134: +14 -11 lines
Diff to previous 1.134 (colored) next main 1.135 (colored)

Sync with HEAD.

Revision 1.133.4.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:34 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.133.4.2: +9 -8 lines
Diff to previous 1.133.4.2 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored)

sync with head

Revision 1.136 / (download) - annotate - [select for diffs], Tue May 17 04:18:06 2011 UTC (11 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.135: +11 -10 lines
Diff to previous 1.135 (colored)

move and rename the uvm history code out of uvm_stat to "kernhist".

rename "UVMHIST" option to enable the uvm histories.

TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories.  this is mostly just
  allocating something in a bitmap, and is only for viewing multiple
  histories in a merged form.


tested on amd64 and sparc64.

Revision 1.133.4.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:44 2011 UTC (11 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.133.4.1: +3 -1 lines
Diff to previous 1.133.4.1 (colored) to branchpoint 1.133 (colored)

sync with head

Revision 1.135 / (download) - annotate - [select for diffs], Sun Apr 10 20:59:22 2011 UTC (11 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.134: +5 -3 lines
Diff to previous 1.134 (colored)

Add:
usage: show proc [/a] [/p] address|pid
        /a == argument is an address of any lwp
	/p == argument is a pid [default]
From: Vladimir Kirillov proger at wilab dot org dot ua

Revision 1.133.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:52:58 2011 UTC (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.133: +4 -8 lines
Diff to previous 1.133 (colored)

sync with head

Revision 1.133.2.1 / (download) - annotate - [select for diffs], Fri Oct 22 07:21:49 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.133: +4 -8 lines
Diff to previous 1.133 (colored) next main 1.134 (colored)

Sync with HEAD (-D20101022).

Revision 1.114.10.5 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:03 2010 UTC (12 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.10.4: +4 -8 lines
Diff to previous 1.114.10.4 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored)

sync with head

Revision 1.134 / (download) - annotate - [select for diffs], Mon Sep 13 08:42:04 2010 UTC (12 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.133: +4 -8 lines
Diff to previous 1.133 (colored)

fix extern/static inconsistency

Revision 1.114.10.4 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:01 2009 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.10.3: +5 -2 lines
Diff to previous 1.114.10.3 (colored) to branchpoint 1.114 (colored)

sync with head.

Revision 1.126.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:45 2009 UTC (13 years, 6 months ago) by jym
Branch: jym-xensuspend
Changes since 1.126.2.1: +43 -7 lines
Diff to previous 1.126.2.1 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

Sync with HEAD.

Revision 1.133 / (download) - annotate - [select for diffs], Sun Jul 19 02:37:33 2009 UTC (13 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.132: +5 -2 lines
Diff to previous 1.132 (colored)

Add #ifdef MQUEUE for db_show_mqueue_cmd().

XXX: Wrong.  DDB should be dynamic, modular, etc.

Revision 1.114.10.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:19 2009 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.10.2: +40 -7 lines
Diff to previous 1.114.10.2 (colored) to branchpoint 1.114 (colored)

sync with head

Revision 1.132 / (download) - annotate - [select for diffs], Fri Jun 5 04:31:47 2009 UTC (13 years, 8 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5
Changes since 1.131: +40 -7 lines
Diff to previous 1.131 (colored)

extend 'show event' to take /i /t and /m modifiers, to select interrupt,
trap or misc event types.  you can mix them with /f as well, to show all
including zero events for traps and misc, "show event/ftm"

Revision 1.126.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:04 2009 UTC (13 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.126: +108 -97 lines
Diff to previous 1.126 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.114.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:32 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114.10.1: +352 -366 lines
Diff to previous 1.114.10.1 (colored) to branchpoint 1.114 (colored)

sync with head.

Revision 1.120.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:12 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.120.2.2: +106 -86 lines
Diff to previous 1.120.2.2 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored)

Sync with HEAD.

Revision 1.131 / (download) - annotate - [select for diffs], Sat Mar 21 13:06:39 2009 UTC (13 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Changes since 1.130: +44 -32 lines
Diff to previous 1.130 (colored)

Make 'show event', 'dmesg' work with crash(8).
XXX dmesg fails exactly the same way as /sbin/dmesg.

Revision 1.130 / (download) - annotate - [select for diffs], Wed Mar 11 13:29:44 2009 UTC (13 years, 11 months ago) by nakayama
Branch: MAIN
Changes since 1.129: +3 -3 lines
Diff to previous 1.129 (colored)

Avoid "warning: cast from pointer to integer of different size"
on 32-bit sparc64 kernels.

Revision 1.129 / (download) - annotate - [select for diffs], Sat Mar 7 22:02:17 2009 UTC (13 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.128: +66 -58 lines
Diff to previous 1.128 (colored)

Make ddb compile and work in userspace. Mostly this is comprised of three
types of changes:

- Add a few new methods to replace stuff like p_find(), CPU_INFO_FOREACH.

- Use db_read_bytes() instead of accessing kernel structures directly,
  and similar changes.

- Add ifdef _KERNEL where the above hasn't been done, and an XXX comment.

Revision 1.120.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:30:30 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.120.2.1: +4 -13 lines
Diff to previous 1.120.2.1 (colored) to branchpoint 1.120 (colored)

Sync with HEAD.

Revision 1.128 / (download) - annotate - [select for diffs], Sun Mar 1 12:13:12 2009 UTC (13 years, 11 months ago) by haad
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.127: +3 -4 lines
Diff to previous 1.127 (colored)

Do not set last_count to zero after every db_command function call it is
static variable. This should fix PR 40712.

Revision 1.127 / (download) - annotate - [select for diffs], Wed Feb 18 13:31:59 2009 UTC (13 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.126: +3 -11 lines
Diff to previous 1.126 (colored)

- fix vmem unittest.  rename VMEM_DEBUG so that it won't be abused again.
- reimplement vmem sanity checks with less code duplication.
- reimplement ddb vmem-related commands in a more consistent ways.
  remove automatic whatis.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:51 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.120: +216 -266 lines
Diff to previous 1.120 (colored)

Sync with HEAD.

Revision 1.114.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:51 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.114.6.4: +216 -266 lines
Diff to previous 1.114.6.4 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored)

Sync with HEAD.

Revision 1.120.4.2 / (download) - annotate - [select for diffs], Fri Jan 9 03:32:01 2009 UTC (14 years, 1 month ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.120.4.1: +185 -265 lines
Diff to previous 1.120.4.1 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored)

Pull up following revision(s) (requested by haad in ticket #241):
	sys/ddb/db_command.c: revision 1.126
	sys/ddb/db_command.h: revision 1.34
Fix my bug introduced in rev 1.98 of db_command.c where command prefix
not ambiguous in one table was choosed even if it was ambiguous in
another table in same list. Also apply more KNF rules.
Patch was supplied by uwe@.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Jan 5 22:19:40 2009 UTC (14 years, 1 month ago) by haad
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.125: +185 -265 lines
Diff to previous 1.125 (colored)

Fix my bug introduced in rev 1.98 of db_command.c where command prefix
not ambiguous in one table was choosed even if it was ambiguous in another
table in same list. Also apply more KNF rules.

Patch was supplied by uwe@.

Revision 1.115.6.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:12 2008 UTC (14 years, 1 month ago) by haad
Branch: haad-dm
Changes since 1.115.6.1: +33 -3 lines
Diff to previous 1.115.6.1 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Dec 7 00:51:15 2008 UTC (14 years, 2 months ago) by cegger
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.124: +24 -2 lines
Diff to previous 1.124 (colored)

ddb: new 'show vmem' and 'show all vmems' commands.
Useful to inspect vmem(9) structures.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Thu Nov 27 03:46:31 2008 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored)

Pull up following revision(s) (requested by nakayama in ticket #131):
	sys/arch/sparc64/sparc64/db_disasm.c: revision 1.15
	sys/arch/sparc64/sparc64/db_trace.c: revision 1.41
	sys/arch/sparc64/sparc64/db_interface.c: revision 1.113
	sys/ddb/db_command.c: revision 1.124
	sys/arch/sparc64/include/db_machdep.h: revision 1.26
Make DDB shows right register values on 32-bit sparc64 kernels.
- define db_expr_t as int64_t.
- %gsr is 32-bit, so use db_sparc_intop.
- sync arguments with function prototype.
- ansify.

Revision 1.124 / (download) - annotate - [select for diffs], Tue Nov 25 15:41:12 2008 UTC (14 years, 2 months ago) by nakayama
Branch: MAIN
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (colored)

Make DDB shows right register values on 32-bit sparc64 kernels.
- define db_expr_t as int64_t.
- %gsr is 32-bit, so use db_sparc_intop.
- sync arguments with function prototype.
- ansify.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Nov 25 15:14:07 2008 UTC (14 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.122: +6 -2 lines
Diff to previous 1.122 (colored)

Add some basic DDB stuff for modules.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Nov 16 19:34:29 2008 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.121: +3 -2 lines
Diff to previous 1.121 (colored)

more <sys/buf.h> police

Revision 1.121 / (download) - annotate - [select for diffs], Fri Nov 14 23:37:30 2008 UTC (14 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.120: +5 -2 lines
Diff to previous 1.120 (colored)

+ifdef AIO

XXX ddb needs a way to register commands at runtime!

Revision 1.115.6.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:18 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.115: +63 -38 lines
Diff to previous 1.115 (colored)

Sync with HEAD.

Revision 1.115.2.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:29:46 2008 UTC (14 years, 4 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.115.2.1: +15 -13 lines
Diff to previous 1.115.2.1 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored)

Sync with HEAD.

Revision 1.114.6.4 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:28 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.114.6.3: +15 -13 lines
Diff to previous 1.114.6.3 (colored) to branchpoint 1.114 (colored)

Sync with HEAD.

Revision 1.120 / (download) - annotate - [select for diffs], Fri Oct 3 14:52:11 2008 UTC (14 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.119: +13 -13 lines
Diff to previous 1.119 (colored)

Replace more intptr_t to uintptr_t when casting VA.

Revision 1.119 / (download) - annotate - [select for diffs], Mon Sep 29 10:27:53 2008 UTC (14 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.118: +4 -2 lines
Diff to previous 1.118 (colored)

- Fix message queue permissions problems.
- Rake into account umask when creating mqueue.
- Restore DDB command, which was accidentally lost (hi martin).
- Misc.

Revision 1.114.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:18 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.114.6.2: +50 -27 lines
Diff to previous 1.114.6.2 (colored) to branchpoint 1.114 (colored)

Sync with HEAD.

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:46 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.115: +50 -27 lines
Diff to previous 1.115 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.118 / (download) - annotate - [select for diffs], Fri Aug 8 17:09:28 2008 UTC (14 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.117: +23 -3 lines
Diff to previous 1.117 (colored)

Make "show uvmhist" available to all arches (not just sparc*) in ddb.

Revision 1.115.4.1 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:31 2008 UTC (14 years, 6 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.115: +29 -26 lines
Diff to previous 1.115 (colored) next main 1.116 (colored)

Sync with head.

Revision 1.117 / (download) - annotate - [select for diffs], Thu Jul 10 12:42:24 2008 UTC (14 years, 7 months ago) by blymn
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.116: +5 -2 lines
Diff to previous 1.116 (colored)

Add a show files command that prints the vnodes associated with a
given struct proc and, if LOCKDEBUG is built in, the lock status of
the uvmobject.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Jul 10 12:38:28 2008 UTC (14 years, 7 months ago) by blymn
Branch: MAIN
Changes since 1.115: +26 -26 lines
Diff to previous 1.115 (colored)

Whitespace clean up.

Revision 1.114.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:10 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.114.6.1: +1375 -0 lines
Diff to previous 1.114.6.1 (colored) to branchpoint 1.114 (colored)

Sync with HEAD.

Revision 1.114.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:29 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.114: +2 -9 lines
Diff to previous 1.114 (colored) next main 1.115 (colored)

sync with head.

Revision 1.114.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:23:48 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.114: +2 -9 lines
Diff to previous 1.114 (colored)

sync with head.

Revision 1.115 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:46 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl, haad-dm
Changes since 1.114: +2 -9 lines
Diff to previous 1.114 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.96.8.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:34 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.96.8.2: +5 -3 lines
Diff to previous 1.96.8.2 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored)

sync with HEAD

Revision 1.79.2.9 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:31 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.79.2.8: +4 -3 lines
Diff to previous 1.79.2.8 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

sync with head.

Revision 1.114.6.1, Thu Feb 21 02:07:45 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.114: +0 -1382 lines
FILE REMOVED

file db_command.c was added on branch mjf-devfs2 on 2008-06-02 13:23:10 +0000

Revision 1.114 / (download) - annotate - [select for diffs], Thu Feb 21 02:07:45 2008 UTC (14 years, 11 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.113: +4 -3 lines
Diff to previous 1.113 (colored)

Fix help string for "w" - it is "write" not "watch".

Revision 1.110.2.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:31 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.110.2.2: +3 -2 lines
Diff to previous 1.110.2.2 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

Sync with HEAD.

Revision 1.79.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:16 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.79.2.7: +3 -2 lines
Diff to previous 1.79.2.7 (colored) to branchpoint 1.79 (colored)

sync with head.

Revision 1.113 / (download) - annotate - [select for diffs], Sat Feb 2 18:16:42 2008 UTC (15 years ago) by martin
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.112: +3 -2 lines
Diff to previous 1.112 (colored)

When doing a reboot from ddb, set panicstr, so that later LOCKDEBUG checks
show the same mercy as with a real panic.

Revision 1.79.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:42:21 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.79.2.6: +22 -2 lines
Diff to previous 1.79.2.6 (colored) to branchpoint 1.79 (colored)

sync with head

Revision 1.96.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:08 2008 UTC (15 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.96.8.1: +24 -4 lines
Diff to previous 1.96.8.1 (colored) to branchpoint 1.96 (colored)

sync with HEAD

Revision 1.110.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:44:43 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.110.2.1: +22 -2 lines
Diff to previous 1.110.2.1 (colored) to branchpoint 1.110 (colored)

Sync with HEAD.

Revision 1.111.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:00 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.111: +22 -2 lines
Diff to previous 1.111 (colored) next main 1.112 (colored)

Sync with head.

Revision 1.111.6.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:55:17 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.111: +22 -2 lines
Diff to previous 1.111 (colored) next main 1.112 (colored)

Sync with HEAD

Revision 1.111.4.1 / (download) - annotate - [select for diffs], Thu Dec 13 05:05:31 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-kmem
Changes since 1.111: +22 -2 lines
Diff to previous 1.111 (colored) next main 1.112 (colored)

sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Thu Dec 13 02:45:11 2007 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-kmem-base3, vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.111: +22 -2 lines
Diff to previous 1.111 (colored)

add ddb "whatis" command.  inspired from solaris ::whatis dcmd.

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:47:39 2007 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored)

Sync with HEAD.

Revision 1.108.2.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:15 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.108.2.1: +2 -2 lines
Diff to previous 1.108.2.1 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)

Sync with HEAD

Revision 1.79.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:43:59 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.79.2.5: +4 -4 lines
Diff to previous 1.79.2.5 (colored) to branchpoint 1.79 (colored)

sync with head.

Revision 1.96.6.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:22 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.96.6.2: +4 -4 lines
Diff to previous 1.96.6.2 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored)

Sync with HEAD.

Revision 1.111 / (download) - annotate - [select for diffs], Wed Nov 14 12:05:42 2007 UTC (15 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: yamt-kmem-base2, yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2, bouyer-xeni386
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored)

Add a missing "else". Should finally fix PR kern/37110.

Revision 1.96.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:25:22 2007 UTC (15 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.96: +697 -177 lines
Diff to previous 1.96 (colored)

sync with HEAD

Revision 1.79.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:29:53 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.79.2.4: +697 -177 lines
Diff to previous 1.79.2.4 (colored) to branchpoint 1.79 (colored)

sync with head.

Revision 1.96.6.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:44:07 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.96.6.1: +44 -39 lines
Diff to previous 1.96.6.1 (colored) to branchpoint 1.96 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:37:05 2007 UTC (15 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.108: +7 -7 lines
Diff to previous 1.108 (colored)

Sync with HEAD.

Revision 1.95.4.5 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:05 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.95.4.4: +3 -5 lines
Diff to previous 1.95.4.4 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Mon Oct 22 00:36:28 2007 UTC (15 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.109: +6 -4 lines
Diff to previous 1.109 (colored)

Pacify some gcc uninitialized warnings at -O3

Revision 1.109 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:41 2007 UTC (15 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.108: +3 -5 lines
Diff to previous 1.108 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.95.4.4 / (download) - annotate - [select for diffs], Wed Oct 17 23:23:42 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.95.4.3: +24 -21 lines
Diff to previous 1.95.4.3 (colored) to branchpoint 1.95 (colored)

Sync with head (fix ddb).

Revision 1.99.2.2 / (download) - annotate - [select for diffs], Sun Oct 14 11:47:58 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.99.2.1: +39 -34 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored)

sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Sun Oct 14 00:37:56 2007 UTC (15 years, 4 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3
Branch point for: bouyer-xenamd64
Changes since 1.107: +24 -21 lines
Diff to previous 1.107 (colored)

db_cmd_search: When we compare names we'd better stop at the nul byte.
Don't flip-flop between found and ambiguous.  (hi, martin!)

Revision 1.95.4.3 / (download) - annotate - [select for diffs], Fri Oct 12 17:03:06 2007 UTC (15 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.95.4.2: +20 -19 lines
Diff to previous 1.95.4.2 (colored) to branchpoint 1.95 (colored)

Sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Fri Oct 12 09:53:07 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: vmlocking-base
Changes since 1.106: +20 -19 lines
Diff to previous 1.106 (colored)

Fix command name matching, avoid jumps to null function pointers and
some minor cosmetics.

Revision 1.95.4.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:09 2007 UTC (15 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.95.4.1: +670 -154 lines
Diff to previous 1.95.4.1 (colored) to branchpoint 1.95 (colored)

Sync with head.

Revision 1.106 / (download) - annotate - [select for diffs], Mon Oct 8 15:06:26 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.105: +3 -2 lines
Diff to previous 1.105 (colored)

Do another setjmp right before entering the command loop, we do not want
to execute the on-enter commands again on errors.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:31:03 2007 UTC (15 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.99: +136 -160 lines
Diff to previous 1.99 (colored)

sync with head.

Revision 1.96.6.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:16 2007 UTC (15 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.96: +669 -154 lines
Diff to previous 1.96 (colored)

Sync with HEAD.

Revision 1.105 / (download) - annotate - [select for diffs], Tue Oct 2 08:47:26 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: yamt-x86pmap-base2
Changes since 1.104: +57 -57 lines
Diff to previous 1.104 (colored)

Some cleanup:
 - When registering command tables, make sure the builtin commands are
   already registered
 - Make the command table entry structure private
 - Do not bother to store the number of commands in a table, we can quickly
   calc that if needed.

Revision 1.104 / (download) - annotate - [select for diffs], Mon Oct 1 22:05:15 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.103: +3 -2 lines
Diff to previous 1.103 (colored)

No need to db_init_commands() early any more - it will happen on first
entry to ddb.

Revision 1.103 / (download) - annotate - [select for diffs], Mon Oct 1 22:01:38 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.102: +76 -82 lines
Diff to previous 1.102 (colored)

Special case the initialization of builtin command tables to avoid using
malloc. Fixes PR kern/37042.
Allow "mach" commands registered by LKMs even if there is no builtin
mach command for the arch.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Sep 23 23:55:54 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.101: +6 -7 lines
Diff to previous 1.101 (colored)

Minor clenaup - db_cmd_loop_done is a bool nowadays, so use true/false
instead of 0/1.
Also make db_init_commands() non-static.

Revision 1.101 / (download) - annotate - [select for diffs], Sun Sep 23 19:51:20 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.100: +18 -44 lines
Diff to previous 1.100 (colored)

Simplify the "tables are already setup" test.
Print a message on unknown commands (as we used to do before) and get rid
of the now unused macro previously used for that.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Sep 23 18:59:23 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.99: +10 -2 lines
Diff to previous 1.99 (colored)

Fix build for archs w/o DB_MACHINE_COMMANDS.
Patch from KIYOHARA Takashi.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Sep 23 10:26:06 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: yamt-x86pmap-base
Branch point for: yamt-x86pmap
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

Add missing argument - fixes compilation if KGDB is defined.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Sep 22 18:40:26 2007 UTC (15 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.97: +692 -154 lines
Diff to previous 1.97 (colored)

Add a new option DDB_VERBOSE_HELP that adds online help to ddb.
From Adam Hamsik.
Minor modifications by me, all bugs are probably mine.

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Mon Sep 10 10:54:46 2007 UTC (15 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.96: +3 -2 lines
Diff to previous 1.96 (colored) next main 1.97 (colored)

Sync with HEAD.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Sep 7 18:56:06 2007 UTC (15 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Changes since 1.96: +3 -2 lines
Diff to previous 1.96 (colored)

Implementation of POSIX message queues.

Reviewed by: <ad>, <tech-kern>

Revision 1.79.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:33:06 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.79.2.3: +3 -2 lines
Diff to previous 1.79.2.3 (colored) to branchpoint 1.79 (colored)

sync with head.

Revision 1.95.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:04:54 2007 UTC (15 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.95: +3 -2 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

Sync with head.

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:13 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.95: +3 -2 lines
Diff to previous 1.95 (colored)

Sync with head.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Mon May 7 10:55:22 2007 UTC (15 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.92.2.1: +3 -2 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored)

sync with head.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Apr 30 14:44:30 2007 UTC (15 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.95: +3 -2 lines
Diff to previous 1.95 (colored)

Import of POSIX Asynchronous I/O.
Seems to be quite stable. Some work still left to do.

Please note, that syscalls are not yet MP-safe, because
of the file and vnode subsystems.

Reviewed by: <tech-kern>, <ad>

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:53:43 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.92: +61 -61 lines
Diff to previous 1.92 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.79.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:09:47 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.79.2.2: +72 -59 lines
Diff to previous 1.79.2.2 (colored) to branchpoint 1.79 (colored)

sync with head.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Feb 22 06:41:00 2007 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.94: +22 -22 lines
Diff to previous 1.94 (colored)

TRUE -> true, FALSE -> false

Revision 1.94 / (download) - annotate - [select for diffs], Thu Feb 22 04:38:05 2007 UTC (15 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.93: +40 -40 lines
Diff to previous 1.93 (colored)

Fix lossage from boolean_t -> bool and updated x86 bus_dma.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Feb 21 22:59:56 2007 UTC (15 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.92: +12 -12 lines
Diff to previous 1.92 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:26 2007 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.91: +15 -2 lines
Diff to previous 1.91 (colored)

Merge newlock2 to head.

Revision 1.89.2.2 / (download) - annotate - [select for diffs], Mon Feb 5 13:00:56 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.89.2.1: +15 -2 lines
Diff to previous 1.89.2.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)

- Dump the contents of a lock's turnstile when an error is detected.
- Add a 'show lock' command to DDB.

Revision 1.79.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:49 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.79.2.1: +37 -23 lines
Diff to previous 1.79.2.1 (colored) to branchpoint 1.79 (colored)

sync with head.

Revision 1.89.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:52 2006 UTC (16 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.89.4.1: +35 -35 lines
Diff to previous 1.89.4.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)

sync with head.

Revision 1.89.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:16 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.89: +36 -21 lines
Diff to previous 1.89 (colored)

Sync with head.

Revision 1.91 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:44 2006 UTC (16 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.90: +35 -35 lines
Diff to previous 1.90 (colored)

__unused removal on arguments; approved by core.

Revision 1.89.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:27 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.89: +36 -21 lines
Diff to previous 1.89 (colored)

sync with head

Revision 1.90 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:50 2006 UTC (16 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.89: +36 -21 lines
Diff to previous 1.89 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.84.2.2 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:26 2006 UTC (16 years, 4 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.84.2.1: +3 -4 lines
Diff to previous 1.84.2.1 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

sync with head.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:49:09 2006 UTC (16 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.83: +21 -9 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

sync with head

Revision 1.89 / (download) - annotate - [select for diffs], Tue Sep 5 21:56:44 2006 UTC (16 years, 5 months ago) by uwe
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.88: +3 -4 lines
Diff to previous 1.88 (colored)

ANSIfy db_error.

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:11 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.79: +63 -7 lines
Diff to previous 1.79 (colored)

sync with head.

Revision 1.83.4.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:36:02 2006 UTC (16 years, 8 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.83.4.1: +4 -3 lines
Diff to previous 1.83.4.1 (colored) next main 1.84 (colored)

Sync with head.

Revision 1.84.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:06 2006 UTC (16 years, 8 months ago) by tron
Branch: peter-altq
Changes since 1.84: +10 -7 lines
Diff to previous 1.84 (colored) next main 1.85 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:57:36 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.84: +10 -7 lines
Diff to previous 1.84 (colored)

sync with head.

Revision 1.88 / (download) - annotate - [select for diffs], Sun May 14 21:25:49 2006 UTC (16 years, 9 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

integrate kauth.

Revision 1.87 / (download) - annotate - [select for diffs], Sun May 14 14:00:17 2006 UTC (16 years, 9 months ago) by he
Branch: MAIN
Changes since 1.86: +3 -4 lines
Diff to previous 1.86 (colored)

Move declaration up ahead of active code in the function, so that
this can be built again with gcc 2.95.3, as used by vax.

Revision 1.84.4.2 / (download) - annotate - [select for diffs], Thu May 11 23:28:04 2006 UTC (16 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.84.4.1: +4 -2 lines
Diff to previous 1.84.4.1 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

sync with head

Revision 1.86 / (download) - annotate - [select for diffs], Wed May 10 21:53:16 2006 UTC (16 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.85: +4 -2 lines
Diff to previous 1.85 (colored)

quell GCC 4.1 uninitialised variable warnings.

XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:45 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.83: +18 -6 lines
Diff to previous 1.83 (colored)

Sync with head.

Revision 1.84.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 04:33:02 2006 UTC (16 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.84: +8 -6 lines
Diff to previous 1.84 (colored)

sync with head.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Apr 14 22:06:41 2006 UTC (16 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.84: +8 -6 lines
Diff to previous 1.84 (colored)

Coverity CID 1094: Protect against NULL deref.

Revision 1.82.2.2 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:11 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.82.2.1: +12 -2 lines
Diff to previous 1.82.2.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored)

sync with head.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Feb 19 18:52:29 2006 UTC (16 years, 11 months ago) by bjh21
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.83: +12 -2 lines
Diff to previous 1.83 (colored)

Add a "show all pages" command to DDB which prints one line per physical
page in the system.  Useful for getting some idea where all your memory's
gone, at least on a sufficiently small system.

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:51:48 2006 UTC (17 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.82: +14 -2 lines
Diff to previous 1.82 (colored)

sync with head.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Jan 24 13:02:57 2006 UTC (17 years ago) by yamt
Branch: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.82: +14 -2 lines
Diff to previous 1.82 (colored)

add ddb "sh mbuf" command.

Revision 1.71.2.5 / (download) - annotate - [select for diffs], Sun Dec 11 10:28:47 2005 UTC (17 years, 2 months ago) by christos
Branch: ktrace-lwp
Changes since 1.71.2.4: +33 -2 lines
Diff to previous 1.71.2.4 (colored) next main 1.72 (colored)

Sync with head.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Dec 1 13:21:05 2005 UTC (17 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: ktrace-lwp-base
Branch point for: yamt-uio_vmspace
Changes since 1.81: +3 -2 lines
Diff to previous 1.81 (colored)

add "show all pools" command for ddb.

Revision 1.79.8.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:07 2005 UTC (17 years, 2 months ago) by yamt
Branch: yamt-readahead
Changes since 1.79: +32 -2 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

sync with head.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Nov 27 13:05:28 2005 UTC (17 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-base3
Changes since 1.80: +27 -23 lines
Diff to previous 1.80 (colored)

make DDB_COMMANDONENTER sysctl. (ddb.commandonenter)
suggested by Christos Zoulas.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Nov 26 12:16:44 2005 UTC (17 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.79: +28 -2 lines
Diff to previous 1.79 (colored)

add a new option DDB_COMMANDONENTER.
which can be useful for eg. broken console input.

Revision 1.71.2.4 / (download) - annotate - [select for diffs], Thu Nov 10 14:03:00 2005 UTC (17 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.71.2.3: +41 -36 lines
Diff to previous 1.71.2.3 (colored)

Sync with HEAD. Here we go again...

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jun 1 12:25:27 2005 UTC (17 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead, yamt-lazymbuf
Changes since 1.78: +35 -35 lines
Diff to previous 1.78 (colored)

more constification fallout

Revision 1.78 / (download) - annotate - [select for diffs], Sun May 29 21:31:05 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

Add lots of const.

Revision 1.76.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:44 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.76: +7 -2 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

sync with -current

Revision 1.77 / (download) - annotate - [select for diffs], Fri Apr 29 10:40:16 2005 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.76: +7 -2 lines
Diff to previous 1.76 (colored)

move decl of db_machine_command_table from db_interface.h to db_command.c
to avoid an array of incomplete type.  found by gcc4.

Revision 1.71.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:26:24 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.71.2.2: +2 -2 lines
Diff to previous 1.71.2.2 (colored)

Fix the sync with head I botched.

Revision 1.71.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:44:27 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.71.2.1: +0 -0 lines
Diff to previous 1.71.2.1 (colored)

Sync with HEAD.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:44:46 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.71: +17 -2 lines
Diff to previous 1.71 (colored)

Sync with HEAD

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Thu Apr 29 04:08:15 2004 UTC (18 years, 9 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.75: +2 -3 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

Pullup rev 1.76 (requested by atatat in ticket #207)

Not supposed to be there

Revision 1.76 / (download) - annotate - [select for diffs], Tue Apr 27 04:03:28 2004 UTC (18 years, 9 months ago) by atatat
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.75: +2 -3 lines
Diff to previous 1.75 (colored)

That's not supposed to be there.  Sorry.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:52 2004 UTC (18 years, 10 months ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.74: +3 -2 lines
Diff to previous 1.74 (colored)

Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Nov 18 18:26:18 2003 UTC (19 years, 2 months ago) by dbj
Branch: MAIN
Changes since 1.73: +15 -2 lines
Diff to previous 1.73 (colored)

add "show mount" ddb command

Revision 1.73 / (download) - annotate - [select for diffs], Fri Oct 10 15:21:24 2003 UTC (19 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.72: +3 -2 lines
Diff to previous 1.72 (colored)

add "b" as a synonym for "break", since someone added "bt"
and made "b" an ambiguous prefix.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Sep 20 03:02:03 2003 UTC (19 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.71: +3 -2 lines
Diff to previous 1.71 (colored)

Add a "show sched_qs" command to dump the run queues.  Format is:
 1	pid.lid (p_comm)
	pid.lid (p_comm)
 ...

If a queue has procs, but no sched_whichqs bit, it shows:
!1	pid.lid (p_comm)

Revision 1.71 / (download) - annotate - [select for diffs], Fri May 16 16:28:30 2003 UTC (19 years, 8 months ago) by itojun
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

switch to use strlcpy() from libkern.

Revision 1.70 / (download) - annotate - [select for diffs], Thu May 15 13:18:18 2003 UTC (19 years, 9 months ago) by atatat
Branch: MAIN
Changes since 1.69: +11 -3 lines
Diff to previous 1.69 (colored)

(1) Don't print the message buffer (via ddb's dmesg command) if the
message buffer has not yet been set up, mimicking code from the top of
the sysctl routine for retrieving the message buffer.

(2) Add a /l modifier to the trace command.  This makes it print the
backtrace using printf() instead of db_printf(), which has the nice
side-effect of also putting it into the message buffer.  A kernel with
ddb in it but disabled (ie, ddb.onpanic set to zero) will print a
backtrace (which ends up in the message buffer) before dumping (or
not, depending on the value of kern.dump_on_panic) and rebooting, but
if ddb is not disabled, the backtrace is not printed, and there's no
way to get it to display a backtrace such that you can retrieve it
after the dump.  The backtrace printed by gdb is sometimes a little
different.

(3) Documentation for the above.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Apr 28 02:49:54 2003 UTC (19 years, 9 months ago) by briggs
Branch: MAIN
Changes since 1.68: +6 -2 lines
Diff to previous 1.68 (colored)

Add a rudimentary 'trap to kgdb' command if KGDB is defined.  This allows
systems with only one serial port for console, etc., to have at least some
basic access to remote-kgdb-over-serial, even if it is a bit awkward.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Feb 13 23:50:33 2003 UTC (19 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.67: +3 -2 lines
Diff to previous 1.67 (colored)

Add a synonym for trace - 'bt' and document it

Revision 1.67 / (download) - annotate - [select for diffs], Mon Jan 20 07:20:01 2003 UTC (20 years ago) by simonb
Branch: MAIN
Changes since 1.66: +3 -4 lines
Diff to previous 1.66 (colored)

Remove variable that is only assigned too but not referenced.

Revision 1.60.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:43:41 2002 UTC (20 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.60.2.4: +12 -11 lines
Diff to previous 1.60.2.4 (colored) next main 1.61 (colored)

sync kqueue branch with HEAD

Revision 1.65.8.1 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:18 2002 UTC (20 years, 5 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.65: +12 -11 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

catch up with -current.

Revision 1.57.2.5 / (download) - annotate - [select for diffs], Tue Aug 27 23:46:31 2002 UTC (20 years, 5 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.57.2.4: +12 -11 lines
Diff to previous 1.57.2.4 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Catch up to -current.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Aug 26 11:34:28 2002 UTC (20 years, 5 months ago) by scw
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Changes since 1.65: +12 -11 lines
Diff to previous 1.65 (colored)

Casting from a pointer, to a db_expr_t, has to go via an intptr_t.
(db_expr_t == int64_t on sh5, for example).

Revision 1.60.2.4 / (download) - annotate - [select for diffs], Sat Mar 16 16:00:43 2002 UTC (20 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.60.2.3: +406 -432 lines
Diff to previous 1.60.2.3 (colored)

Catch up with -current.

Revision 1.57.2.4 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:05 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.3: +406 -432 lines
Diff to previous 1.57.2.3 (colored) to branchpoint 1.57 (colored)

Catch up to -current.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Feb 15 11:18:26 2002 UTC (20 years, 11 months ago) by simonb
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.64: +28 -13 lines
Diff to previous 1.64 (colored)

Add a "show event" ddb command to show the event counters.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Feb 15 07:33:50 2002 UTC (20 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.63: +388 -429 lines
Diff to previous 1.63 (colored)

ANSIfy, KNF.
Make some variables and functions static when not used outside of a module.
Make variables in headers extern.
Delete the unused db_find_watchpoint() function.

Revision 1.60.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:52:37 2002 UTC (21 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.60.2.2: +8 -4 lines
Diff to previous 1.60.2.2 (colored)

Sync kqueue branch with -current.

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:13:37 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.2: +8 -4 lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored)

Catch up to -current.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Nov 12 22:54:04 2001 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.62: +8 -4 lines
Diff to previous 1.62 (colored)

add RCSIDs

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:07 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.60.2.1: +21 -1 lines
Diff to previous 1.60.2.1 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:09:01 2001 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.1: +22 -1 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored)

Catch up with -current.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Aug 17 01:00:10 2001 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.61: +21 -1 lines
Diff to previous 1.61 (colored)

Add `show malloc' to dump the internal state of the MALLOC_DEBUG code.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:12:50 2001 UTC (21 years, 6 months ago) by lukem
Branch: kqueue
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

update to -current

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jul 31 04:28:16 2001 UTC (21 years, 6 months ago) by atatat
Branch: MAIN
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

Add an easy way to dump the message buffer from ddb.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:01:08 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57: +6 -3 lines
Diff to previous 1.57 (colored)

Catch up to -current.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 3 00:32:25 2001 UTC (21 years, 8 months ago) by matt
Branch: MAIN
Branch point for: kqueue
Changes since 1.59: +4 -1 lines
Diff to previous 1.59 (colored)

Default to kernel_map if no addr is available.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Jun 2 18:09:25 2001 UTC (21 years, 8 months ago) by chs
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

replace vm_map{,_entry}_t with struct vm_map{,_entry} *.

Revision 1.58 / (download) - annotate - [select for diffs], Wed May 30 11:42:12 2001 UTC (21 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

use _KERNEL_OPT

Revision 1.31.2.4 / (download) - annotate - [select for diffs], Mon Mar 12 13:30:00 2001 UTC (21 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.31.2.3: +5 -5 lines
Diff to previous 1.31.2.3 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

Sync with HEAD.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Feb 11 21:12:24 2001 UTC (22 years ago) by jhawk
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.56: +5 -5 lines
Diff to previous 1.56 (colored)

alphabetize db_command tables

Revision 1.31.2.3 / (download) - annotate - [select for diffs], Sun Feb 11 19:15:12 2001 UTC (22 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.31.2.2: +17 -39 lines
Diff to previous 1.31.2.2 (colored) to branchpoint 1.31 (colored)

Sync with HEAD.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jan 24 20:54:41 2001 UTC (22 years ago) by jdolecek
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

make db_command_table[] const; since there is no way to dynamically extend
or modify the table at the moment, there is no functionality lost.
See also the discussion on tech-kern (Subject: 'machine' DDB command).

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jan 22 13:56:55 2001 UTC (22 years ago) by jdolecek
Branch: MAIN
Changes since 1.54: +2 -24 lines
Diff to previous 1.54 (colored)

Require the machine-dependant DDB commands to be in db_machine_command_table[]
and link it directly to db_command_table[] so that it's not necessary
to do this at runtime. Make db_machine_command_table[] const on all ports.
g/c now unneded stuff, like db_machine_commands_install(), db_machine_init()

Patch written by enami.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jan 18 08:52:26 2001 UTC (22 years ago) by enami
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

db_command_table needs to be writable at least when DB_MACHINE_COMMANDS
is defined.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jan 17 19:50:03 2001 UTC (22 years ago) by jdolecek
Branch: MAIN
Changes since 1.52: +16 -16 lines
Diff to previous 1.52 (colored)

constify a little

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:09:51 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.31.2.1: +27 -3 lines
Diff to previous 1.31.2.1 (colored) to branchpoint 1.31 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Nov 28 19:27:46 2000 UTC (22 years, 2 months ago) by eeh
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

Restore the top level `callout' command.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Nov 24 07:25:51 2000 UTC (22 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.50: +27 -4 lines
Diff to previous 1.50 (colored)

add ddb commands "show uvmexp" and "show ncache".
the former used to be "call uvm_dump", the latter is new.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:08:47 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.31: +219 -61 lines
Diff to previous 1.31 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jul 8 17:10:22 2000 UTC (22 years, 7 months ago) by sommerfeld
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

printf format safety

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jun 27 17:55:39 2000 UTC (22 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.48: +1 -3 lines
Diff to previous 1.48 (colored)

remove include of <vm/vm.h>

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:06:11 2000 UTC (22 years, 7 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.43: +27 -11 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jun 17 05:57:41 2000 UTC (22 years, 7 months ago) by jhawk
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.47: +7 -6 lines
Diff to previous 1.47 (colored)

In db_command(), fix indentation and add a missing db_skip_to_eol() which
previously caused the next command following a ","-style repitition
to not be properly executed.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jun 10 16:31:42 2000 UTC (22 years, 8 months ago) by sommerfeld
Branch: MAIN
Changes since 1.46: +13 -2 lines
Diff to previous 1.46 (colored)

In the "reboot" and (badly misnamed) "sync" commands, clear db_recover
before calling cpu_reboot() (which never returns) so we can debug
faults occurring in cpu_reboot().

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jun 8 21:06:46 2000 UTC (22 years, 8 months ago) by jhawk
Branch: MAIN
Changes since 1.45: +4 -2 lines
Diff to previous 1.45 (colored)

Only define db_show_arptab if NARP>1;
pointed out by cgd in kern/10314

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jun 6 05:06:25 2000 UTC (22 years, 8 months ago) by jhawk
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Stop using DDB-specific "%n" kprintf() format specifier. This was
important as db_sym() can be called through printf() rather than
db_printf(), causing a trap as the standard %n usage is invoked.

The DDB-specific %n code should disappear from subr_prf.c soon...

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 28 19:03:55 2000 UTC (22 years, 8 months ago) by sommerfeld
Branch: MAIN
Changes since 1.43: +5 -3 lines
Diff to previous 1.43 (colored)

Change printing of cpu number in the prompt in the MULTIPROCESSOR case

Revision 1.43 / (download) - annotate - [select for diffs], Fri May 26 03:34:31 2000 UTC (22 years, 8 months ago) by jhawk
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.42: +14 -1 lines
Diff to previous 1.42 (colored)

Rename the machine-specific stack trace printing functions
from db_stack_trace_cmd() to db_stack_trace_print(),
and add an additional argument, a function pointer for an
output routine (i.e. printf() or db_printf()).

Add db_stack_trace_cmd() in db_command.[ch], calling
db_stack_trace_print() with db_printf() as the printer.

Move count==-1 special handling from db_stack_trace_print() [nee
db_stack_trace_cmd()] to db_stack_trace_cmd() [nascent here].

Again, I'm unable to test compilation on all affected platforms,
so advance apologies for potential brokenness.

Revision 1.42 / (download) - annotate - [select for diffs], Tue May 23 06:06:10 2000 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Fix a printf format.

Revision 1.41 / (download) - annotate - [select for diffs], Mon May 22 14:49:10 2000 UTC (22 years, 8 months ago) by jhawk
Branch: MAIN
Changes since 1.40: +36 -1 lines
Diff to previous 1.40 (colored)

Add a "sifting" command to ddb (named from the Sun OpenPROM command of
the same name); it searches the symbol table(s) for all symbols matching
a given substring, and prints.

Extremely useful for when you forget that critical symbol name.

Also, with /F support (cf. "ls -F") to print a char indicating the
symbol type.

Revision 1.40 / (download) - annotate - [select for diffs], Sat May 20 03:08:41 2000 UTC (22 years, 8 months ago) by jhawk
Branch: MAIN
Changes since 1.39: +5 -1 lines
Diff to previous 1.39 (colored)

Install "show arptab" (db_show_arptab) in the ddb command tree.
Move prototype from netinet/if_inarp.h to ddb/db_interface.h.
Change function to have standard ddb parameters (though they're
ignored).

Revision 1.39 / (download) - annotate - [select for diffs], Mon May 15 19:56:43 2000 UTC (22 years, 9 months ago) by jhawk
Branch: MAIN
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

"p" should be an alias for "print", and was until "ps" was added.
Now it is, again.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Apr 13 22:48:29 2000 UTC (22 years, 10 months ago) by jhawk
Branch: MAIN
Changes since 1.37: +17 -4 lines
Diff to previous 1.37 (colored)

From kern/9569.
Preserve ddb's idea of "count" from one command to the next if
repeating a command via hitting newline.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Apr 11 02:21:16 2000 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

actually add buf- and vnode-printing commands to the table.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Apr 10 02:22:13 2000 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.35: +34 -1 lines
Diff to previous 1.35 (colored)

add ddb commands for printing vnodes and bufs.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Mar 30 11:31:26 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Die, register, die!

Revision 1.34 / (download) - annotate - [select for diffs], Mon Feb 21 05:48:56 2000 UTC (22 years, 11 months ago) by sommerfeld
Branch: MAIN
Changes since 1.33: +11 -1 lines
Diff to previous 1.33 (colored)

On MP, print cpu number prior to prompt

Revision 1.31.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:34:33 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.31: +83 -50 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Pull up to last week's -current.

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:40:07 1999 UTC (23 years, 3 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.31: +83 -50 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with -current

Revision 1.33 / (download) - annotate - [select for diffs], Tue Nov 2 23:53:31 1999 UTC (23 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

db_cmd_list(): variable ``width'' might have be used uninitialized, initialize
it to 0

Revision 1.32 / (download) - annotate - [select for diffs], Thu Oct 28 06:37:32 1999 UTC (23 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.31: +83 -50 lines
Diff to previous 1.31 (colored)

- change db_cmd_list() to list commands vertically rather than horizontally
- sort entries in the various command tables, so that the `help' lists
  are easier to use. this included hacking db_machine_commands_install()
  to search for the "machine" entry to change the `more cmds' pointer,
  rather than assuming it was the first entry
- add a `sync' command, which is effectively `reboot 0x100'.
- remove db_help_cmd(); it was unused (and was almost a duplicate of
  db_cmd_list()).
- move some extern decls to db_output.h, since they're used in more than one
  place now
- rename NEXT_TAB to DB_NEXT_TAB and move to db_output.h

Revision 1.28.2.2.2.2 / (download) - annotate - [select for diffs], Mon Jun 21 01:16:20 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.28.2.2.2.1: +15 -1 lines
Diff to previous 1.28.2.2.2.1 (colored) to branchpoint 1.28.2.2 (colored) next main 1.29 (colored)

Sync w/ -current.

Revision 1.28.2.2.2.1 / (download) - annotate - [select for diffs], Mon Jun 7 04:25:29 1999 UTC (23 years, 8 months ago) by chs
Branch: chs-ubc2
Changes since 1.28.2.2: +36 -1 lines
Diff to previous 1.28.2.2 (colored)

merge everything from chs-ubc branch.

Revision 1.31 / (download) - annotate - [select for diffs], Mon May 10 21:13:05 1999 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.30: +15 -1 lines
Diff to previous 1.30 (colored)

Improve the pool allocator's diagnostic helpers, adding the ability to
log on a per-pool basis, reentrancy checking, and dumping various pool
information from DDB.

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Mon Apr 12 21:27:07 1999 UTC (23 years, 10 months ago) by pk
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.28.2.1: +2 -2 lines
Diff to previous 1.28.2.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Pullup copyright text corrections.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 12 20:38:20 1999 UTC (23 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Quote "AS IS" as in the majority of Carnegy Mellon notices.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Wed Apr 7 08:12:50 1999 UTC (23 years, 10 months ago) by pk
Branch: netbsd-1-4
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Pull up from trunk: copyright text warts.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Apr 6 20:09:21 1999 UTC (23 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Fix a pasto in copyright text which has been procreating like rabbits..

Revision 1.28 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:20 1999 UTC (23 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.27: +1 -16 lines
Diff to previous 1.27 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Mon Nov 9 06:06:31 1998 UTC (24 years, 3 months ago) by chs
Branch: chs-ubc
Changes since 1.27: +36 -1 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

initial snapshot.  lots left to do.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jul 5 14:33:56 1998 UTC (24 years, 7 months ago) by tron
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base
Branch point for: chs-ubc
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Include required "opt_ddb.h" header file.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jul 4 22:18:48 1998 UTC (24 years, 7 months ago) by jonathan
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

defopt DDB.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 10 14:09:16 1998 UTC (25 years ago) by mrg
Branch: MAIN
Changes since 1.24: +3 -1 lines
Diff to previous 1.24 (colored)

- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 5 07:59:35 1998 UTC (25 years ago) by mrg
Branch: MAIN
Changes since 1.23: +34 -1 lines
Diff to previous 1.23 (colored)

initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the rest of the MI portion changes.

this will be KNF'd shortly.  :-)

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Tue Sep 16 03:49:52 1997 UTC (25 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.22: +23 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Sep 11 06:55:56 1997 UTC (25 years, 5 months ago) by scottr
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.22: +23 -2 lines
Diff to previous 1.22 (colored)

Add a 'reboot' command with a single parameter specifying the boot flags.

Revision 1.22 / (download) - annotate - [select for diffs], Wed May 7 18:51:58 1997 UTC (25 years, 9 months ago) by gwr
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Add a "kill" command that calls db_kill_proc().

Revision 1.21 / (download) - annotate - [select for diffs], Mon Feb 3 23:43:35 1997 UTC (26 years ago) by mycroft
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

db_expr_t became a long.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Mar 30 22:30:05 1996 UTC (26 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Fix db_printf format specifications.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 13 21:06:38 1996 UTC (26 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Kernel version of longjmp() does not take the return value of setjmp() as
an argument. setjmp() always returns 1.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 7 14:33:39 1996 UTC (26 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

Bring setjmp/longjmp prototypes into scope.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 13 17:39:01 1996 UTC (27 years ago) by gwr
Branch: MAIN
Changes since 1.16: +9 -8 lines
Diff to previous 1.16 (colored)

eliminate setjmp.h

Revision 1.16 / (download) - annotate - [select for diffs], Mon Feb 5 01:56:53 1996 UTC (27 years ago) by christos
Branch: MAIN
Changes since 1.15: +58 -66 lines
Diff to previous 1.15 (colored)

DDB prototype changes.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Oct 26 14:52:33 1995 UTC (27 years, 3 months ago) by gwr
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

Need to include <vm/vm.h>

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 16 05:28:14 1995 UTC (27 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Fix nits pointed out by GCC 2.7.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 9 08:29:59 1994 UTC (28 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.12: +1 -5 lines
Diff to previous 1.12 (colored)

Clean up #includes.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 29 06:31:01 1994 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.11 / (download) - annotate - [select for diffs], Wed Apr 27 10:49:07 1994 UTC (28 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

Add "show callout".

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 23 20:00:56 1994 UTC (28 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.9: +17 -30 lines
Diff to previous 1.9 (colored)

struct command => struct db_command, and define it in db_command.h

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 9 22:56:07 1994 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Pointers to arrays behave oddly in C...

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jan 9 22:35:10 1994 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.7: +16 -13 lines
Diff to previous 1.7 (colored)

Push and pop db_recover for error handling, so we can set up temporary catch
points easily.  (Alluded to by m68k code, but not implemented yet for some
reason.)

Revision 1.7 / (download) - annotate - [select for diffs], Sat Dec 18 04:46:29 1993 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored)

Canonicalize all #includes.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sun Nov 14 22:48:30 1993 UTC (29 years, 3 months ago) by mycroft
Branch: magnum
Changes since 1.5.2.1: +3 -3 lines
Diff to previous 1.5.2.1 (colored) next main 1.6 (colored)

Canonicalize all #includes.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Sep 14 18:17:23 1993 UTC (29 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.5: +42 -25 lines
Diff to previous 1.5 (colored)

Incorporate changes from main branch.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 13 14:08:54 1993 UTC (29 years, 5 months ago) by brezak
Branch: MAIN
CVS Tags: magnum-base
Changes since 1.5: +42 -25 lines
Diff to previous 1.5 (colored)

Call vm_map_print and vm_object_print with func ptr to db_printf. Add DDB_MACHINE_COMMANDS from Mach 3.0 version.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 2 17:53:12 1993 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Branch point for: magnum
Changes since 1.4: +2 -56 lines
Diff to previous 1.4 (colored)

Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 15 18:35:00 1993 UTC (29 years, 7 months ago) by brezak
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.3: +48 -19 lines
Diff to previous 1.3 (colored)

Add 'ps' command. Add -more- pager to output from Mach ddb.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 03:39:10 1993 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.2: +6 -1 lines
Diff to previous 1.2 (colored)

add explicit rcs id

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +4 -15 lines
Diff to previous 1.1 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: WFJ-920714
CVS Tags: WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>