A macro, like a #define(args) macro?
If so, then I''m sure there''s no such provider, and doubt there
will
*be* one either. This is because a #define is just an abbreviation of
a fragment of source that''s substituted textually into the source. So
there is no "call" and no entry point; it''s just code in
line.
That said, though, nothing keeps you from using USDT to instrument
your macros to get a similar effect:
#define QUUX { \
do_something(); \
}
... could be replaced with
#define QUUX {\
DTRACE_PROBE2(myprovider, myprobe, arg1, arg2);\
do_something();\
}
On 5/12/07, Neelam <neelam.goyal at gmail.com>
wrote:> Hi,
>
> Was just wondering if there is any provider for Macros like we have pid
provider for function calls?
>
> Thanks,
> Neelam
> --
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
>
--
The key to long life is to immediately forget things. --- Joshu Sasaki
Roshi, on his 100th birthday