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]

Re: Reduction of guru use in systemtap war stories


> > Several of the war stories (such as WSPfiles) include header files
> > and make use of defines to extract bits/flags out of values. Seems
> > like there should be a cleaner way to make those bit values
> > available to scripts.
> 
> One possibility is to lobby the kernel to run gcc with -g3 or somesuch
> to get it to dump macro definitions into the dwarf data; then we could
> pull it out of there with $MACRO.  Sounds unlikely.
> 
> Other ideas?

Could look into swig or perl's header-grovelling stuff or one of those
sorts of things.  Before pondering this too specifically, I want to ask
Will from his survey whether we are only concerned with constants, or also
function-like macros that contain something other that simple arithmetic.


Thanks,
Roland


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