[Bug dyninst/15513] New: add a "runtime" preprocessor conditional

dsmith at redhat dot com sourceware-bugzilla@sourceware.org
Tue May 21 19:22:00 GMT 2013


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

             Bug #: 15513
           Summary: add a "runtime" preprocessor conditional
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: dyninst
        AssignedTo: systemtap@sourceware.org
        ReportedBy: dsmith@redhat.com
    Classification: Unclassified


It would be helpful when writing system scripts to have a preprocessor
conditional that would indicate the runtime in use. This would allow script
writers to do things like:

====
%( runtime == "linux" %?
# do something we can only do in kernel mode
%)

%( runtime == "dyninst" %?
# ...
%)

====

This would be most useful in conditionally including kernel probes, only if
we're using the linux runtime.

This would also be useful in writing test cases.

-- 
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