Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2020 04:53:22 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r356652 - head/sys/cddl/dev/dtrace
Message-ID:  <202001120453.00C4rMti008291@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Sun Jan 12 04:53:22 2020
New Revision: 356652
URL: https://svnweb.freebsd.org/changeset/base/356652

Log:
  dtrace: add missing CLTFLAG_MPSAFE annotations

Modified:
  head/sys/cddl/dev/dtrace/dtrace_sysctl.c
  head/sys/cddl/dev/dtrace/dtrace_test.c

Modified: head/sys/cddl/dev/dtrace/dtrace_sysctl.c
==============================================================================
--- head/sys/cddl/dev/dtrace/dtrace_sysctl.c	Sun Jan 12 04:53:01 2020	(r356651)
+++ head/sys/cddl/dev/dtrace/dtrace_sysctl.c	Sun Jan 12 04:53:22 2020	(r356652)
@@ -75,8 +75,9 @@ sysctl_dtrace_providers(SYSCTL_HANDLER_ARGS)
 
 SYSCTL_NODE(_debug, OID_AUTO, dtrace, CTLFLAG_RD, 0, "DTrace debug parameters");
 
-SYSCTL_PROC(_debug_dtrace, OID_AUTO, providers, CTLTYPE_STRING | CTLFLAG_RD,
-    0, 0, sysctl_dtrace_providers, "A", "available DTrace providers");
+SYSCTL_PROC(_debug_dtrace, OID_AUTO, providers,
+    CTLTYPE_STRING | CTLFLAG_MPSAFE | CTLFLAG_RD, 0, 0, sysctl_dtrace_providers,
+    "A", "available DTrace providers");
 
 SYSCTL_NODE(_kern, OID_AUTO, dtrace, CTLFLAG_RD, 0, "DTrace parameters");
 

Modified: head/sys/cddl/dev/dtrace/dtrace_test.c
==============================================================================
--- head/sys/cddl/dev/dtrace/dtrace_test.c	Sun Jan 12 04:53:01 2020	(r356651)
+++ head/sys/cddl/dev/dtrace/dtrace_test.c	Sun Jan 12 04:53:22 2020	(r356652)
@@ -77,8 +77,9 @@ dtrace_test_sdttest(SYSCTL_HANDLER_ARGS)
 
 static SYSCTL_NODE(_debug, OID_AUTO, dtracetest, CTLFLAG_RD, 0, "");
 
-SYSCTL_PROC(_debug_dtracetest, OID_AUTO, sdttest, CTLTYPE_INT | CTLFLAG_RW,
-    NULL, 0, dtrace_test_sdttest, "I", "Trigger the SDT test probe");
+SYSCTL_PROC(_debug_dtracetest, OID_AUTO, sdttest,
+    CTLTYPE_INT | CTLFLAG_MPSAFE | CTLFLAG_RW, NULL, 0, dtrace_test_sdttest,
+    "I", "Trigger the SDT test probe");
 
 static int
 dtrace_test_modevent(module_t mod, int type, void *data)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001120453.00C4rMti008291>