History log of /netbsd-src/sys/ddb/db_command.c (Results 1 – 25 of 190)
Revision Date Author Comments
# 3007f140 02-Nov-2023 martin <martin@NetBSD.org>

Back out the following revisions on behalf of core:

sys/sys/lwp.h: revision 1.228
sys/sys/pipe.h: revision 1.40
sys/kern/uipc_socket.c: revision 1.306
sys/kern/kern_sleepq.c: revision 1.84
sys/

Back out the following revisions on behalf of core:

sys/sys/lwp.h: revision 1.228
sys/sys/pipe.h: revision 1.40
sys/kern/uipc_socket.c: revision 1.306
sys/kern/kern_sleepq.c: revision 1.84
sys/rump/librump/rumpkern/locks_up.c: revision 1.13
sys/kern/sys_pipe.c: revision 1.165
usr.bin/fstat/fstat.c: revision 1.119
sys/rump/librump/rumpkern/locks.c: revision 1.87
sys/ddb/db_xxx.c: revision 1.78
sys/ddb/db_command.c: revision 1.187
sys/sys/condvar.h: revision 1.18
sys/ddb/db_interface.h: revision 1.42
sys/sys/socketvar.h: revision 1.166
sys/kern/uipc_syscalls.c: revision 1.209
sys/kern/kern_condvar.c: revision 1.60

Add cv_fdrestart() [...]
Use cv_fdrestart() to implement fo_restart.
Simplify/streamline pipes a little bit [...]

This changes have caused regressions and need to be debugged.
The cv_fdrestart() addition needs more discussion.

show more ...


# 016ac93b 15-Oct-2023 riastradh <riastradh@NetBSD.org>

ddb: Don't restrict `show all tstiles' to wmesg `tstile'.

This is no longer the wmesg, as of last week -- now it's the name of
the underlying syncobj, like `mutex' or `rwlock'.


# 5a1f45c8 15-Oct-2023 riastradh <riastradh@NetBSD.org>

ddb: Constify db_syncobj_owner argument.

No need for it to be writable, and the actual type of the struct lwp
member is const.


# 61757a07 13-Oct-2023 ad <ad@NetBSD.org>

Simplify/streamline pipes a little bit:

- Allocate only one struct pipe not two (no need to be bidirectional here).
- Then use f_flag (FREAD/FWRITE) to figure out what to do in the fileops.
- Never

Simplify/streamline pipes a little bit:

- Allocate only one struct pipe not two (no need to be bidirectional here).
- Then use f_flag (FREAD/FWRITE) to figure out what to do in the fileops.
- Never wake the other side or acquire long-term (I/O) lock unless needed.
- Whenever possible, defer wakeups until after locks have been released.
- Do some things locklessly in pipe_ioctl() and pipe_poll().

Some notable results:

- -30% latency on a 486DX2/66 doing 1 byte ping-pong within a single process.
- 2.5x less lock contention during "make cleandir" of src on a 48 CPU machine.
- 1.5x bandwith with 1kB messages on the same 48 CPU machine (8kB: same b/w).

show more ...


# 9bf25175 07-Oct-2023 ad <ad@NetBSD.org>

Add some simple DDB show commands: condvar, selinfo, sleepq


# 6674f753 17-Jul-2023 riastradh <riastradh@NetBSD.org>

ddb: Teach `show all tstiles' to show the type of each lock.


# e000c055 11-Jul-2023 riastradh <riastradh@NetBSD.org>

ddb: Cast pointer to uintptr_t first before db_expr_t.


# 70ecadb0 09-Jul-2023 riastradh <riastradh@NetBSD.org>

ddb: New `show all tstiles' command.

Shows who's waiting for which locks and what the owner is up to.

XXX pullup-10


# 053fb2b4 25-May-2023 uwe <uwe@NetBSD.org>

ddb: PR kern/57435 - fix duplicate "show mount"

Bolivar cannot carry double. One of these commands should have been
"show mounts", cf. page/pages and a few others. While here fix the
function name

ddb: PR kern/57435 - fix duplicate "show mount"

Bolivar cannot carry double. One of these commands should have been
"show mounts", cf. page/pages and a few others. While here fix the
function name to be db_show_all_mounts to conform to the pattern.

show more ...


# 5082768d 28-Apr-2022 msaitoh <msaitoh@NetBSD.org>

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


# 6b33e13a 20-Apr-2022 uwe <uwe@NetBSD.org>

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 f

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.

show more ...


# c5931c83 10-Oct-2021 thorpej <thorpej@NetBSD.org>

Add a "show kqueue <addr>" command.


# c69f42d3 21-Aug-2021 andvar <andvar@NetBSD.org>

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


# ebbc7028 13-Aug-2021 andvar <andvar@NetBSD.org>

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


# 110ac605 23-Feb-2021 mrg <mrg@NetBSD.org>

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.


# d20ab3a0 30-Oct-2020 skrll <skrll@NetBSD.org>

Remove "also;"


# 155f2770 30-Oct-2020 skrll <skrll@NetBSD.org>

Add a "show fdt" ddb command


# 3d56dc6d 30-Oct-2020 skrll <skrll@NetBSD.org>

Sort the db_show_cmd entries


# 9fe75a0d 30-Oct-2020 skrll <skrll@NetBSD.org>

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


# f157d2e2 30-Oct-2020 skrll <skrll@NetBSD.org>

Trailing whitespace


# 15572d36 13-Apr-2020 skrll <skrll@NetBSD.org>

Handle "no count" properly in db_kernhist_print_cmd


# 5a464645 10-Mar-2020 christos <christos@NetBSD.org>

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


# 18fbafec 09-Mar-2020 christos <christos@NetBSD.org>

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


# 599c2405 01-Jan-2020 thorpej <thorpej@NetBSD.org>

- 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
ju

- 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.

show more ...


# 9b1e2fa2 27-Dec-2019 ad <ad@NetBSD.org>

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 unus

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.

show more ...


12345678