summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_proc.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-03-26 05:23:41 +0000
committerguenther <guenther@openbsd.org>2014-03-26 05:23:41 +0000
commit8f76f5add34ff13fa8a804c10695e708224e99b4 (patch)
tree89d3b1dd1cb5e145e1de975c5db86c74df5912e4 /sys/kern/kern_proc.c
parentDrop Apollo Domain keyboard support, now that hp300 has bitten the dust. (diff)
downloadwireguard-openbsd-8f76f5add34ff13fa8a804c10695e708224e99b4.tar.xz
wireguard-openbsd-8f76f5add34ff13fa8a804c10695e708224e99b4.zip
Move p_emul and p_sigcode from proc to process.
Tweak the handling of ktrace EMUL when changing ktracing: only generate one per process (not one per thread) and pass the correct proc pointer down to the VFS layer. Permit generating of NAMI and CSW records inside ktrace(2) itself. ok deraadt@ millert@
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r--sys/kern/kern_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index a22597aa23e..9512e05f925 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_proc.c,v 1.55 2014/01/20 21:19:28 guenther Exp $ */
+/* $OpenBSD: kern_proc.c,v 1.56 2014/03/26 05:23:42 guenther Exp $ */
/* $NetBSD: kern_proc.c,v 1.14 1996/02/09 18:59:41 christos Exp $ */
/*
@@ -485,7 +485,7 @@ db_show_all_procs(db_expr_t addr, int haddr, db_expr_t count, char *modif)
case 'w':
db_printf("%-16s %-8s %18p %s\n", p->p_comm,
- p->p_emul->e_name, p->p_wchan,
+ pr->ps_emul->e_name, p->p_wchan,
(p->p_wchan && p->p_wmesg) ?
p->p_wmesg : "");
break;