Displaying 1 result from an estimated 1 matches for "trminated".
Did you mean:
terminated
2005 Aug 12
3
Funny output from write syscall
...have a clause that look like this:
syscall::write:entry
/execname == "ntpd" && self->recspec/
{
speculate(self->recspec);
printf(" fd=%d buf=%d\n%s",arg0,arg2,
stringof(copyin(arg1,arg2-1)));
}
The ntpd program always write a \n trminated string in this
context, so I used the "arg2-1" to drop the \n.
This works fine about 90% of the time, but every once in a while,
the printf prints out more data than arg2 specified. It gets the
expected data okay, but tacked onto it is another 50 chars or so
of random data that looks is...