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
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume [EMAIL PROTECTED]
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, and web development
_______________________________________________
dtrace-discuss mailing list
[email protected]