summaryrefslogtreecommitdiffstats
path: root/sys/sys/user.h
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2014-08-28 08:41:11 +0000
committermjg <mjg@FreeBSD.org>2014-08-28 08:41:11 +0000
commitec92f2e61c40e5b3a519a14ea47a142d9047a75a (patch)
tree8b47cb5fe2bdf03c237daa6e7bf34f23a0e3a915 /sys/sys/user.h
parenta3bb3db4bfc2cbf2451d297879c706700876f778 (diff)
downloadFreeBSD-src-ec92f2e61c40e5b3a519a14ea47a142d9047a75a.zip
FreeBSD-src-ec92f2e61c40e5b3a519a14ea47a142d9047a75a.tar.gz
Return real parent pid in kinfo (used by e.g. ps)
Add a separate field which exports tracer pid and add a new keyword ("tracer") for ps to display it. This is a follow up to r270444. Reviewed by: kib MFC after: 1 week Relnotes: yes
Diffstat (limited to 'sys/sys/user.h')
-rw-r--r--sys/sys/user.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/user.h b/sys/sys/user.h
index f7b18df..6775ff7 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -84,7 +84,7 @@
* it in two places: function fill_kinfo_proc in sys/kern/kern_proc.c and
* function kvm_proclist in lib/libkvm/kvm_proc.c .
*/
-#define KI_NSPARE_INT 7
+#define KI_NSPARE_INT 6
#define KI_NSPARE_LONG 12
#define KI_NSPARE_PTR 6
@@ -187,6 +187,7 @@ struct kinfo_proc {
*/
char ki_sparestrings[50]; /* spare string space */
int ki_spareints[KI_NSPARE_INT]; /* spare room for growth */
+ int ki_tracer; /* Pid of tracing process */
int ki_flag2; /* P2_* flags */
int ki_fibnum; /* Default FIB number */
u_int ki_cr_flags; /* Credential flags */
OpenPOWER on IntegriCloud