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] |
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
$ rpm -qa --queryformat '%{name} %{size}\n' |grep debuginfo|grep kernel kernel-debuginfo 684495701 kernel-debuginfo-common 135176987
http://search.cpan.org/~rgarcia/perl-5.10.0/utils/h2xs.PL http://search.cpan.org/~rgarcia/perl-5.10.0/utils/h2ph.PL http://search.cpan.org/~icerider/C-Scan-Constants-1.017/lib/C/Scan/Constants.pm http://search.cpan.org/~gbarr/Include-1.02a/Include.pm
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |