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 dyninst/15513] New: add a "runtime" preprocessor conditional


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.


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