here's an example tap file for RHEL 4 update 2

Frank Ch. Eigler fche@redhat.com
Sat Dec 10 01:03:00 GMT 2005


hunt wrote:

> [...] One thing I can't think of is a simple way to support a list
> of executables to monitor. Perhaps its time to add a way to pass
> arguments to systemtap scripts. [...]

When implemented, the feature in bug #1154 could make all the
on-the-fly configuration interaction look something like this:

global probed
probe procfs("sys/debug/trace-app").write {
  probed[$value] ++
}
probe procfs("sys/debug/traced-apps").read {
  foreach (name in probed) $value .= (i++ > 0 ? " " : "") . name
}
function is_traced_call(name) {
  return (name in probed)
}

Nice job with the rest of the simplified rewrite.

- FChE



More information about the Systemtap mailing list