[dtrace-discuss] dtrace syscall:::return arg0 weidness on b56 ( x86)

Adam Leventhal ahl at eng.sun.com
Wed Jan 31 08:25:45 PST 2007


It can be a bit annoying, but since arg0 is a uint64_t you'll need to cast
it to  a signed int and then perform the comparison:

/(int)arg0 == -1/

Adam

On Wed, Jan 31, 2007 at 11:34:27AM +0100, Paul van der Zwan wrote:
> 
> At the moment I am attending course SA327 ( dtrace)
> and I am doing the excercises on my macbook running  b56 on parallels.
> 
> In one excercise we have to list failing system calls using
> a predicate: /arg0 == -1/ and this never matches on my system.
> When I change the test into / arg0 == 429496729 / it matches.
> On a Acer Ferrari running S10u3 the test for -1 works.
> 
> Any idea if this is a bug in b56 or what it might be otherwise ??
> 
> Regards
> 	Paul
> 
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org

-- 
Adam Leventhal, Solaris Kernel Development       http://blogs.sun.com/ahl


More information about the dtrace-discuss mailing list