Inserting arbitrary messages into strace output

Justin Dearing zippy1981 at gmail.com
Mon Dec 22 22:15:59 UTC 2014


On Mon, Dec 22, 2014 at 4:52 PM, Justin Dearing <zippy1981 at gmail.com> wrote:

> 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?
>
>>
>>
Addendum:

Could said swich would always report calls to write(-1, msg)  even if the
other switches to strace would have it not report write() calls.

Thanks,
Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20141222/c5a94cd0/attachment.html>


More information about the Strace-devel mailing list