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/11207] New: Support preprocessor defines


It would be nice to be able to #define things in our scripts, both for brevity
and additional flexibility.  There are many ways we could go about this.

One way is to incorporate this into our existing preprocessing style.  It could
look something like:

  %( define LIBFOO = "/path/to/libfoo.so" %)
  %( define FOOFUNC(f) = process.library(LIBFOO).function(f) %)

  probe FOOFUNC("*") { ... }

Another option is to just run our scripts through an existing preprocessor.  CPP
is not an option because we don't want to expand embedded-C code blocks.  It
should work to use m4 though, and maybe there are others.

One advantage of rolling our own is that it should be easier to maintain
column/line info for error reporting.

-- 
           Summary: Support preprocessor defines
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jistone at redhat dot com


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

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