summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorcem <cem@FreeBSD.org>2015-09-07 16:44:28 +0000
committercem <cem@FreeBSD.org>2015-09-07 16:44:28 +0000
commita8fae65d69bf46d8a4aa6351092235ee691df503 (patch)
treec2ab6897f2830e465fa6dc9af7209703824835c1 /sys/kern/kern_exec.c
parent12bee90fcf88543dd84fda990644f8844398ad32 (diff)
downloadFreeBSD-src-a8fae65d69bf46d8a4aa6351092235ee691df503.zip
FreeBSD-src-a8fae65d69bf46d8a4aa6351092235ee691df503.tar.gz
Follow-up to r287442: Move sysctl to compiled-once file
Avoid duplicate sysctl nodes. Found by: tijl Approved by: markj (mentor) Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3586
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 56207a0..a3fd830b 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -100,6 +100,11 @@ SDT_PROBE_DEFINE1(proc, kernel, , exec__success, "char *");
MALLOC_DEFINE(M_PARGS, "proc-args", "Process arguments");
+int coredump_pack_fileinfo = 1;
+SYSCTL_INT(_kern, OID_AUTO, coredump_pack_fileinfo, CTLFLAG_RWTUN,
+ &coredump_pack_fileinfo, 0,
+ "Enable file path packing in 'procstat -f' coredump notes");
+
static int sysctl_kern_ps_strings(SYSCTL_HANDLER_ARGS);
static int sysctl_kern_usrstack(SYSCTL_HANDLER_ARGS);
static int sysctl_kern_stackprot(SYSCTL_HANDLER_ARGS);
OpenPOWER on IntegriCloud