Hi Tiller,

Thanks for adding that information, but for future reference, the protocol is
to send out mail first to this discussion list with your proposed changes. We
just want to make sure the information is accurate before it hits the wiki.

Adam

On Mon, Feb 04, 2008 at 11:00:37AM -0800, Tiller Beauchamp wrote:
> Thank you both.  I??ve gone ahead and added uaddr and usym to the wiki.
> There are some other interesting functions and global variables that I??ve
> seen used but aren??t documented, such as ucaller and ufunc.
> 
> .tiller
> 
> On 2/3/08 9:02 PM, "Adam Leventhal" <[EMAIL PROTECTED]> wrote:
> 
> > On Sun, Feb 03, 2008 at 08:52:04PM -0800, Tiller Beauchamp wrote:
> >> > Is there a way to resolve symbols in dtrace, like the ustack() does, but
> >> > with my own addresses?  I've recorded a list of addresses, which are
> >> > previous PC values (uregs[R_PC]) and I would like to print them as 
> >> > resolved
> >> > symbols.  Is this possible?
> > 
> > Try out the uaddr() action:
> > 
> > # dtrace -c date -n 'pid$target::main:entry{ uaddr(0x8062578); }'
> > dtrace: description 'pid$target::main:entry' matched 1 probe
> > Sun Feb  3 20:58:03 PST 2008
> > dtrace: pid 105537 has exited
> > CPU     ID                    FUNCTION:NAME
> >   0  59934                       main:entry   date`clock_val
> > 
> > Unfortunately, the only place this and some other actions and subroutines
> > are "documented" is in dt_open.c:
> > 
> > http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libdtrace/co
> > mmon/dt_open.c#134
> > 
> > Documenting these would be a great way to contribute to the DTrace 
> > community.
> > If anyone would like to take a whack at updating the docs, here's the 
> > section
> > where they should be added:
> > 
> >   http://wikis.sun.com/display/DTrace/Actions+and+Subroutines
> > 
> > And here's some more general information on update the docs:
> > 
> >   http://opensolaris.org/jive/thread.jspa?messageID=180783??
> > <http://opensolaris.org/jive/thread.jspa?messageID=180783&#180783>
> > 
> > Adam
> > 
> > --
> > Adam Leventhal, Fishworks                        http://blogs.sun.com/ahl
> > _______________________________________________
> > dtrace-discuss mailing list
> > [email protected]
> > 
> 
> 

-- 
Adam Leventhal, Fishworks                        http://blogs.sun.com/ahl
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to