Hi
Strings in D are 256 bytes by default. You can change the default
using the strsize pragma.
#!/usr/sbin/dtrace -s
#pragma D option strsize=1024
pid113::*mysql_parse*:entry
{
printf("%s\n",copyinstr(arg1));
}
-Angelo
On Apr 15, 2009, at 10:01 PM, Qihua Wu wrote:
Hi, All,
What's the maximum length of copyinstr? I used the following line in
the action part, but the got sql is not complete. Apparently it got
truncated. Is there anyway to get the full string instead of a
partial one?
pid113::*mysql_parse*:entry
{
printf("%s\n",copyinstr(arg1));
}
Thanks,
_______________________________________________
dtrace-discuss mailing list
[email protected]
_______________________________________________
dtrace-discuss mailing list
[email protected]