[dtrace-discuss] How to limits stack frames in pid provider with ustack?

Jonathan Adams
Thu, 21 Jul 2005 16:50:53 -0000

On Thu, Jul 21, 2005 at 12:43:53PM -0400, Brian Utterback
wrote:
> #dtrace -n pid6886::gettimeofday:entry''{ustack(2);}''
> dtrace: invalid probe specifier pid6886::gettimeofday:entry: extraneous
> argument ''{ustack(2);}'' ($1 is not referenced)

Somehow, dtrace is getting three arguments:

arg[0] dtrace
arg[1] -n
arg[2] pid6886::gettimeofday:entry
arg[3] {ustack(2);}

I have no idea how or why your shell would be producing this kind of madness.
Generally, I always quote the entire -n argument:

# dtrace -n ''pid6886::gettimeofday:entry{ustack(2);}''

In any case, I can''t reproduce your error message.

Cheers,
- jonathan

--
Jonathan Adams, Solaris Kernel Development