I am newbie trying to follow the example on page 350 of
the Dtrace guide...
I can''t tell if I''m doing something wrong or if the example
has a
typo...
Thanks,
Russ
Just like page 350:
root> dtrace -n syscall::write:entry''/pid == 22089/{
@writes[arg2]
= quantize(); }''
dtrace: invalid probe specifier syscall::write:entry/pid == 22089/{
@writes[arg2] = quantize(); }: in action list: quantize( ) prototype
mismatch: 0 args passed, 1 expected
Adam Leventhal
2007-Nov-27 03:08 UTC
[dtrace-discuss] problem with example quantize script
Hi Russ, That''s an error in the docs. It should be: @writes = quantize(arg2); Adam On Mon, Nov 26, 2007 at 07:03:19PM -0800, Russ Petruzzelli wrote:> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > <html> > <head> > </head> > <body bgcolor="#ffffff" text="#330000"> > <font size="+1">I am newbie trying to follow the example on page 350 of > the Dtrace guide...<br> > I can''t tell if I''m doing something wrong or if the example has a > typo...<br> > <br> > Thanks,<br> > Russ<br> > <br> > Just like page 350:<br> > root> dtrace -n syscall::write:entry''/pid == 22089/{ @writes[arg2] > = quantize(); }''<br> > <br> > dtrace: invalid probe specifier syscall::write:entry/pid == 22089/{ > @writes[arg2] = quantize(); }: in action list: quantize( ) prototype > mismatch: 0 args passed, 1 expected<br> > <br> > </font> > </body> > </html>> _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, FishWorks http://blogs.sun.com/ahl
Angelo Rajadurai
2007-Nov-27 03:09 UTC
[dtrace-discuss] problem with example quantize script
Hey Russ:
Try this
dtrace -n
syscall::write:entry''/pid==22089/{@writes=quantize(arg2)}''
Can you send the link where you found the example below
-Angelo
On Nov 26, 2007, at 10:03 PM, Russ Petruzzelli wrote:
> I am newbie trying to follow the example on page 350 of the Dtrace
> guide...
> I can''t tell if I''m doing something wrong or if the
example has a
> typo...
>
> Thanks,
> Russ
>
> Just like page 350:
> root> dtrace -n syscall::write:entry''/pid == 22089/{
@writes[arg2]
> = quantize(); }''
>
> dtrace: invalid probe specifier syscall::write:entry/pid == 22089/
> { @writes[arg2] = quantize(); }: in action list: quantize( )
> prototype mismatch: 0 args passed, 1 expected
>
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20071126/d6735e64/attachment.html>