Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Sync trace-pc and trace-cmp.



details:   https://anonhg.NetBSD.org/src/rev/152e99e8b7bc
branches:  trunk
changeset: 973532:152e99e8b7bc
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Jul 03 16:11:11 2020 +0000

description:
Sync trace-pc and trace-cmp.

diffstat:

 sys/kern/subr_kcov.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r bd2b71b6c2d5 -r 152e99e8b7bc sys/kern/subr_kcov.c
--- a/sys/kern/subr_kcov.c      Fri Jul 03 16:09:54 2020 +0000
+++ b/sys/kern/subr_kcov.c      Fri Jul 03 16:11:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_kcov.c,v 1.15 2020/05/16 17:42:06 hannken Exp $   */
+/*     $NetBSD: subr_kcov.c,v 1.16 2020/07/03 16:11:11 maxv Exp $      */
 
 /*
  * Copyright (c) 2019-2020 The NetBSD Foundation, Inc.
@@ -649,10 +649,16 @@
                return;
        }
 
+       if (__predict_false(kd->silenced)) {
+               /* Silenced. */
+               return;
+       }
+
        if (kd->mode != KCOV_MODE_TRACE_CMP) {
                /* CMP tracing mode not enabled */
                return;
        }
+       KASSERT(kd->remote == NULL);
 
        idx = kd->buf[0];
        if ((idx * 4 + 4) <= kd->bufnent) {



Home | Main Index | Thread Index | Old Index