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