Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/lib/libdtrace Start matching some of the...
details: https://anonhg.NetBSD.org/src/rev/9a5f3a242baa
branches: trunk
changeset: 810990:9a5f3a242baa
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 05 17:49:40 2015 +0000
description:
Start matching some of the field names to NetBSD's
XXX: needs work
diffstat:
external/cddl/osnet/lib/libdtrace/psinfo.d | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diffs (33 lines):
diff -r 10b84130ab40 -r 9a5f3a242baa external/cddl/osnet/lib/libdtrace/psinfo.d
--- a/external/cddl/osnet/lib/libdtrace/psinfo.d Mon Oct 05 17:49:10 2015 +0000
+++ b/external/cddl/osnet/lib/libdtrace/psinfo.d Mon Oct 05 17:49:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psinfo.d,v 1.2 2010/02/21 01:46:35 darran Exp $ */
+/* $NetBSD: psinfo.d,v 1.3 2015/10/05 17:49:40 christos Exp $ */
/*
* CDDL HEADER START
@@ -48,15 +48,17 @@
#pragma D binding "1.0" translator
translator psinfo_t < struct proc *T > {
- pr_nlwp = T->p_numthreads;
+ pr_nlwp = T->p_nlwps;
pr_pid = T->p_pid;
pr_ppid = (T->p_pptr == 0) ? 0 : T->p_pptr->p_pid;
- pr_pgid = (T->p_leader == 0) ? 0 : T->p_leader->p_pid;
+ pr_pgid = (T->p_pgrp->pg_session->s_leader == 0) ? 0 : T->p_pgrp->pg_session->s_leader->p_pid;
pr_sid = (T->p_pgrp == 0) ? 0 : ((T->p_pgrp->pg_session == 0) ? 0 : T->p_pgrp->pg_session->s_sid);
- pr_uid = T->p_ucred->cr_ruid;
- pr_euid = T->p_ucred->cr_uid;
- pr_gid = T->p_ucred->cr_rgid;
- pr_egid = T->p_ucred->cr_groups[0];
+/* XXX: struct kauth_cred is not public
+ pr_uid = T->p_cred->cr_ruid;
+ pr_euid = T->p_cred->cr_uid;
+ pr_gid = T->p_cred->cr_rgid;
+ pr_egid = T->p_cred->cr_groups[0];
+ */
pr_addr = 0;
pr_psargs = stringof(T->p_args->ar_args);
pr_arglen = T->p_args->ar_length;
Home |
Main Index |
Thread Index |
Old Index