This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]