On Tue, Aug 19, 2008 at 04:59:31PM +0200, Joachim Worringen wrote:
> Greetings,
>
> is there a way to specify probes and other dtrace operations via command
> line parameters, like
> "
>
> BEGIN
> {
> usr_exec=$$1;
> usr_syscall=$$2;
> }
>
> syscall::usr_syscall:entry
> /execname == usr_exec && guard++ == 0/
> {
> ...
> "
> [this does not work]
>
> This would make it possible to create "generic" dtrace scripts.
>
> Otherwise, some shellscript with sed-magic would need to be used.
>
> thanks Joachim
You have both asked and answered your own question :)
See http://wikis.sun.com/display/DTrace/Scripting
-Mike
--
Mike Shapiro, Sun Microsystems Fishworks. blogs.sun.com/mws/
_______________________________________________
dtrace-discuss mailing list
[email protected]