summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_interface.h
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-09-29 09:36:04 +0000
committermpi <mpi@openbsd.org>2017-09-29 09:36:04 +0000
commita00d4ff8def67b5c79078414a351436b4c4921da (patch)
treed8a5563d9101a955ae28906f37f2cf8c0e66bac3 /sys/ddb/db_interface.h
parentDo not segfault when the string table is invalid or not present. (diff)
downloadwireguard-openbsd-a00d4ff8def67b5c79078414a351436b4c4921da.tar.xz
wireguard-openbsd-a00d4ff8def67b5c79078414a351436b4c4921da.zip
New ddb(4) command: kill.
Send an uncatchable SIGABRT to the process specified by the pid argument. Useful in case of CPU exhaustion to kill the DoSing process and generate a core for later inspection. ok phessler@, visa@, kettenis@, miod@
Diffstat (limited to 'sys/ddb/db_interface.h')
-rw-r--r--sys/ddb/db_interface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ddb/db_interface.h b/sys/ddb/db_interface.h
index 9ae9d20024c..11d0409dd77 100644
--- a/sys/ddb/db_interface.h
+++ b/sys/ddb/db_interface.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.h,v 1.19 2017/01/09 17:58:44 mpi Exp $ */
+/* $OpenBSD: db_interface.h,v 1.20 2017/09/29 09:36:04 mpi Exp $ */
/* $NetBSD: db_interface.h,v 1.1 1996/02/05 01:57:03 christos Exp $ */
/*
@@ -40,6 +40,7 @@ void db_stack_trace_print(db_expr_t, int, db_expr_t, char *,
db_addr_t db_disasm(db_addr_t, boolean_t);
/* kern/kern_proc.c */
+void db_kill_cmd(db_expr_t, int, db_expr_t, char *);
void db_show_all_procs(db_expr_t, int, db_expr_t, char *);
/* kern/kern_timeout.c */