]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r227838, r227873, r228025, r228049, r228289, r228447, r230753:
authortrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 2 Feb 2012 18:17:49 +0000 (18:17 +0000)
committertrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 2 Feb 2012 18:17:49 +0000 (18:17 +0000)
commitda12002dac8f9f2c062ad06b692eaee8c4e4539b
tree57fddf06b59235d87746ef3e6d8bd342d87ce142
parentcfffe41f58dcf99f91f5c8f834a1b3bc39a82274
MFC r227838, r227873, r228025, r228049, r228289, r228447, r230753:

r227838, r227873:

Add new options, -e and -x, to display process environment variables
and ELF auxiliary vectors.

r228025, r228049:

Make proctstat -x output more readable.

This also fixes the issue, spotted by mdf, with values that were
printed as decimal and had hex prefixes.

Discussed with: kib, rwatson

r228289:

Don't output a warning if kern.proc.auxv sysctl has returned EPERM.
After r228288 this is rather a normal situation.

r228447:

Make 64-bit procstat output ELF auxiliary vectors for 32-bit processes.

Reviewed by: kib

r230753:

Always return 0 if the sysctl failed.

This fixes the bug: when procstat -xa was run and the sysctl for a
process returned ESRCH or EPERM, for this process procstat output the
result collected for the previous successful process.

git-svn-id: svn://svn.freebsd.org/base/stable/9@230917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/procstat/Makefile
usr.bin/procstat/procstat.1
usr.bin/procstat/procstat.c
usr.bin/procstat/procstat.h
usr.bin/procstat/procstat_args.c
usr.bin/procstat/procstat_auxv.c [new file with mode: 0644]