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/2645] Need a syntax to specify optional probes


------- 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.


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