Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_kdb.c
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
static int kdb_sysctl_enter(SYSCTL_HANDLER_ARGS); | static int kdb_sysctl_enter(SYSCTL_HANDLER_ARGS); | ||||
static int kdb_sysctl_panic(SYSCTL_HANDLER_ARGS); | static int kdb_sysctl_panic(SYSCTL_HANDLER_ARGS); | ||||
static int kdb_sysctl_trap(SYSCTL_HANDLER_ARGS); | static int kdb_sysctl_trap(SYSCTL_HANDLER_ARGS); | ||||
static int kdb_sysctl_trap_code(SYSCTL_HANDLER_ARGS); | static int kdb_sysctl_trap_code(SYSCTL_HANDLER_ARGS); | ||||
static int kdb_sysctl_stack_overflow(SYSCTL_HANDLER_ARGS); | static int kdb_sysctl_stack_overflow(SYSCTL_HANDLER_ARGS); | ||||
static SYSCTL_NODE(_debug, OID_AUTO, kdb, CTLFLAG_RW, NULL, "KDB nodes"); | static SYSCTL_NODE(_debug, OID_AUTO, kdb, CTLFLAG_RW, NULL, "KDB nodes"); | ||||
SYSCTL_PROC(_debug_kdb, OID_AUTO, available, CTLTYPE_STRING | CTLFLAG_RD, NULL, | SYSCTL_PROC(_debug_kdb, OID_AUTO, available, | ||||
0, kdb_sysctl_available, "A", "list of available KDB backends"); | CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_NEEDGIANT, | ||||
NULL, 0, kdb_sysctl_available, "A", | |||||
"list of available KDB backends"); | |||||
SYSCTL_PROC(_debug_kdb, OID_AUTO, current, CTLTYPE_STRING | CTLFLAG_RW, NULL, | SYSCTL_PROC(_debug_kdb, OID_AUTO, current, | ||||
0, kdb_sysctl_current, "A", "currently selected KDB backend"); | CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
NULL, 0, kdb_sysctl_current, "A", | |||||
"currently selected KDB backend"); | |||||
SYSCTL_PROC(_debug_kdb, OID_AUTO, enter, | SYSCTL_PROC(_debug_kdb, OID_AUTO, enter, | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE, NULL, 0, | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE | CTLFLAG_NEEDGIANT, | ||||
kdb_sysctl_enter, "I", "set to enter the debugger"); | NULL, 0, kdb_sysctl_enter, "I", | ||||
"set to enter the debugger"); | |||||
SYSCTL_PROC(_debug_kdb, OID_AUTO, panic, | SYSCTL_PROC(_debug_kdb, OID_AUTO, panic, | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE, NULL, 0, | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE | CTLFLAG_NEEDGIANT, | ||||
kdb_sysctl_panic, "I", "set to panic the kernel"); | NULL, 0, kdb_sysctl_panic, "I", | ||||
"set to panic the kernel"); | |||||
SYSCTL_PROC(_debug_kdb, OID_AUTO, trap, | SYSCTL_PROC(_debug_kdb, OID_AUTO, trap, | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE, NULL, 0, | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE | CTLFLAG_NEEDGIANT, | ||||
kdb_sysctl_trap, "I", "set to cause a page fault via data access"); | NULL, 0, kdb_sysctl_trap, "I", | ||||
"set to cause a page fault via data access"); | |||||
SYSCTL_PROC(_debug_kdb, OID_AUTO, trap_code, | SYSCTL_PROC(_debug_kdb, OID_AUTO, trap_code, | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE, NULL, 0, | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE | CTLFLAG_NEEDGIANT, | ||||
kdb_sysctl_trap_code, "I", "set to cause a page fault via code access"); | NULL, 0, kdb_sysctl_trap_code, "I", | ||||
"set to cause a page fault via code access"); | |||||
SYSCTL_PROC(_debug_kdb, OID_AUTO, stack_overflow, | SYSCTL_PROC(_debug_kdb, OID_AUTO, stack_overflow, | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE, NULL, 0, | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_SECURE | CTLFLAG_NEEDGIANT, | ||||
kdb_sysctl_stack_overflow, "I", "set to cause a stack overflow"); | NULL, 0, kdb_sysctl_stack_overflow, "I", | ||||
"set to cause a stack overflow"); | |||||
SYSCTL_INT(_debug_kdb, OID_AUTO, break_to_debugger, | SYSCTL_INT(_debug_kdb, OID_AUTO, break_to_debugger, | ||||
CTLFLAG_RWTUN | CTLFLAG_SECURE, | CTLFLAG_RWTUN | CTLFLAG_SECURE, | ||||
&kdb_break_to_debugger, 0, "Enable break to debugger"); | &kdb_break_to_debugger, 0, "Enable break to debugger"); | ||||
SYSCTL_INT(_debug_kdb, OID_AUTO, alt_break_to_debugger, | SYSCTL_INT(_debug_kdb, OID_AUTO, alt_break_to_debugger, | ||||
CTLFLAG_RWTUN | CTLFLAG_SECURE, | CTLFLAG_RWTUN | CTLFLAG_SECURE, | ||||
&kdb_alt_break_to_debugger, 0, "Enable alternative break to debugger"); | &kdb_alt_break_to_debugger, 0, "Enable alternative break to debugger"); | ||||
▲ Show 20 Lines • Show All 592 Lines • Show Last 20 Lines |