summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Biernacki <kaktus@FreeBSD.org>2020-03-02 15:30:52 +0000
committerPawel Biernacki <kaktus@FreeBSD.org>2020-03-02 15:30:52 +0000
commitb05ca4290cae1d8d2548d77385f7b15223428ac7 (patch)
treec98145a9c6fbe7fbab4d42e32686808f64dc72e4
parent80b9f3059035388962301740405881a753b73448 (diff)
Notes
-rw-r--r--sys/kern/kern_exec.c12
-rw-r--r--sys/kern/kern_shutdown.c3
-rw-r--r--sys/kern/kern_synch.c3
-rw-r--r--sys/kern/kern_umtx.c2
-rw-r--r--sys/kern/sched_4bsd.c3
-rw-r--r--sys/kern/sched_ule.c3
-rw-r--r--sys/kern/subr_kobj.c3
7 files changed, 19 insertions, 10 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 0ade46649bd0..83e6c7cf219e 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -123,18 +123,22 @@ static int do_execve(struct thread *td, struct image_args *args,
/* XXX This should be vm_size_t. */
SYSCTL_PROC(_kern, KERN_PS_STRINGS, ps_strings, CTLTYPE_ULONG|CTLFLAG_RD|
- CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_ps_strings, "LU", "");
+ CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_ps_strings, "LU",
+ "Location of process' ps_strings structure");
/* XXX This should be vm_size_t. */
SYSCTL_PROC(_kern, KERN_USRSTACK, usrstack, CTLTYPE_ULONG|CTLFLAG_RD|
- CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_usrstack, "LU", "");
+ CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_usrstack, "LU",
+ "Top of process stack");
SYSCTL_PROC(_kern, OID_AUTO, stackprot, CTLTYPE_INT|CTLFLAG_RD|CTLFLAG_MPSAFE,
- NULL, 0, sysctl_kern_stackprot, "I", "");
+ NULL, 0, sysctl_kern_stackprot, "I",
+ "Stack memory permissions");
u_long ps_arg_cache_limit = PAGE_SIZE / 16;
SYSCTL_ULONG(_kern, OID_AUTO, ps_arg_cache_limit, CTLFLAG_RW,
- &ps_arg_cache_limit, 0, "");
+ &ps_arg_cache_limit, 0,
+ "Process' command line characters cache limit");
static int disallow_high_osrel;
SYSCTL_INT(_kern, OID_AUTO, disallow_high_osrel, CTLFLAG_RW,
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index b4e667670924..188f8eceac94 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -167,7 +167,8 @@ static int show_busybufs;
static int show_busybufs = 1;
#endif
SYSCTL_INT(_kern_shutdown, OID_AUTO, show_busybufs, CTLFLAG_RW,
- &show_busybufs, 0, "");
+ &show_busybufs, 0,
+ "Show busy buffers during shutdown");
int suspend_blocked = 0;
SYSCTL_INT(_kern, OID_AUTO, suspend_blocked, CTLFLAG_RW,
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 9c210b39d2d9..04357f2985dc 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -94,7 +94,8 @@ static fixpt_t cexp[3] = {
};
/* kernel uses `FSCALE', userland (SHOULD) use kern.fscale */
-SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, SYSCTL_NULL_INT_PTR, FSCALE, "");
+SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, SYSCTL_NULL_INT_PTR, FSCALE,
+ "Fixed-point scale factor used for calculating load average values");
static void loadav(void *arg);
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 6545bd603fe4..bbd47e61f177 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -240,7 +240,7 @@ SYSCTL_INT(_kern_ipc, OID_AUTO, umtx_vnode_persistent, CTLFLAG_RWTUN,
static int umtx_max_rb = 1000;
SYSCTL_INT(_kern_ipc, OID_AUTO, umtx_max_robust, CTLFLAG_RWTUN,
&umtx_max_rb, 0,
- "");
+ "Maximum number of robust mutexes allowed for each thread");
static uma_zone_t umtx_pi_zone;
static struct umtxq_chain umtxq_chains[2][UMTX_CHAINS];
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 22bef163006d..07bd93a16398 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -437,7 +437,8 @@ maybe_preempt(struct thread *td)
/* decay 95% of `ts_pctcpu' in 60 seconds; see CCPU_SHIFT before changing */
static fixpt_t ccpu = 0.95122942450071400909 * FSCALE; /* exp(-1/20) */
-SYSCTL_UINT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, "");
+SYSCTL_UINT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0,
+ "Decay factor used for updating %CPU");
/*
* If `ccpu' is not equal to `exp(-1/20)' and you still want to use the
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index becfb53e82b1..78c55a08c90e 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -3128,4 +3128,5 @@ SYSCTL_PROC(_kern_sched, OID_AUTO, topology_spec, CTLTYPE_STRING |
/* ps compat. All cpu percentages from ULE are weighted. */
static int ccpu = 0;
-SYSCTL_INT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, "");
+SYSCTL_INT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0,
+ "Decay factor used for updating %CPU in 4BSD scheduler");
diff --git a/sys/kern/subr_kobj.c b/sys/kern/subr_kobj.c
index 8cf8d549dfb1..cc54ebe1f254 100644
--- a/sys/kern/subr_kobj.c
+++ b/sys/kern/subr_kobj.c
@@ -67,7 +67,8 @@ static int kobj_next_id = 1;
#define KOBJ_ASSERT(what) mtx_assert(&kobj_mtx, what);
SYSCTL_INT(_kern, OID_AUTO, kobj_methodcount, CTLFLAG_RD,
- &kobj_next_id, 0, "");
+ &kobj_next_id, 0,
+ "Number of kernel object methods registered");
static void
kobj_init_mutex(void *arg)