[Bug translator/2645] Need a syntax to specify optional probes

bibo dot mao at intel dot com sourceware-bugzilla@sourceware.org
Tue May 9 03:52:00 GMT 2006


------- Additional Comments From bibo dot mao at intel dot com  2006-05-09 03:52 -------
what about this kind of tapset, user script should care nothing about whether is
it optional or not.

tapset:
  probe syscall.foobar = kernel.function("sys_foobar") ? {}     optional 
  probe syscall.foobar1 = kernel.function("sys_foobar1") {}     non-optional
 
user script:
  probe syscall.foobar  {}    // ok, probe is discarded
  probe syscall.foobar1 {}   // ERROR: probepoint not found

  probe syscall.* {} // ok if all non-optional syscall probes were found,
                     // or if all are optional, then at least one was found

-- 


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

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



More information about the Systemtap mailing list