diff options
| author | Pawel Biernacki <kaktus@FreeBSD.org> | 2020-02-26 14:26:36 +0000 |
|---|---|---|
| committer | Pawel Biernacki <kaktus@FreeBSD.org> | 2020-02-26 14:26:36 +0000 |
| commit | 7029da5c36f2d3cf6bb6c81bf551229f416399e8 (patch) | |
| tree | 53cae9da1371117a3ac21d0d0f3f030a692807ae /sys/gdb | |
| parent | d7313dc6f5fcab29946951936597772dfff6a4be (diff) | |
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many)
r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are
still not MPSAFE (or already are but aren’t properly marked).
Use it in preparation for a general review of all nodes.
This is non-functional change that adds annotations to SYSCTL_NODE and
SYSCTL_PROC nodes using one of the soon-to-be-required flags.
Mark all obvious cases as MPSAFE. All entries that haven't been marked
as MPSAFE before are by default marked as NEEDGIANT
Approved by: kib (mentor, blanket)
Commented by: kib, gallatin, melifaro
Differential Revision: https://reviews.freebsd.org/D23718
Notes
svn path=/head/; revision=358333
Diffstat (limited to 'sys/gdb')
| -rw-r--r-- | sys/gdb/gdb_main.c | 3 | ||||
| -rw-r--r-- | sys/gdb/netgdb.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/gdb/gdb_main.c b/sys/gdb/gdb_main.c index 08d108c85253..0944de14eff2 100644 --- a/sys/gdb/gdb_main.c +++ b/sys/gdb/gdb_main.c @@ -44,7 +44,8 @@ __FBSDID("$FreeBSD$"); #include <gdb/gdb.h> #include <gdb/gdb_int.h> -SYSCTL_NODE(_debug, OID_AUTO, gdb, CTLFLAG_RW, 0, "GDB settings"); +SYSCTL_NODE(_debug, OID_AUTO, gdb, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, + "GDB settings"); static dbbe_init_f gdb_init; static dbbe_trap_f gdb_trap; diff --git a/sys/gdb/netgdb.c b/sys/gdb/netgdb.c index 82ff8a078495..599841b33eae 100644 --- a/sys/gdb/netgdb.c +++ b/sys/gdb/netgdb.c @@ -82,7 +82,7 @@ __FBSDID("$FreeBSD$"); #include <gdb/netgdb.h> FEATURE(netgdb, "NetGDB support"); -SYSCTL_NODE(_debug_gdb, OID_AUTO, netgdb, CTLFLAG_RD, NULL, +SYSCTL_NODE(_debug_gdb, OID_AUTO, netgdb, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, "NetGDB parameters"); static unsigned netgdb_debug; |
