On Mon, Nov 19, 2007 at 07:00:52PM -0800, Rich Morin wrote:
> At 22:35 -0800 11/18/07, Michael Shapiro wrote:
> > That output compiles for me.
> > Can you post the original dtlog.d input file?
> 
> Sure.  Even better, I can post a massively cut-down version
> that exhibits the same problem:
> 
> 
> % cat d4.d
> #include "m4.d"
> 
> E(chmod) P1a { S1 }
> % cat m4.d
> define E(x) syscall::x:entry
> #define S(x) self->arg/**/x = arg/**/x
> #define Sf self->follow = 1;
> #define S0 S(0); Sf
> #define S1 S(1); S0
> #define P1a
> % sudo dtrace -I. -C -s d4.d
> dtrace: failed to compile script d4.d: line 3: syntax error near "1"
> % cpp -C d4.d
> # 1 "d4.d"
> # 1 "<built-in>"
> # 1 "<command line>"
> # 1 "d4.d"
> 
> # 1 "m4.d" 1
> # 2 "d4.d" 2
> 
> syscall::chmod:entry  { self->arg1 = arg1; self->arg0 = arg0; self->follow
> = 1; }
> %
> 
> Don't try to make any sense out of the code, out of context.  The
> only thing I'm trying to resolve right now is the syntax error.  If
> and when I get everything running, I'll post the entire script with
> comments and all...
> 
> -r

Hmm.  That exact sequence, minus sudo, works for me on latest bits.
Can you (a) reproduce without sudo?  I can't see how that can affect
it but let's be sure.  Also (b) what build do you have?  (uname -a output)

-Mike

-- 
Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to