diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-07 15:38:46 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-07 15:38:46 +0000 |
commit | e0cf59e2af5be922cb257040e6f910c6bb89c58f (patch) | |
tree | 287d6914b9e0348003ed7183f4f70e9c12866dd5 /sys/kern/kern_ktrace.c | |
parent | 4bd589c396017c729b630bcb07fa74d8a85758eb (diff) |
Delete ktracing of context switches: it's unused, and not particularly useful,
and doing VOP_WRITE() from inside tsleep/msleep makes the locking too
complicated, making it harder to move forward on MP changes.
ok deraadt@ kettenis@
Diffstat (limited to 'sys/kern/kern_ktrace.c')
-rw-r--r-- | sys/kern/kern_ktrace.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index b4e930149b2..29403528cde 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_ktrace.c,v 1.76 2015/08/22 20:18:49 deraadt Exp $ */ +/* $OpenBSD: kern_ktrace.c,v 1.77 2015/09/07 15:38:45 guenther Exp $ */ /* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */ /* @@ -313,21 +313,6 @@ ktrpsig(struct proc *p, int sig, sig_t action, int mask, int code, } void -ktrcsw(struct proc *p, int out, int user) -{ - struct ktr_header kth; - struct ktr_csw kc; - - atomic_setbits_int(&p->p_flag, P_INKTR); - ktrinitheader(&kth, p, KTR_CSW); - kc.out = out; - kc.user = user; - - ktrwrite(p, &kth, &kc, sizeof(kc)); - atomic_clearbits_int(&p->p_flag, P_INKTR); -} - -void ktrstruct(struct proc *p, const char *name, const void *data, size_t datalen) { struct ktr_header kth; |