This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: here's an example tap file for RHEL 4 update 2
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