I want to trace function whose name has certain value, such as "read" or
"write". But seems dtrace can't replace the variable with the value I passed
in.
bash-3.00$ cat d.d
#!/usr/sbin/dtrace -s
#pragma D option flowindent
syscall::**$1**:entry { self->interest = 1; }
fbt::: /self->interest/ {}
syscall::**$1**:return { self->interest = 0; }
bash-3.00$ ./d.d *read*
dtrace: failed to compile script ./d.d: line 5: invalid probe description "*
syscall::*$1*:entry*": Undefined macro variable in probe description
_______________________________________________
dtrace-discuss mailing list
[email protected]