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/11005] New: compile-time error catching


Similar to bug #11004, it would be great if we had some syntax to tolerate
compile-time errors associated with $variable evaluation.

This would allow us to get rid of several kernel version checks and check for
$variable existence instead.  We could then turn something like this (from
syscall.poll):

====
%( kernel_vr > "2.6.15-1.1831" %?
	timeout = $timeout_msecs
%:
	timeout = $timeout
%)
====

into something like this:

====
	timeout = @catch($timeout_msecs, $timeout)
====

Where the syntax is something like '@catch($expr, $backup-expr)'.

-- 
           Summary: compile-time error catching
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: dsmith at redhat dot com


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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