This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/2645] New: Need a syntax to specify optional probes
- From: "joshua dot i dot stone at intel dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 8 May 2006 20:58:47 -0000
- Subject: [Bug translator/2645] New: Need a syntax to specify optional probes
- Reply-to: sourceware-bugzilla at sourceware dot org
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.