This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Reduction of guru use in systemtap war stories
- From: Roland McGrath <roland at redhat dot com>
- To: fche at redhat dot com (Frank Ch. Eigler)
- Cc: William Cohen <wcohen at redhat dot com>, SystemTAP <systemtap at sources dot redhat dot com>
- Date: Mon, 9 Jun 2008 15:33:11 -0700 (PDT)
- Subject: Re: Reduction of guru use in systemtap war stories
- References: <484DA545.7070608@redhat.com> <y0mr6b6nt5v.fsf@ton.toronto.redhat.com>
> > 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