Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern don't create ktrace records if we were not asked.
details: https://anonhg.NetBSD.org/src/rev/cf037cd36127
branches: trunk
changeset: 344591:cf037cd36127
user: christos <christos%NetBSD.org@localhost>
date: Wed Apr 06 03:11:31 2016 +0000
description:
don't create ktrace records if we were not asked.
diffstat:
sys/kern/kern_sig.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r bc8f1d6c1a20 -r cf037cd36127 sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c Wed Apr 06 00:52:45 2016 +0000
+++ b/sys/kern/kern_sig.c Wed Apr 06 03:11:31 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig.c,v 1.324 2016/04/06 00:48:30 christos Exp $ */
+/* $NetBSD: kern_sig.c,v 1.325 2016/04/06 03:11:31 christos Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.324 2016/04/06 00:48:30 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.325 2016/04/06 03:11:31 christos Exp $");
#include "opt_ptrace.h"
#include "opt_dtrace.h"
@@ -896,7 +896,10 @@
l->l_ru.ru_nsignals++;
kpsendsig(l, ksi, mask);
mutex_exit(p->p_lock);
- ktrpsig(signo, SIGACTION_PS(ps, signo).sa_handler, mask, ksi);
+ if (ktrpoint(KTR_PSIG)) {
+ ktrpsig(signo, SIGACTION_PS(ps, signo).sa_handler,
+ mask, ksi);
+ }
} else {
/* XXX for core dump/debugger */
p->p_sigctx.ps_lwp = l->l_lid;
Home |
Main Index |
Thread Index |
Old Index