Qihua Wu wrote:
> 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));
> }
You can modify the amount copied with this:
#pragma D option strsize=XXX
Where "XXX" is some number big enough for your string. 1K, or
whatever. The default is apparently 256.
--
John Wren Kennedy
Solaris RPE
_______________________________________________
dtrace-discuss mailing list
[email protected]