diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2007-12-02 10:10:27 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2007-12-02 10:10:27 +0000 |
commit | cc43c38c8757a7d9b18141df42a04314f8ed6227 (patch) | |
tree | edfa0be7c63bacc470c567b77ae4806509c9af71 /sys/sys/sysctl.h | |
parent | 4d50f65ceb1d6034a8496662fb2c8cc551eefad9 (diff) | |
download | src-cc43c38c8757a7d9b18141df42a04314f8ed6227.tar.gz src-cc43c38c8757a7d9b18141df42a04314f8ed6227.zip |
Add two new sysctls in support of the forthcoming procstat(1) to support
its -f and -v arguments:
kern.proc.filedesc - dump file descriptor information for a process, if
debugging is permitted, including socket addresses, open flags, file
offsets, file paths, etc.
kern.proc.vmmap - dump virtual memory mapping information for a process,
if debugging is permitted, including layout and information on
underlying objects, such as the type of object and path.
These provide a superset of the information historically available
through the now-deprecated procfs(4), and are intended to be exported
in an ABI-robust form.
Notes
Notes:
svn path=/head/; revision=174167
Diffstat (limited to 'sys/sys/sysctl.h')
-rw-r--r-- | sys/sys/sysctl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index ebf7ecd483bf..20622a560b5d 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -456,6 +456,8 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry); #define KERN_PROC_RGID 10 /* by real group id */ #define KERN_PROC_GID 11 /* by effective group id */ #define KERN_PROC_PATHNAME 12 /* path to executable */ +#define KERN_PROC_VMMAP 13 /* VM map entries for process */ +#define KERN_PROC_FILEDESC 14 /* File descriptors for process */ #define KERN_PROC_INC_THREAD 0x10 /* * modifier for pid, pgrp, tty, * uid, ruid, gid, rgid and proc @@ -619,6 +621,7 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry); extern struct sysctl_oid_list sysctl__children; SYSCTL_DECL(_kern); SYSCTL_DECL(_kern_ipc); +SYSCTL_DECL(_kern_proc); SYSCTL_DECL(_sysctl); SYSCTL_DECL(_vm); SYSCTL_DECL(_vm_stats); |