public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/2645] New: Need a syntax to specify optional probes
@ 2006-05-08 20:58 joshua dot i dot stone at intel dot com
  2006-05-09  3:52 ` [Bug translator/2645] " bibo dot mao at intel dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: joshua dot i dot stone at intel dot com @ 2006-05-08 20:58 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-02 15:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-08 20:58 [Bug translator/2645] New: Need a syntax to specify optional probes joshua dot i dot stone at intel dot com
2006-05-09  3:52 ` [Bug translator/2645] " bibo dot mao at intel dot com
2006-05-09 21:09 ` joshua dot i dot stone at intel dot com
2006-05-14 12:01 ` fche at redhat dot com
2006-05-14 20:24 ` joshua dot i dot stone at intel dot com
2006-06-01 21:24 ` joshua dot i dot stone at intel dot com
2006-06-02 15:00 ` fche at redhat dot com
2006-06-02 15:00 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).