Hi Jeevan,
>how can i get the value of a variable in some application code
>(hastorageplus) without using usdt probes ?
>
>can we get it directly using dtrace ?
>
You can but the level of effort required is dependent upon
the scope of the variable in question (i.e. if it''s global
or local).
This has been discussed several times before. Some references
are:
http://www.opensolaris.org/jive/message.jspa?messageID=80703
http://blogs.sun.com/jonh/entry/accessing_a_programs_local_variables
There may well be an entry on this topic on the DTrace wiki at
http://www.solarisinternals.com. If there isn''t then I really do
need to create one...
Jon.