Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Change a KASSERT to KASSERTMSG and print the xcall ...



details:   https://anonhg.NetBSD.org/src/rev/19f348d65949
branches:  trunk
changeset: 824856:19f348d65949
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jun 21 07:39:04 2017 +0000

description:
Change a KASSERT to KASSERTMSG and print the xcall function to be
invoked as a debugging help.

diffstat:

 sys/kern/subr_xcall.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 4ee802eab249 -r 19f348d65949 sys/kern/subr_xcall.c
--- a/sys/kern/subr_xcall.c     Wed Jun 21 03:10:42 2017 +0000
+++ b/sys/kern/subr_xcall.c     Wed Jun 21 07:39:04 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_xcall.c,v 1.19 2016/11/21 00:54:21 ozaki-r Exp $  */
+/*     $NetBSD: subr_xcall.c,v 1.20 2017/06/21 07:39:04 martin Exp $   */
 
 /*-
  * Copyright (c) 2007-2010 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.19 2016/11/21 00:54:21 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.20 2017/06/21 07:39:04 martin Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -345,7 +345,8 @@
        void *arg1, *arg2;
        xcfunc_t func;
 
-       KASSERT(!cpu_intr_p());
+       KASSERTMSG(!cpu_intr_p(), "high priority xcall for function %p",
+           xc->xc_func);
        /*
         * Lock-less fetch of function and its arguments.
         * Safe since it cannot change at this point.



Home | Main Index | Thread Index | Old Index