freebsd-skq/usr.bin/procstat
trociny 8c2da7009a Make use of newly added libprocstat(3) ability to extract procstat
info from a process core file.

So now one can run procstat(1) on a process core e.g. to get a list of
files opened by a process when it crashed:

root@lisa:/ # procstat -f /root/vi.core
  PID COMM               FD T V FLAGS     REF  OFFSET PRO NAME
  658 vi               text v r r--------   -       - -   /usr/bin/vi
  658 vi               ctty v c rw-------   -       - -   /dev/pts/0
  658 vi                cwd v d r--------   -       - -   /root
  658 vi               root v d r--------   -       - -   /
  658 vi                  0 v c rw-------  11    3208 -   /dev/pts/0
  658 vi                  1 v c rw-------  11    3208 -   /dev/pts/0
  658 vi                  2 v c rw-------  11    3208 -   /dev/pts/0
  658 vi                  3 v r r----n-l-   1       0 -   /tmp/vi.0AYKz3Lps7
  658 vi                  4 v r rw-------   1       0 -   /var/tmp/vi.recover/vi.GaGYsz
  658 vi                  5 v r rw-------   1       0 -   -

PR:		kern/173723
Suggested by:	jhb
MFC after:	1 month
2013-04-20 08:22:09 +00:00
..
Makefile Bring DPADD in sync with LDADD. 2012-05-19 05:07:03 +00:00
procstat_args.c Use libprocstat(3) to retrieve process command line arguments and 2013-04-20 08:08:29 +00:00
procstat_auxv.c Use libprocstat(3) to retrieve ELF auxiliary vector. 2013-04-20 08:15:43 +00:00
procstat_basic.c
procstat_bin.c Use libprocstat(3) when retrieving binary information for a process. 2013-04-20 08:05:04 +00:00
procstat_cred.c Use procstat_getumask(3) for retrieving umaks information instead of 2013-04-20 07:58:20 +00:00
procstat_files.c - Implement two new system calls: 2013-03-02 21:11:30 +00:00
procstat_kstack.c Use procstat_getkstack(3) for retrieving process kernel stacks 2013-04-20 08:19:06 +00:00
procstat_rlimit.c Use procstat_getrlimit(3) for retrieving rlimit information instead of 2013-04-20 08:01:00 +00:00
procstat_sigs.c Use procstat_getprocs(3) for retrieving thread information instead of 2013-04-20 07:50:59 +00:00
procstat_threads.c Use procstat_getprocs(3) for retrieving thread information instead of 2013-04-20 07:50:59 +00:00
procstat_vm.c Use more generic procstat_getvmmap(3) for retrieving VM layout of a process. 2013-04-20 07:52:23 +00:00
procstat.1 Make use of newly added libprocstat(3) ability to extract procstat 2013-04-20 08:22:09 +00:00
procstat.c Make use of newly added libprocstat(3) ability to extract procstat 2013-04-20 08:22:09 +00:00
procstat.h Use procstat_getkstack(3) for retrieving process kernel stacks 2013-04-20 08:19:06 +00:00