KernelNewbies:

pfiles is a Solaris proc utility that reports information of all open files by the process id. A Linux equivalent is written in a form of a SystemTap script. Currently the script is able to report most of the open file information that a Solaris' version of pfiles would report, except socket information.

A possible task for this project is to extend the script to report socket information. Take a look at the following mailing list [http://lists.samba.org/archive/samba-technical/2001-May/014293.html post] to have an idea what kind of socket information we are looking for. Also, the script need not be exactly identical to the Solaris' version. There may be other variables that are specific to Linux that we can include in the script.

Riel noted that pfiles does not need to be implemented in SystemTap, and it can be a normal kernel interface too. Agree. So if the developer is keen to implement this as a kernel interface, and export the information to the userspace, go for it!

Interested in implementing this feature? Write to me and/or claim the feature on the KernelProjects page.


CategoryKernelProjects

KernelNewbies: KernelProjects/pfiles (last edited 2007-10-15 15:06:01 by 218-186-13-1)