Patch proposal 2/2: allow use of $x and @x identifiers during preprocessing
Benjamin Thery
benjamin.thery@bull.net
Tue Apr 3 16:10:00 GMT 2007
Frank Ch. Eigler wrote:
> Benjamin Thery <benjamin.thery@bull.net> writes:
>
>> [...] Can't be more simple.
>
> Sure it could: :-)
>
> probe %( $# < 2 %? kernel.function(@1) $: module(@1).function(@2) %)
> { ... }
Argh, It seems I spoke too fast once again :-)
I'll just fix a small typo in your code: "%:" instead of "$:" :
probe %( $# < 2 %? kernel.function(@1) %: module(@1).function(@2) %)
and voila. :-)
> The ideas and patches look fine. They would need to be completed by
> the addition of some documentation to the man pages, and some bits for
> the testsuite. Would you like to do that too?
>
>
> - FChE
>
--
B e n j a m i n T h e r y - BULL/DT/Open Software R&D
http://www.bull.com
More information about the Systemtap
mailing list