This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]