extend the translator to support a family of probe points: probe procfs("PATH").read { $value = do_something () } probe procfs("PATH").write { do_something_else ($value) } These probe points would map to straightforward procfs slots with read/write handlers mapping to the handler bodies. The $value var would map to the byte string being read/written by the user program. These could be a simple generic mechanism through which a systemtap script could interact with a user-level monitor program.
The procfs-related C code in this message can be duplicated by the translator in order to implement this family of probe points. http://sourceware.org/ml/systemtap/2005-q4/msg00393.html
procfs probe support has been added to the translator and runtime