[Bug tapsets/17741] New: try-catch statement as a tapset function

ajakop at redhat dot com sourceware-bugzilla@sourceware.org
Mon Dec 22 16:31:00 GMT 2014


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.



More information about the Systemtap mailing list