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/common/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𬈯
Adam
--
Adam Leventhal, Fishworks http://blogs.sun.com/ahl
_______________________________________________
dtrace-discuss mailing list
[email protected]