Does DTrace script only support "#pragma D option ..", not "-x option"?
Mark Johnston
markj at freebsd.org
Fri Jul 21 03:39:56 UTC 2017
On Jul 20, 2017 8:03 PM, "Nan Xiao" <xiaonan830818 at gmail.com> wrote:
Hi all,
My FreeBSD version is 11.0, and I write a simple DTrace script:
#!/usr/sbin/dtrace -s -x dynvarsize=64m
dtrace:::BEGIN
{
printf("Hello FreeBSD!\n");
}
Running it will generate following error:
dtrace: failed to open -x dynvarsize=64m: No such file or directory
I'm not able to test at this very moment, but I suspect that -s needs to be
the last argument for this to work.
So does DTrace only support using "#pragma D option dynvarsize=64m" format
in script? I remembered Solaris can support both formats.
Thanks!
Best Regards
Nan Xiao
_______________________________________________
freebsd-dtrace at freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
To unsubscribe, send any mail to "freebsd-dtrace-unsubscribe at freebsd.org"
More information about the freebsd-dtrace
mailing list