This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
RE: Global constants
- From: "Stone, Joshua I" <joshua dot i dot stone at intel dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: <systemtap at sourceware dot org>
- Date: Mon, 13 Feb 2006 14:12:20 -0800
- Subject: RE: Global constants
Frank Ch. Eigler wrote:
> That would still burden the tapset programmer to add the necessary
> %{ #include <linux/foo.h> %}'s to define all those macros.
Good point.
> [...]
> This could be a plausible solution for bug #1304 (with the addition of
> some type data). But I would like to aim for something that can be
> set at startup time rather than compile time. That would be an
> element of bug #2208, where precompiled probe modules may be reused.
> That in turn is more useful if they can be parametrized.
Now that I've looked at those bug #s, I tend to agree - a more general
solution for script parameters is needed. It's still possible to "fake"
parameters with macros, but given the limitations I don't think we need
more language features around this idea.
Josh