This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/17741] New: try-catch statement as a tapset function
- From: "ajakop at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 22 Dec 2014 16:31:50 +0000
- Subject: [Bug tapsets/17741] New: try-catch statement as a tapset function
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17741
Bug ID: 17741
Summary: try-catch statement as a tapset function
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
Assignee: systemtap at sourceware dot org
Reporter: ajakop at redhat dot com
It would be convenient to have a tapset function as a simplified version of the
try-catch statement. This woud be similar to @choose_defined().
Instead of the wordier try-catch below,
try { part_1 = "k:".modname(addr()) }
catch { part_1 = sprintf("k:%p",addr()) }
The tapset function could be used instead and could be something like:
part_1 = "k:" . try_catch(modname(addr()), sprintf("%p",addr()))
--
You are receiving this mail because:
You are the assignee for the bug.