aboutsummaryrefslogtreecommitdiff
path: root/lib/libprocstat/libprocstat.c
Commit message (Collapse)AuthorAgeFilesLines
* libprocstat: For MAP_PRIVATE, do not consider the file open for writing.Jilles Tjoelker2011-06-181-2/+4
| | | | | | | | | | | | If a file is mapped with with MAP_PRIVATE, no write permission is required and changes do not end up in the file. Therefore, tools like fuser and fstat should not show the file as open for writing. The protection as displayed by procstat -v still includes write in this case, and shows 'C' for copy-on-write. Notes: svn path=/head/; revision=223279
* libprocstat: Fix typo in error messages.Jilles Tjoelker2011-06-181-5/+5
| | | | Notes: svn path=/head/; revision=223276
* libprocstat: Remove spaces between function name and open parenthesis.Jilles Tjoelker2011-06-181-2/+2
| | | | Notes: svn path=/head/; revision=223270
* libprocstat: Correct format for size_t (should be %zu, not %zd).Jilles Tjoelker2011-06-181-3/+3
| | | | Notes: svn path=/head/; revision=223269
* Fix clang warnings.Ben Laurie2011-06-181-2/+2
| | | | | | | Approved by: philip (mentor) Notes: svn path=/head/; revision=223262
* Release allocated memory in procstat_close().Sergey Kandaurov2011-05-181-0/+1
| | | | | | | Reviewed by: stass Notes: svn path=/head/; revision=222053
* - Whitespace fix.Stanislav Sedov2011-05-151-1/+1
| | | | Notes: svn path=/head/; revision=221936
* - Don't try to build NWFS support module if NCP/IPX is disabled in the build.Stanislav Sedov2011-05-121-1/+3
| | | | | | | | | | - Rename ZFS definition to LIBPROCSTAT_ZFS to be consistent with NWFS and to prevent possible collisions. Reported by: many Notes: svn path=/head/; revision=221824
* - Commit work from libprocstat project. These patches add support for runtimeStanislav Sedov2011-05-121-0/+1306
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 Notes: svn path=/head/; revision=221807