Inserting arbitrary messages into strace output
Justin Dearing
zippy1981 at gmail.com
Mon Dec 22 21:52:22 UTC 2014
On Thu, Dec 18, 2014 at 11:04 PM, Dmitry V. Levin <ldv at altlinux.org> wrote:
>
> Unlike -42, which is treated as unsigned int (i.e. 2^32-42) by the kernel,
> -1 is never a valid file descriptor.
>
Ok that makes sense. So how about a command line switch that specifically
intercepts write (-1, msg) and print out the entire contents of msg,
regardless of the formatting of the rest of the output?
>
> BTW, should we change printfd() to print the file descriptor (when it's not
> equal to -1) using %u format instead of %d?
>
> That makes sense to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20141222/985b4f3a/attachment.html>
More information about the Strace-devel
mailing list