diff options
author | Rui Paulo <rpaulo@FreeBSD.org> | 2012-09-01 08:14:21 +0000 |
---|---|---|
committer | Rui Paulo <rpaulo@FreeBSD.org> | 2012-09-01 08:14:21 +0000 |
commit | e04dfc407c6cba522902a5e180d70d297a8378d5 (patch) | |
tree | f352cdcf2a738598ee1832c6a6f64d3efc7880f0 /cddl/lib | |
parent | 4685b7aabd865f4fc4cbf9c9d234dd80838de935 (diff) |
Finish porting execsnoop to FreeBSD. This includes replacing the zonename
with a jail ID and removing the project ID from the list of options.
Notes
Notes:
svn path=/head/; revision=239972
Diffstat (limited to 'cddl/lib')
-rw-r--r-- | cddl/lib/libdtrace/psinfo.d | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cddl/lib/libdtrace/psinfo.d b/cddl/lib/libdtrace/psinfo.d index 437481dcff96..068e72e4756c 100644 --- a/cddl/lib/libdtrace/psinfo.d +++ b/cddl/lib/libdtrace/psinfo.d @@ -42,6 +42,7 @@ typedef struct psinfo { pr_addr; /* address of process */ string pr_psargs; /* process arguments */ u_int pr_arglen; /* process argument length */ + u_int pr_jailid; /* jail id */ } psinfo_t; #pragma D binding "1.0" translator @@ -58,6 +59,7 @@ translator psinfo_t < struct proc *T > { pr_addr = 0; pr_psargs = stringof(T->p_args->ar_args); pr_arglen = T->p_args->ar_length; + pr_jailid = T->p_ucred->cr_prison->pr_id; }; typedef struct lwpsinfo { |