Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dev/fbt dtrace_fbt: Allow tracing names ...



details:   https://anonhg.NetBSD.org/src/rev/213905906b6b
branches:  trunk
changeset: 369817:213905906b6b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Sep 02 11:03:50 2022 +0000

description:
dtrace_fbt: Allow tracing names that start with `__'.

This was never relevant on FreeBSD and I don't think it is relevant on
NetBSD either.  The FreeBSD change to lift this restriction had the
following comment:

    r306570 | markj | 2016-10-02 00:35:00 +0000 (Sun, 02 Oct 2016) | 7 lines

    Allow tracing of functions prefixed by "__".

    This restriction was inherited from upstream but is not relevant on FreeBSD.
    Furthermore, it hindered the tracing of locking primitive subroutines.

diffstat:

 external/cddl/osnet/dev/fbt/fbt.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r c77e1d14d26a -r 213905906b6b external/cddl/osnet/dev/fbt/fbt.c
--- a/external/cddl/osnet/dev/fbt/fbt.c Fri Sep 02 06:51:24 2022 +0000
+++ b/external/cddl/osnet/dev/fbt/fbt.c Fri Sep 02 11:03:50 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fbt.c,v 1.28 2022/03/28 12:33:20 riastradh Exp $       */
+/*     $NetBSD: fbt.c,v 1.29 2022/09/02 11:03:50 riastradh Exp $       */
 
 /*
  * CDDL HEADER START
@@ -168,9 +168,6 @@
 #endif
 
 #ifdef __NetBSD__
-       if (name[0] == '_' && name[1] == '_')
-               return (1);
-
        if (strcmp(name, "cpu_index") == 0 ||
            strncmp(name, "db_", 3) == 0 ||
            strncmp(name, "ddb_", 4) == 0 ||



Home | Main Index | Thread Index | Old Index