Print this page
OS-3820 lxbrand ptrace(2): the next generation
OS-3685 lxbrand PTRACE_O_TRACEFORK race condition
OS-3834 lxbrand 64-bit strace(1) reports 64-bit process as using x32 ABI
OS-3794 lxbrand panic on init signal death
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Bryan Cantrill <bryan@joyent.com>
OS-3463 expose process argv through procfs
OS-3207 in lx zone, 'ps auxww' does not show full cmdline for processes
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
OS-3383 lx brand: node.js test test-setproctitle.js fails
OS-15 add procfs equivalent to prctl(PR_SET_NAME)
@@ -511,11 +511,19 @@
indicates that the lwp stopped due to internal
synchronization of lwps within the process. pr_what is
unused in this case.
+ PR_BRAND
+ indicates that the lwp stopped for a brand-specific
+ reason. Interpretation of the value of pr_what
+ depends on which zone brand is in use. It is not
+ generally expected that an lwp stopped in this state
+ will be restarted by native proc(4) consumers.
+
+
pr_cursig names the current signal, that is, the next signal to be
delivered to the lwp, if any. pr_info, when the lwp is in a
PR_SIGNALLED or PR_FAULTED stop, contains additional information
pertinent to the particular signal or fault (see <sys/siginfo.h>).
@@ -743,10 +751,20 @@
pr_pctcpu and pr_pctmem are 16-bit binary fractions in the range 0.0 to
1.0 with the binary point to the right of the high-order bit (1.0 ==
0x8000). pr_pctcpu is the summation over all lwps in the process.
+ The pr_fname and pr_psargs are writable by the owner of the process. To
+ write to them, the psinfo file should be open for writing and the
+ desired value for the field should be written at the file offset that
+ corresponds to the member of structure. No other entry may be written
+ to; if a write is attempted to an offset that does not represent one of
+ these two memers, or if the size of the write is not exactly the size
+ of the member being written, no bytes will be written and zero will be
+ returned.
+
+
pr_lwp contains the ps(1) information for the representative lwp. If
the process is a zombie, pr_nlwp, pr_nzomb, and pr_lwp.pr_lwpid are
zero and the other fields of pr_lwp are undefined:
typedef struct lwpsinfo {
@@ -851,10 +869,17 @@
Contains the initial values of the process's aux vector in an array of
auxv_t structures (see <sys/auxv.h>). The values are those that were
passed by the operating system as startup information to the dynamic
linker.
+ argv
+ Contains the concatenation of each of the argument strings, including
+ their NUL terminators, in the argument vector (argv) for the process.
+ If the process has modified either its argument vector, or the contents
+ of any of the strings referenced by that vector, those changes will be
+ visible here.
+
ldt
This file exists only on x86-based machines. It is non-empty only if
the process has established a local descriptor table (LDT). If non-
empty, the file contains the array of currently active LDT entries in
an array of elements of type struct ssd, defined in <sys/sysi86.h>, one
@@ -2055,10 +2080,15 @@
/proc/pid/auxv
process aux vector
+ /proc/pid/argv
+
+ process argument vector
+
+
/proc/pid/ldt
process LDT (x86 only)
@@ -2318,6 +2348,6 @@
<sys/regset.h> are similar to but not the same as the types prgregset_t
and prfpregset_t defined in <procfs.h>.
- March 31, 2013 PROC(4)
+ May 19, 2014 PROC(4)