This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Patch proposal 2/2: allow use of $x and @x identifiers during preprocessing
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