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

joshua dot i dot stone at intel dot com sourceware-bugzilla@sourceware.org
Mon May 8 20:58:00 GMT 2006


see http://sources.redhat.com/ml/systemtap/2006-q2/msg00286.html

Summary of desired behavior: given

  probe FOO ? { }
  probe alias = BAR ?, BAZ ? { }

If FOO is not found, then that probe should be discarded.  If both BAR and BAZ
are not found, there are two cases:

  probe alias { } // ERROR: probepoint not found
  probe alias ? { } // ok, probe is discarded


Similarly, if a syscall "sys_foobar" isn't found:

tapset:
  probe syscall.foobar = kernel.function("sys_foobar") ? {}

user script:
  probe syscall.foobar {} // error, probepoint not found
  probe syscall.foobar ? {} // ok, probe is discarded

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

-- 
           Summary: Need a syntax to specify optional probes
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: joshua dot i dot stone at intel dot com


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