Inserting arbitrary messages into strace output

enh enh at google.com
Fri Dec 19 03:42:09 UTC 2014


yes, it's exactly that. mmap is useful too if you need printf %p but
can't call printf.

On Thu, Dec 18, 2014 at 7:35 PM, Justin Dearing <zippy1981 at gmail.com> wrote:
> Ok, so writing to an invalid descriptor makes sense. However, the line will
> still be decorated with the fact that its a write call. I'd like just the
> message written.
>
> Or is the negative -1 file descriptor unique and not just a variation on
> this? http://ewontfix.com/10/
>
> On Thu, Dec 18, 2014 at 10:22 PM, enh <enh at google.com> wrote:
>>
>> already implemented...
>>
>>   write(-1, "GOT HERE", strlen("GOT HERE"));
>>
>>
>> On Thu, Dec 18, 2014 at 7:17 PM, Justin Dearing <zippy1981 at gmail.com>
>> wrote:
>> > Hello,
>> >
>> > Inspired by a feature of the windows utility process monitor, Id like a
>> > simple elegant way to insert arbitrary streams of text into strace
>> > output.
>> > Basically, I want to insert "GOT HERE" messaged into strace output. The
>> > procmon feature is described here
>> > (https://github.com/Wintellect/ProcMonDebugOutput)
>> >
>> > Specifically what I propose is as follows
>> >
>> > strace by default will open the  named pipe /tmp/straceProfiling.X for
>> > reading, creating it if it does not exist. X will be the pid of the
>> > child
>> > process. any data written to that named pipe, gets immediaty flushed to
>> > the
>> > strace output preceded with MSG: There will be a switch to name the
>> > socket,
>> > a switch to disable it, and a switch to change the message prefix.
>> >
>> > Does this sound like a useful feature request?
>> >
>> > Regards,
>> >
>> > Justin Dearing
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> > with Interactivity, Sharing, Native Excel Exports, App Integration &
>> > more
>> > Get technology previously reserved for billion-dollar corporations, FREE
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Strace-devel mailing list
>> > Strace-devel at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/strace-devel
>> >
>>
>>
>>
>> --
>> Elliott Hughes - http://who/enh - http://jessies.org/~enh/
>> Java i18n/JNI/NIO, or bionic questions? Mail me/drop by/add me as a
>> reviewer.
>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Strace-devel mailing list
>> Strace-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/strace-devel
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Strace-devel mailing list
> Strace-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/strace-devel
>



-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Java i18n/JNI/NIO, or bionic questions? Mail me/drop by/add me as a reviewer.




More information about the Strace-devel mailing list