506e2f15b9
via procstat(1) and fstat(1): - Change shm file descriptors to track the pathname they are associated with and add a shm_path() method to copy the path out to a caller-supplied buffer. - Use the fo_stat() method of shared memory objects and shm_path() to export the path, mode, and size of a shared memory object via struct kinfo_file. - Add a struct shmstat to the libprocstat(3) interface along with a procstat_get_shm_info() to export the mode and size of a shared memory object. - Change procstat to always print out the path for a given object if it is valid. - Teach fstat about shared memory objects and to display their path, mode, and size. MFC after: 2 weeks |
||
---|---|---|
.. | ||
Makefile | ||
procstat_args.c | ||
procstat_auxv.c | ||
procstat_basic.c | ||
procstat_bin.c | ||
procstat_cred.c | ||
procstat_files.c | ||
procstat_kstack.c | ||
procstat_rlimit.c | ||
procstat_sigs.c | ||
procstat_threads.c | ||
procstat_vm.c | ||
procstat.1 | ||
procstat.c | ||
procstat.h |