This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: debuginfoless static user probes
On 05/04/2010 11:57 AM, Frank Ch. Eigler wrote:
...
> Another one would be to introduce the possibility of embedded-C
> *expressions* in the parse tree, so that the tapset-mark.cxx code
> could emit the equivalent of
>
> val = %{ (int64_t) k_fetch_register(0) %}
>
> (assumed to be an int64_t valued C expression)
> instead of
>
> function __foo0 () %{ THIS->__retvalue = k_fetch_register(0); %}
> val = __foo0 ()
>
>
> Such a construct need not necessarily be parsed, thus available to
> end-user scripts. Though it would make some things easier. It could
> constitute a way to access kernel value macros.
Oooh - shiny. So if this was implemented I could do something like this?
if ($var == %{ SOME_KERNEL_DEFINE %}) {
...
}
That would be great.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)