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]

[Bug translator/3887] Need a syntax to specify probes alternatives


------- Additional Comments From fche at redhat dot com  2007-01-18 20:24 -------
It is an interesting idea.
One thing to consider though is that the different probe points are unlikely
to be completely interchangeable.  Specifically $target variables available at
each variant may be quite different, requiring different handlers.

So how about associating the handlers with the alternatives?

probe kernel.mark("foo") { $arg1 ; $arg2 } ||
      kernel.function("bar") { $var1 ; $var2 }

or even with less punctuation:

probe kernel.mark(....) { }
else kernel.function(....) { }

Another issue to consider is what to do with aliases.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3887

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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