#
1.22 |
|
09-Jan-2021 |
gnezdo |
Finish converting ddb_sysctl to sysctl_int_bounded
I missed the verbose pattern that it used for error checking the first time around.
OK millert@
|
#
1.21 |
|
10-Dec-2020 |
gnezdo |
Convert ddb_sysctl to sysctl_bounded_arr
ok gkoehler@
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
|
#
1.20 |
|
08-Sep-2017 |
deraadt |
If you use sys/param.h, you don't need sys/types.h
|
#
1.19 |
|
30-Apr-2017 |
mpi |
Rename Debugger() into db_enter().
Using a name with the 'db_' prefix makes it invisible from the dynamic profiler.
ok deraadt@, kettenis@, visa@
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.18 |
|
04-Sep-2016 |
mpi |
Introduce Dynamic Profiling, a ddb(4) based & gprof compatible kernel profiling framework.
Code patching is used to enable probes when entering functions. The probes will call a mcount()-like function to match the behavior of a GPROF kernel.
Currently only available on amd64 and guarded under DDBPROF. Support for other archs will follow soon.
A new sysctl knob, ddb.console, need to be set to 1 in securelevel 0 to be able to use this feature.
Inputs and ok guenther@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.17 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.16 |
|
08-Jul-2014 |
deraadt |
These do not need the extremely poorly named uvm/uvm_extern.h (which pulls in the universe). occasionally they need sys/systm.h
|
Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.15 |
|
10-Jun-2013 |
bluhm |
If sysctl ddb.trigger=1 is not called from the console, the error message "value is not available" was misleading. Use the ENODEV error to generate the more appropriate message "Operation not supported by device". Note that ddb.console must be set to 1 to see that error at all. OK mpf@
|
Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.14 |
|
26-Jul-2010 |
guenther |
Correct the links between threads, processes, pgrps, and sessions, so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.13 |
|
08-Nov-2008 |
mpf |
Add a new sysctl ``ddb.trigger'' Writing to it, will bring the system into the kernel debugger. ddb.console=1 is required and the sysctl command has to be executed from the actual console tty. If the securelevel is < 1, the tty check is ignored. Feedback and OK ckuethe@, deraadt@.
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.12 |
|
15-Mar-2006 |
miod |
Still allow ddb.console and ddb.panic to be raised if securelevel <= 0; ok deraadt@
|
#
1.11 |
|
15-Mar-2006 |
deraadt |
use sysctl_int_lower (old code had the negative bug)
|
#
1.10 |
|
13-Mar-2006 |
jsg |
ansi/deregister. No binary change.
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.9 |
|
06-Feb-2004 |
tedu |
default db.log=1. as noted by Sam Smith, this is more useful. mickey concurred
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.8 |
|
28-Jun-2003 |
tedu |
option to log ddb output to kernel message buffer, via sysctl ddb.log ok deraadt@ henric@ djm@
|
#
1.7 |
|
02-Jun-2003 |
mickey |
kill the clauses three and four on my sources
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
|
#
1.6 |
|
01-Jul-2002 |
miod |
Don't let variable declarations without "extern" living in .h files. While there fix a benign type mismatch in db_stack_dump() and remove diag code left by art by mistake.
|
Revision tags: OPENBSD_3_1_BASE UBC_BASE
|
#
1.5 |
|
06-Nov-2001 |
miod |
branches: 1.5.2; Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary. (Look ma, I might have broken the tree)
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
|
#
1.4 |
|
27-Feb-2000 |
hugh |
Provide a means to lock ddb off on systems at high securelevel, in order reduce the need for a custom kernel sans ddb.
|
Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE SMP_BASE kame_19991208
|
#
1.3 |
|
05-Feb-1998 |
deraadt |
branches: 1.3.10; rename ddb.panic_ddb, and add ddb.console. Now you can stop console ddb entry with a sysctl. There will be architectures and drivers that lack function, and I trust the maintainers of those will forget to add the code..
|
#
1.2 |
|
29-Dec-1997 |
deraadt |
sysctl ddb.panic_ddb; felix@mamba.pond.sub.org
|
Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE
|
#
1.1 |
|
30-Mar-1996 |
mickey |
Added: sysctl access to the ddb variables. Fixed: "netbsd" strings in sym table handling routines. now it is usefull to change max_{width,line} according to your real console geometry, just w/ sysctl program.
|
#
1.21 |
|
10-Dec-2020 |
gnezdo |
Convert ddb_sysctl to sysctl_bounded_arr
ok gkoehler@
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
|
#
1.20 |
|
08-Sep-2017 |
deraadt |
If you use sys/param.h, you don't need sys/types.h
|
#
1.19 |
|
30-Apr-2017 |
mpi |
Rename Debugger() into db_enter().
Using a name with the 'db_' prefix makes it invisible from the dynamic profiler.
ok deraadt@, kettenis@, visa@
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.18 |
|
04-Sep-2016 |
mpi |
Introduce Dynamic Profiling, a ddb(4) based & gprof compatible kernel profiling framework.
Code patching is used to enable probes when entering functions. The probes will call a mcount()-like function to match the behavior of a GPROF kernel.
Currently only available on amd64 and guarded under DDBPROF. Support for other archs will follow soon.
A new sysctl knob, ddb.console, need to be set to 1 in securelevel 0 to be able to use this feature.
Inputs and ok guenther@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.17 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.16 |
|
08-Jul-2014 |
deraadt |
These do not need the extremely poorly named uvm/uvm_extern.h (which pulls in the universe). occasionally they need sys/systm.h
|
Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.15 |
|
10-Jun-2013 |
bluhm |
If sysctl ddb.trigger=1 is not called from the console, the error message "value is not available" was misleading. Use the ENODEV error to generate the more appropriate message "Operation not supported by device". Note that ddb.console must be set to 1 to see that error at all. OK mpf@
|
Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.14 |
|
26-Jul-2010 |
guenther |
Correct the links between threads, processes, pgrps, and sessions, so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.13 |
|
08-Nov-2008 |
mpf |
Add a new sysctl ``ddb.trigger'' Writing to it, will bring the system into the kernel debugger. ddb.console=1 is required and the sysctl command has to be executed from the actual console tty. If the securelevel is < 1, the tty check is ignored. Feedback and OK ckuethe@, deraadt@.
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.12 |
|
15-Mar-2006 |
miod |
Still allow ddb.console and ddb.panic to be raised if securelevel <= 0; ok deraadt@
|
#
1.11 |
|
15-Mar-2006 |
deraadt |
use sysctl_int_lower (old code had the negative bug)
|
#
1.10 |
|
13-Mar-2006 |
jsg |
ansi/deregister. No binary change.
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.9 |
|
06-Feb-2004 |
tedu |
default db.log=1. as noted by Sam Smith, this is more useful. mickey concurred
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.8 |
|
28-Jun-2003 |
tedu |
option to log ddb output to kernel message buffer, via sysctl ddb.log ok deraadt@ henric@ djm@
|
#
1.7 |
|
02-Jun-2003 |
mickey |
kill the clauses three and four on my sources
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
|
#
1.6 |
|
01-Jul-2002 |
miod |
Don't let variable declarations without "extern" living in .h files. While there fix a benign type mismatch in db_stack_dump() and remove diag code left by art by mistake.
|
Revision tags: OPENBSD_3_1_BASE UBC_BASE
|
#
1.5 |
|
06-Nov-2001 |
miod |
branches: 1.5.2; Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary. (Look ma, I might have broken the tree)
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
|
#
1.4 |
|
27-Feb-2000 |
hugh |
Provide a means to lock ddb off on systems at high securelevel, in order reduce the need for a custom kernel sans ddb.
|
Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE SMP_BASE kame_19991208
|
#
1.3 |
|
05-Feb-1998 |
deraadt |
branches: 1.3.10; rename ddb.panic_ddb, and add ddb.console. Now you can stop console ddb entry with a sysctl. There will be architectures and drivers that lack function, and I trust the maintainers of those will forget to add the code..
|
#
1.2 |
|
29-Dec-1997 |
deraadt |
sysctl ddb.panic_ddb; felix@mamba.pond.sub.org
|
Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE
|
#
1.1 |
|
30-Mar-1996 |
mickey |
Added: sysctl access to the ddb variables. Fixed: "netbsd" strings in sym table handling routines. now it is usefull to change max_{width,line} according to your real console geometry, just w/ sysctl program.
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.20 |
|
08-Sep-2017 |
deraadt |
If you use sys/param.h, you don't need sys/types.h
|
#
1.19 |
|
30-Apr-2017 |
mpi |
Rename Debugger() into db_enter().
Using a name with the 'db_' prefix makes it invisible from the dynamic profiler.
ok deraadt@, kettenis@, visa@
|
Revision tags: OPENBSD_6_1_BASE
|
#
1.18 |
|
04-Sep-2016 |
mpi |
Introduce Dynamic Profiling, a ddb(4) based & gprof compatible kernel profiling framework.
Code patching is used to enable probes when entering functions. The probes will call a mcount()-like function to match the behavior of a GPROF kernel.
Currently only available on amd64 and guarded under DDBPROF. Support for other archs will follow soon.
A new sysctl knob, ddb.console, need to be set to 1 in securelevel 0 to be able to use this feature.
Inputs and ok guenther@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.17 |
|
14-Mar-2015 |
jsg |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.16 |
|
08-Jul-2014 |
deraadt |
These do not need the extremely poorly named uvm/uvm_extern.h (which pulls in the universe). occasionally they need sys/systm.h
|
Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.15 |
|
10-Jun-2013 |
bluhm |
If sysctl ddb.trigger=1 is not called from the console, the error message "value is not available" was misleading. Use the ENODEV error to generate the more appropriate message "Operation not supported by device". Note that ddb.console must be set to 1 to see that error at all. OK mpf@
|
Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.14 |
|
26-Jul-2010 |
guenther |
Correct the links between threads, processes, pgrps, and sessions, so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10.
Tested by many: deraadt, sthen, krw, ray, and in snapshots
|
Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.13 |
|
08-Nov-2008 |
mpf |
Add a new sysctl ``ddb.trigger'' Writing to it, will bring the system into the kernel debugger. ddb.console=1 is required and the sysctl command has to be executed from the actual console tty. If the securelevel is < 1, the tty check is ignored. Feedback and OK ckuethe@, deraadt@.
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.12 |
|
15-Mar-2006 |
miod |
Still allow ddb.console and ddb.panic to be raised if securelevel <= 0; ok deraadt@
|
#
1.11 |
|
15-Mar-2006 |
deraadt |
use sysctl_int_lower (old code had the negative bug)
|
#
1.10 |
|
13-Mar-2006 |
jsg |
ansi/deregister. No binary change.
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE SMP_SYNC_A SMP_SYNC_B
|
#
1.9 |
|
06-Feb-2004 |
tedu |
default db.log=1. as noted by Sam Smith, this is more useful. mickey concurred
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.8 |
|
28-Jun-2003 |
tedu |
option to log ddb output to kernel message buffer, via sysctl ddb.log ok deraadt@ henric@ djm@
|
#
1.7 |
|
02-Jun-2003 |
mickey |
kill the clauses three and four on my sources
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_SYNC_A UBC_SYNC_B
|
#
1.6 |
|
01-Jul-2002 |
miod |
Don't let variable declarations without "extern" living in .h files. While there fix a benign type mismatch in db_stack_dump() and remove diag code left by art by mistake.
|
Revision tags: OPENBSD_3_1_BASE UBC_BASE
|
#
1.5 |
|
06-Nov-2001 |
miod |
branches: 1.5.2; Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary. (Look ma, I might have broken the tree)
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
|
#
1.4 |
|
27-Feb-2000 |
hugh |
Provide a means to lock ddb off on systems at high securelevel, in order reduce the need for a custom kernel sans ddb.
|
Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE SMP_BASE kame_19991208
|
#
1.3 |
|
05-Feb-1998 |
deraadt |
branches: 1.3.10; rename ddb.panic_ddb, and add ddb.console. Now you can stop console ddb entry with a sysctl. There will be architectures and drivers that lack function, and I trust the maintainers of those will forget to add the code..
|
#
1.2 |
|
29-Dec-1997 |
deraadt |
sysctl ddb.panic_ddb; felix@mamba.pond.sub.org
|
Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE
|
#
1.1 |
|
30-Mar-1996 |
mickey |
Added: sysctl access to the ddb variables. Fixed: "netbsd" strings in sym table handling routines. now it is usefull to change max_{width,line} according to your real console geometry, just w/ sysctl program.
|