Hi. S10 118844-30, Intel 32-bit Using pstack I can get full stack, using ustack() all I see is last stacked function. bash-3.00# dtrace -w -n syscall::read:entry''/execname == "wp-smtpd" && fds[arg0].fi_pathname == "/opt/zones/smtp/root/dev/urandom"/{ustack();trace(pid);stop();exit(0);}'' dtrace: description ''syscall::read:entry'' matched 1 probe dtrace: allowing destructive actions CPU ID FUNCTION:NAME 1 10 read:entry libc.so.1`_read+0x15 6504 bash-3.00# pstack 6504 6504: /opt/WP/WP-XXX/bin/wp-smtpd ce470c05 _read (3, 804787c, 20) + 15 ce5866f9 RAND_poll () + 172 This message posted from opensolaris.org
Robert Milkowski wrote:> Using pstack I can get full stack, using ustack() all I see is last stacked function. > > bash-3.00# dtrace -w -n syscall::read:entry''/execname == "wp-smtpd" && fds[arg0].fi_pathname == "/opt/zones/smtp/root/dev/urandom"/{ustack();trace(pid);stop();exit(0);}''Shouldn''t ustack() take an integer argument? - Jeremy
On 3/29/06, Jeremy Harris <jgh at wizmail.org> wrote:> Robert Milkowski wrote: > > Using pstack I can get full stack, using ustack() all I see is last stacked function. > > > > bash-3.00# dtrace -w -n syscall::read:entry''/execname == "wp-smtpd" && fds[arg0].fi_pathname == "/opt/zones/smtp/root/dev/urandom"/{ustack();trace(pid);stop();exit(0);}'' > > Shouldn''t ustack() take an integer argument? > - Jeremyustack() can optionally take an argument, but if there''s no argument, the depth of the stack frame printed defaults to the ustackframes option. Chad