[Bug translator/13306] New: option to skip probes with alias prologue problems

fche at redhat dot com sourceware-bugzilla@sourceware.org
Mon Oct 17 11:16:00 GMT 2011


http://sourceware.org/bugzilla/show_bug.cgi?id=13306

             Bug #: 13306
           Summary: option to skip probes with alias prologue problems
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sourceware.org
        ReportedBy: fche@redhat.com
    Classification: Unclassified


Tapset aliases may speculatively manipulate $variables or @cast expressions
that may be expected to fail sometimes.  In some cases, the tapset author
may remember to wrap these e.g. in try / catch blocks.  As an enhancement
to the existing --skip-badvars option that's narrowly focused on $var
runtime errors, we could introduce an implicit try / catch over alias
prologues:

probe a = foo { ..handler prologue.. }
probe a { ..handler.. }

to expand to:

    try {
     ..handler prologue..
    } catch { next }
    ..handler..

It may make sense to credit such events against the MAXSKIPPED counter.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Systemtap mailing list