Date: Thu, 12 May 2011 10:11:39 +0000 (UTC) From: Stanislav Sedov <stas@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib Makefile src/lib/libprocstat Makefile cd9660.c common_kvm.c common_kvm.h libprocstat.c libprocstat.h libprocstat_internal.h msdosfs.c ntfs.c nwfs.c smbfs.c udf.c zfs.c src/lib/libprocstat/zfs Makefile src/lib/libutil Makefile ... Message-ID: <201105121012.p4CACXOJ010407@repoman.freebsd.org>
index | next in thread | raw e-mail
stas 2011-05-12 10:11:39 UTC
FreeBSD src repository
Modified files:
lib Makefile
lib/libutil Makefile libutil.h
sys/kern kern_descrip.c kern_proc.c
sys/sys user.h
usr.bin/fstat Makefile fstat.c
usr.bin/procstat Makefile procstat.c procstat.h
procstat_args.c procstat_basic.c
procstat_bin.c procstat_cred.c
procstat_files.c procstat_kstack.c
procstat_sigs.c procstat_threads.c
procstat_vm.c
Added files:
lib/libprocstat Makefile cd9660.c common_kvm.c
common_kvm.h libprocstat.c libprocstat.h
libprocstat_internal.h msdosfs.c ntfs.c
nwfs.c smbfs.c udf.c zfs.c
lib/libprocstat/zfs Makefile
lib/libutil kinfo_getallproc.3 kinfo_getallproc.c
kinfo_getproc.3 kinfo_getproc.c
usr.bin/fstat functions.h fuser.1 fuser.c main.c
Removed files:
usr.bin/fstat cd9660.c fstat.h msdosfs.c zfs.c
usr.bin/fstat/zfs Makefile
Log:
SVN rev 221807 on 2011-05-12 10:11:39Z by stas
- Commit work from libprocstat project. These patches add support for runtime
file and processes information retrieval from the running kernel via sysctl
in the form of new library, libprocstat. The library also supports KVM backend
for analyzing memory crash dumps. Both procstat(1) and fstat(1) utilities have
been modified to take advantage of the library (as the bonus point the fstat(1)
utility no longer need superuser privileges to operate), and the procstat(1)
utility is now able to display information from memory dumps as well.
The newly introduced fuser(1) utility also uses this library and able to operate
via sysctl and kvm backends.
The library is by no means complete (e.g. KVM backend is missing vnode name
resolution routines, and there're no manpages for the library itself) so I
plan to improve it further. I'm commiting it so it will get wider exposure
and review.
We won't be able to MFC this work as it relies on changes in HEAD, which
was introduced some time ago, that break kernel ABI. OTOH we may be able
to merge the library with KVM backend if we really need it there.
Discussed with: rwatson
Revision Changes Path
1.259 +1 -0 src/lib/Makefile
1.1 +36 -0 src/lib/libprocstat/Makefile (new)
1.1 +90 -0 src/lib/libprocstat/cd9660.c (new)
1.1 +207 -0 src/lib/libprocstat/common_kvm.c (new)
1.1 +53 -0 src/lib/libprocstat/common_kvm.h (new)
1.1 +1306 -0 src/lib/libprocstat/libprocstat.c (new)
1.1 +160 -0 src/lib/libprocstat/libprocstat.h (new)
1.1 +39 -0 src/lib/libprocstat/libprocstat_internal.h (new)
1.1 +153 -0 src/lib/libprocstat/msdosfs.c (new)
1.1 +71 -0 src/lib/libprocstat/ntfs.c (new)
1.1 +76 -0 src/lib/libprocstat/nwfs.c (new)
1.1 +77 -0 src/lib/libprocstat/smbfs.c (new)
1.1 +102 -0 src/lib/libprocstat/udf.c (new)
1.1 +134 -0 src/lib/libprocstat/zfs.c (new)
1.1 +23 -0 src/lib/libprocstat/zfs/Makefile (new)
1.79 +4 -2 src/lib/libutil/Makefile
1.1 +74 -0 src/lib/libutil/kinfo_getallproc.3 (new)
1.1 +98 -0 src/lib/libutil/kinfo_getallproc.c (new)
1.1 +73 -0 src/lib/libutil/kinfo_getproc.3 (new)
1.1 +71 -0 src/lib/libutil/kinfo_getproc.c (new)
1.57 +5 -0 src/lib/libutil/libutil.h
1.368 +313 -165 src/sys/kern/kern_descrip.c
1.313 +8 -4 src/sys/kern/kern_proc.c
1.91 +82 -17 src/sys/sys/user.h
1.15 +4 -16 src/usr.bin/fstat/Makefile
1.7 +0 -79 src/usr.bin/fstat/cd9660.c (dead)
1.74 +239 -745 src/usr.bin/fstat/fstat.c
1.9 +0 -76 src/usr.bin/fstat/fstat.h (dead)
1.1 +34 -0 src/usr.bin/fstat/functions.h (new)
1.1 +148 -0 src/usr.bin/fstat/fuser.1 (new)
1.1 +369 -0 src/usr.bin/fstat/fuser.c (new)
1.1 +49 -0 src/usr.bin/fstat/main.c (new)
1.11 +0 -150 src/usr.bin/fstat/msdosfs.c (dead)
1.11 +0 -136 src/usr.bin/fstat/zfs.c (dead)
1.6 +0 -23 src/usr.bin/fstat/zfs/Makefile (dead)
1.5 +1 -1 src/usr.bin/procstat/Makefile
1.5 +49 -68 src/usr.bin/procstat/procstat.c
1.3 +10 -10 src/usr.bin/procstat/procstat.h
1.6 +5 -4 src/usr.bin/procstat/procstat_args.c
1.6 +2 -1 src/usr.bin/procstat/procstat_basic.c
1.4 +5 -4 src/usr.bin/procstat/procstat_bin.c
1.5 +5 -4 src/usr.bin/procstat/procstat_cred.c
1.13 +79 -77 src/usr.bin/procstat/procstat_files.c
1.5 +9 -8 src/usr.bin/procstat/procstat_kstack.c
1.2 +7 -2 src/usr.bin/procstat/procstat_sigs.c
1.5 +6 -5 src/usr.bin/procstat/procstat_threads.c
1.10 +4 -3 src/usr.bin/procstat/procstat_vm.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105121012.p4CACXOJ010407>
